Why it matters
This binding grants unrestricted control of the cluster. Anything that obtains the subject's credentials owns the cluster and everything running in it.
How to fix it
Replace cluster-admin with a role naming the permissions actually needed.
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.1.1: cluster-admin is bound only where required. Also checked for this control: Workload runs as a service account with cluster-admin - NSA/CISA Kubernetes Hardening Guidance 1.2, control
authn.rbac: Role-based access control grants least privilege. Also checked for this control: Role can escalate, bind or impersonate, Role can use the nodes/proxy subresource, Role can create pods, Role can exec into or attach to pods, Role can read Secrets, Role uses a wildcard, Workload runs as a service account with cluster-admin
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
- A binding grants access to unauthenticated users
KubernetesSeverity: Critical
k8s.rbac.anonymous-access - Role can approve certificate signing requests
KubernetesSeverity: Medium
k8s.rbac.csr-approve - A role is bound to a default service account
KubernetesSeverity: Medium
k8s.rbac.default-service-account-bound - Role can escalate, bind or impersonate
KubernetesSeverity: High
k8s.rbac.escalate-bind-impersonate - Role can use the nodes/proxy subresource
KubernetesSeverity: Medium
k8s.rbac.node-proxy - Role can create pods
KubernetesSeverity: Medium
k8s.rbac.pod-create
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