More Info:
Ensure that the admin.conf file ownership is set to root:root.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every control plane node, check the current ownership of the admin.conf file:
-
If the output is not
root:root, change the ownership to root:root: -
(Optional but recommended) Ensure the file exists and is not world-writable:
-
Verify the fix on every control plane node using the audit command:
Confirm the output is:
Using kubectl
Using kubectl
kubectl cannot modify file ownership on control plane nodes, so it cannot be used to fix
/etc/kubernetes/admin.conf. This change must be made directly on each control plane node’s filesystem; see the Manual Steps section for the exact commands to run there.Automation
Automation

