More Info:
The kubelet kubeconfig file should have permissions of 644 or more restrictive to prevent unauthorized modification of node authentication configuration.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS AKS
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check if the kubelet kubeconfig exists at the affected path and view its current permissions:
-
If the file exists, set its permissions to 644 (owner read/write, group read, others read):
-
(Optional but recommended) Ensure the file is owned by root:
-
Verify the new permissions on every worker node:
Confirm that
permissions=644(or more restrictive, e.g. 640 or 600).
Using kubectl
Using kubectl
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.Automation
Automation

