Skip to main content

More Info:

Ensure that if the kubelet refers to a configuration file with the —config argument, that file is owned by root:root.

Risk Level

Low

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, check the current ownership of the kubelet configuration file:
  2. On every worker node, change the ownership of the kubelet configuration file to root:root:
  3. (If desired) Confirm file permissions did not become overly permissive while changing ownership:
  4. On every worker node, verify the fix using the benchmark’s audit command:
    The output must be:
kubectl cannot change file ownership on worker node filesystems, including /etc/kubernetes/kubelet.conf or /var/lib/kubelet/config.yaml; this must be remediated directly on each worker node via host-level commands. Refer to the Manual Steps section for the exact chown command and verification steps to run over SSH on every worker node.

Additional Reading: