More Info:
Verifies that admin.conf and super-admin.conf kubeconfig files have permissions of 600. These files grant cluster-admin access and must not be readable by other users.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every control plane node, check the current permissions of the default admin kubeconfig files:
-
On every control plane node, restrict permissions on
admin.confso only the owner can read and write it: -
On every control plane node running Kubernetes 1.29 or later, also restrict permissions on
super-admin.conf(if present): -
On every control plane node, confirm that only the intended user (typically
root) owns these files and that group/others do not have access: -
On every control plane node, re-run the permissions check to verify remediation:
Using kubectl
Using kubectl
kubectl cannot modify file permissions on control plane nodes, so it cannot be used to fix /etc/kubernetes/admin.conf or /etc/kubernetes/super-admin.conf. File mode changes must be made directly on each control plane node’s filesystem; see the Manual Steps section for the exact commands to run over SSH.Automation
Automation

