Skip to main content

More Info:

The kubelet kubeconfig file should have permissions of 644 or more restrictive to prevent unauthorized modification of node authentication configuration.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS AKS

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, check if the kubelet kubeconfig exists at the affected path and view its current permissions:
  2. If the file exists, set its permissions to 644 (owner read/write, group read, others read):
  3. (Optional but recommended) Ensure the file is owned by root:
  4. Verify the new permissions on every worker node:
    Confirm that permissions=644 (or more restrictive, e.g. 640 or 600).
kubectl cannot change file permissions on node-local paths such as /var/lib/kubelet/kubeconfig; this must be fixed directly on every worker node’s filesystem (host-level configuration). Please see the Manual Steps section for the exact commands to run on each node and how to verify the fix.