More Info:
The kubelet.conf kubeconfig file holds credentials the kubelet uses to authenticate to the API server. Permissions of 600 or more restrictive prevent non-privileged users from reading those credentials.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check the current permissions of the kubelet kubeconfig file:
-
On every worker node, set the kubelet kubeconfig file permissions to 600:
-
(Optional, recommended) On every worker node, ensure the file is owned by root:
-
On every worker node, verify the new permissions match the benchmark requirement:
Using kubectl
Using kubectl
kubectl cannot modify file permissions on node-local paths like
/etc/kubernetes/kubelet.conf; this must be fixed directly on every worker node’s host filesystem. Use the guidance in the Manual Steps section to adjust the permissions and verify the change.Automation
Automation

