Kubernetes posture check · Kubernetes

Namespace has no NetworkPolicy

Reads every namespace in the cluster through the Kubernetes API and reports each one where this is true: namespace has no NetworkPolicy.

Why it matters

No NetworkPolicy selects pods in this namespace, so every pod in it can reach every other pod in the cluster and be reached by them.

How to fix it

Add a default-deny NetworkPolicy and then permit the traffic the workloads genuinely need.

What TrustIvan reads

Read through the Kubernetes API with the read-only role TrustIvan's install creates.

Benchmark controls

Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.

Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks

All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.