More Info:
The kubelet configuration file should have permissions of 644 or more restrictive. Overly permissive permissions could allow unauthorized modification of the kubelet configuration.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 configuration file:
-
On every worker node, set the permissions to 644 as required:
-
(If desired) Confirm ownership is appropriate (typically root:root); adjust if needed:
-
Verify the fix on every worker node using the audit command:
Ensure the output shows
permissions=644(or a more restrictive value such as 640 or 600).
Using kubectl
Using kubectl
kubectl cannot modify host-level file permissions such as
/etc/kubernetes/kubelet-config.json on worker nodes. To remediate this finding, you must change the file mode directly on every worker node’s filesystem; see the Manual Steps section for the exact commands.Automation
Automation

