More Info:
Ensure that if the kubelet refers to a configuration file with the —config argument, that file is owned by root:root.Risk Level
LowAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check the current ownership of the kubelet configuration file:
-
On every worker node, change the ownership of the kubelet configuration file to root:root:
-
(If desired) Confirm file permissions did not become overly permissive while changing ownership:
-
On every worker node, verify the fix using the benchmark’s audit command:
The output must be:
Using kubectl
Using kubectl
kubectl cannot change file ownership on worker node filesystems, including
/etc/kubernetes/kubelet.conf or /var/lib/kubelet/config.yaml; this must be remediated directly on each worker node via host-level commands. Refer to the Manual Steps section for the exact chown command and verification steps to run over SSH on every worker node.Automation
Automation

