1.1.14 Ensure that the default administrative credential file ownership is set to root:root

Information

Ensure that the admin.conf (and super-admin.conf file, where it exists) file ownership is set to root:root

As part of initial cluster setup, default kubeconfig files are created to be used by the administrator of the cluster. These files contain private keys and certificates which allow for privileged access to the cluster. You should set their file ownership to maintain the integrity and confidentiality of the file. The file(s) should be owned by root:root.

Solution

Run the below command (based on the file location on your system) on the Control Plane node. For example,

chown root:root /etc/kubernetes/admin.conf

On Kubernetes 1.29+ the super-admin.conf file should also be modified, if present. For example,

chown root:root /etc/kubernetes/super-admin.conf

Impact:

None.

See Also

https://workbench.cisecurity.org/benchmarks/17568

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(2), 800-53|AC-6(5)

Plugin: Unix

Control ID: 25fa1f2f7201b100ffee1e5cf6dc94723d16d3094c5f526519bd46662fcec1da