Skip to main content

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

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, check the current permissions of the kubelet kubeconfig file:
  2. On every worker node, set the kubelet kubeconfig file permissions to 600:
  3. (Optional, recommended) On every worker node, ensure the file is owned by root:
  4. On every worker node, verify the new permissions match the benchmark requirement:
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.