More Info:
Verifies that admin.conf and super-admin.conf kubeconfig files are owned by root:root so only privileged users can read the cluster-admin credentials.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
- On every control plane node, check current ownership of the admin kubeconfig files:
- On every control plane node, change ownership of
/etc/kubernetes/admin.conftoroot:rootif the file exists:
- On every control plane node, change ownership of
/etc/kubernetes/super-admin.conftoroot:rootif the file exists (especially on Kubernetes v1.29+):
- Verify the fix on every control plane node:
Using kubectl
Using kubectl
kubectl cannot modify file ownership on control plane hosts, so it cannot be used to fix
/etc/kubernetes/admin.conf or /etc/kubernetes/super-admin.conf. Change ownership directly on every control plane node’s filesystem, as described in the Manual Steps section.Automation
Automation

