Skip to main content

More Info:

Verifies that admin.conf and super-admin.conf kubeconfig files are owned by root:root so only privileged users can read the cluster-admin credentials.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every control plane node, check current ownership of the admin kubeconfig files:
  1. On every control plane node, change ownership of /etc/kubernetes/admin.conf to root:root if the file exists:
  1. On every control plane node, change ownership of /etc/kubernetes/super-admin.conf to root:root if the file exists (especially on Kubernetes v1.29+):
  1. Verify the fix on every control plane node:
kubectl cannot modify file ownership on control plane hosts, so it cannot be used to fix /etc/kubernetes/admin.conf or /etc/kubernetes/super-admin.conf. Change ownership directly on every control plane node’s filesystem, as described in the Manual Steps section.