1.1.19 Ensure that the Kubernetes PKI directory and file ownership is set to root:root

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Ensure that the Kubernetes PKI directory and file ownership is set to root:root.

Rationale:

Kubernetes makes use of a number of certificates as part of its operation. You should set the ownership of the directory containing the PKI information and all files in that directory to maintain their integrity. The directory and files should be owned by root:root.

Solution

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

chown -R root:root /etc/kubernetes/pki/

Impact:

None

Default Value:

By default, the /etc/kubernetes/pki/ directory and all of the files and directories contained within it, are set to be owned by the root user.

References:

https://kubernetes.io/docs/admin/kube-apiserver/

See Also

https://workbench.cisecurity.org/files/2662

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|5.1

Plugin: Unix

Control ID: 07a69b1849935d6b5a95d3ee9138b759ad7944d002cf4ea59821b574d1219e3b