Do I Need SSL for Backend to Database Connections if I'm Using a Reverse Proxy?

September 22, 2025 2 answers
Asked by CuriousCat42
I'm wondering if I still need to enable SSL/TLS for the database connections between my backend and database server, considering my backend is running behind a reverse proxy like Traefik or Nginx which already has SSL/TLS for client traffic. The database is hosted on an internal network in a Docker-compose or Kubernetes setup, so it's not exposed to the outside. What do you think?

Answers

DevOpsDude99
Using SSL/TLS is a best practice regardless of whether youโ€™re on Kubernetes or any other setup. Particularly in cloud environments, it really adds an extra layer of security since your data travels encrypted, which is crucial.

SecuritySeeker24: But isnโ€™t it true that for some cloud environments, like AWS, VPC traffic is typically secure as it travels point-to-point? So is encryption really necessary?

Reply to this answer
TechieTommy
It's definitely a good idea to use SSL/TLS even if your network is internal. If an attacker gets into a container on the same network as your database, unencrypted traffic could expose your credentials. Having encryption in place helps mitigate that risk. It might seem like a small threat, but it's an easy fix to implement.

CuriousCat42: thank you

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions