More Info:
The kubelet kubeconfig file should have permissions of 644 or more restrictive. Loose permissions could allow unauthorized users to read or alter the kubelets cluster credentials.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS OKE
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check the current permissions of the kubelet kubeconfig file:
-
If the file exists and permissions are more permissive than 644 (e.g., 664, 666, 777), set them to 644:
-
Ensure the file is owned by the kubelet user and group (commonly root:root; adjust if your environment differs):
- Repeat steps 1–3 on each worker node in the cluster.
-
Verification (on every worker node):
Confirm the output shows:
Using kubectl
Using kubectl
This file’s permissions are set on each worker node’s filesystem and cannot be changed via kubectl or any Kubernetes API object. To remediate, adjust the file mode directly on the node (host-level fix); see the Manual Steps section for the exact commands to run on every worker node.
Automation
Automation

