To SSL or not to SSL
Hello
It is often advised to use SSL for all communication inside the cluster for improved security. But how much does it actually helps and how much is it a 'cargo cult security' ?
I have a GKE cluster with basics covered: private cluster, RBAC set up, defined network policies, all deployed workloads have a security context defined (immutable filesystem, non root user, all capabilities dropped). Currently SSL is terminated on a load balancer and all inside communication is unencrypted.
So I wonder: what kind of threats does moving to 'SSL everywhere' protect me from?
- somebody hacks one of services and then uses something like tcpdump? Good luck doing that with non-root user and all caps dropped
- Google employee does it? In this case I am screwed anyway since they have access to VMs
- somebody taps lines between different availability zones (which I assume are separate datacenters). Google uses in-transit encryption for all traffic that is outside their physical control.
Anything else am I missing?
Posted Sep 17, 2019, 10:28 AM UTC
Threat: someone breaks into a container (maybe due to bad container security). They escalate to privileged and root in that container, then start sniffing network traffic. Before long, the attack has escalated to all major systems, and is no longer confined to that container. TLS and network policies would have avoided this scenario.
This goes well beyond basic security. For the most part, what you have done is good enough for many. But TLS behind the firewall helps prevent privilege escalation, and can limit damage to only those systems originally compromised.
So you are saying that the class of attacks that internal SSL could mitigate are kernel/docker vulnerabilities that allow to escalate to root? Because I run all my stuff as non-root with all capabilities dropped.