Skip to main content

More Info:

The kubelet kubeconfig file ownership should be set to root:root so that only the root user can read or modify the kubelet credentials and cluster connection settings.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS EKS

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, confirm the kubelet kubeconfig file exists:
  2. On every worker node, set the ownership of the kubelet kubeconfig file to root:root:
  3. On every worker node, verify the ownership is correctly set (passes when output is root:root):
kubectl cannot modify file ownership on the worker node filesystem where /etc/kubernetes/kubelet.conf resides; this must be fixed directly on every worker node via host-level commands. Refer to the Manual Steps section for the SSH-based procedure to change ownership and verify the fix.