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

56
dankube•

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.

7
ping500OP•

They escalate to privileged

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.

3
jwalker343•

The biggest plus is helping protect against the unknown and just wrapping another layer of security around that unknown.

There are all kinds of things that COULD happen (zero-day, vulnerabilities in your upstream images, container escapes, new employee that misconfigures something, etc...), and having that TLS security around communication inside the cluster provides just that much more security around the most valuable asset... your data.

1
[deleted]•

[deleted]

1
oadk•

It's not cargo cult security. Here's an attack vector that allows pod traffic to be MitM'd.

There are also many other components that could go wrong at some point and send some packets the wrong way (DNS, kube-proxy, load balancer, CNI plugins, network switch, etc). Don't trust your network with any data you're not comfortable being read by anyone, use TLS everywhere.

0
ping500OP•

I read about this attack - it requires root permissions or at least CAP_NET_RAW. I am not really disagreeing with 'TLS everywhere' idea - just trying to find a solid justification.

6

cargo cult part doing your required job to protect your customers data that is posted to you.

So sure https doesn't seem that great if you want to view a blog but if you post to it; you bet. https everywhere became more popular when isps started injecting data into your data stream which they can't do with https.

Edit: it does nothing for container security or traffic sniffing if there is a will there is a way and if they have access all they need is the private key to decrypt your tls traffic which they might find

I'm sure there's other just as valid reasons or more valid

-1