Skip to main content

More Info:

The kubelet configuration file should be owned by root:root. Incorrect ownership could allow non-root users to alter the kubelet configuration.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS OKE

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, confirm whether the kubelet configuration file exists and check its current ownership:
  2. If the file exists and is not owned by root:root, change the ownership to root:root:
  3. (Optional, if you suspect permissions are too loose) Restrict file permissions to owner read/write only:
  4. Repeat steps 1–3 on every worker node in the cluster.
  5. On every worker node, verify the ownership is now correct:
    The output must be:
kubectl cannot change file ownership on node filesystems, including /etc/kubernetes/kubelet-config.json. This finding must be remediated directly on every worker node’s host OS; see the Manual Steps section for the exact commands to run over SSH.