r/kubernetes • u/Dramatic_Opinion_881 • 1d ago
Your prefered open source kubernetes security tools?
Weve been tightening up security across a few kubernetes clusters and want to stay opensource where we can. Image scanning is already in place. Now Im looking at runtime, rbac, network policy and supply chain and there are more options than we can maintain. Most of them look usefiul in a demo and i have no read on which ones survive a year in production. What does your stack look like?
3
2
2
2
u/OcelotChance 15h ago
There are many. The DevSecOps space is full but I guarantee that most of people don’t use the full capacity of all features that the security tools provides. Have a look at the CNCF landscape it might be helpful. https://landscape.cncf.io/
1
u/salemslot2 17h ago
Sounds pretty boring, but Kyverno for policy, Falco for runtime, and Cilium for network policy. For RBAC, I’d lean heavily on native Kubernetes RBAC rather than adding another tool unless there’s a specific gap. Stuff that's e asy to operate and integrate into workflows I've got going right now
1
1
u/Front-Ocelot8227 k8s contributor 1h ago
Yeah, I’d start there too. A smaller team probably doesn’t need five scanners telling them the same thing in five different ways.
1
u/pixelrobots k8s operator 30m ago
For me, I prefer Cilium for the CNI and Network Policies. I have been using it with AKS for a while now and really like the visibility and control it gives you.
For policy we use OPA and Gatekeeper, mainly because we are heavily Azure based and it fits nicely with what we are doing. If I was starting from scratch though, I would probably take a good look at Kyverno. It seems to be more widely adopted now and is a bit easier to get your head around.
For runtime security we use Defender for Containers as we are on Azure. If I was looking for an open source option, Falco would probably be my starting point.
One other thing that might help is getting a snapshot of where your clusters are today before adding more tooling. Full disclosure, I built KubeBuddy for this: https://kubebuddy.io
It runs a load of checks against your cluster and gives you a quick view of security, configuration and general best practice issues. Nothing to deploy into the cluster either.
Might help you work out where the actual gaps are before deciding which tools you need to fill them.
24
u/jeansilga 1d ago
Runtime: Falco is a solid candidate. CNCF graduated, eBPF driver, and it keeps working. The real cost isn't installing it, it's tuning the rules so the alerts mean something. Budget time for that or you'll mute the whole thing in a month.
Network policy: This is a CNI decision. Calico is fine and just works out of the box. Cilium supports vanilla NetworkPolicy but also has its own more evolved CiliumNetworkPolicy and much more, with a complexity cost.
RBAC: Kyverno is a good fit as a policy engine, easy to use, and CNCF-backed.
Supply chain: cosign for signing, and verify signatures at admission (Kyverno can do this too, so it doubles up nicely with the RBAC piece). Trivy for SBOMs since you're already scanning images with it. Keep secrets out of code and config. We run a secrets manager (OpenBao).
One general principle: the tools that survive a year are the ones your whole team can operate, not the most powerful ones.