Skip to main content

More Info:

The kubelet configuration file should have permissions of 644 or more restrictive to prevent unauthorized users from reading or tampering with the kubelets runtime configuration.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS EKS

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, check the current permissions of the kubelet configuration file:
  2. On every worker node, set the file permissions to 644 as required:
  3. (Optional, if you want to enforce ownership as well) On every worker node, ensure root owns the file:
  4. On every worker node, verify the permissions are now compliant:
    Confirm the output shows:
kubectl cannot change file permissions on kubelet config files such as /var/lib/kubelet/config.yaml, because this is host-level configuration on each worker node. To remediate this finding, you must adjust the file permissions directly on every worker node; see the Manual Steps section for the exact commands.