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

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.

Impact:

None

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/

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.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 9ee28ad2b7b697a8df63d52f25d1cbb27e5c17e52def645eb32d7f74fce16f58