Skip to main content

More Info:

Verifies that admin.conf and super-admin.conf kubeconfig files have permissions of 600. These files grant cluster-admin access and must not be readable by other users.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every control plane node, check the current permissions of the default admin kubeconfig files:
  2. On every control plane node, restrict permissions on admin.conf so only the owner can read and write it:
  3. On every control plane node running Kubernetes 1.29 or later, also restrict permissions on super-admin.conf (if present):
  4. On every control plane node, confirm that only the intended user (typically root) owns these files and that group/others do not have access:
  5. On every control plane node, re-run the permissions check to verify remediation:
kubectl cannot modify file permissions on control plane nodes, so it cannot be used to fix /etc/kubernetes/admin.conf or /etc/kubernetes/super-admin.conf. File mode changes must be made directly on each control plane node’s filesystem; see the Manual Steps section for the exact commands to run over SSH.