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
- CIS Kubernetes Benchmark 1.9.0, control
5.3.2: Every namespace has a NetworkPolicy - NSA/CISA Kubernetes Hardening Guidance 1.2, control
network.policies: Network policies restrict traffic. Also checked for this control: Container binds a host port, Namespace has NetworkPolicies but no default deny
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.
Related checks
- Namespace has no LimitRange
KubernetesSeverity: Low
k8s.namespace.no-limit-range - Namespace enforces no Pod Security Standard
KubernetesSeverity: Medium
k8s.namespace.no-pod-security-standard - Namespace has NetworkPolicies but no default deny
KubernetesSeverity: Low
k8s.namespace.no-default-deny - Namespace has no ResourceQuota
KubernetesSeverity: Low
k8s.namespace.no-resource-quota - Namespace enforces only Pod Security baseline
KubernetesSeverity: Low
k8s.namespace.pod-security-not-restricted
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