Why it matters
The default namespace is where anything without a namespace lands, so policies, quotas and RBAC aimed at a team do not reach it.
How to fix it
Move the workload into a namespace of its own.
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.7.4: The default namespace is not used - CIS Kubernetes Benchmark 1.9.0, control
5.7.1: Namespaces form administrative boundaries - NSA/CISA Kubernetes Hardening Guidance 1.2, control
network.namespaces: Namespaces separate resources
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
- Workload runs as a service account with cluster-admin
KubernetesSeverity: Critical
k8s.workload.cluster-admin-identity - Workload runs as the default service account
KubernetesSeverity: Low
k8s.workload.default-service-account - Workload shares the host IPC namespace
KubernetesSeverity: High
k8s.workload.host-ipc - Workload shares the host network
KubernetesSeverity: High
k8s.workload.host-network - Workload mounts a host path
KubernetesSeverity: High
k8s.workload.host-path - Workload shares the host process namespace
KubernetesSeverity: High
k8s.workload.host-pid
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