2.2.9 Ensure that the kubelet configuration file ownership is set to root:root

Information

Ensure that if the kubelet refers to a configuration file with the '--config' argument, that file is owned by root:root.

Rationale:

The kubelet reads various parameters, including security settings, from a config file specified by the '--config' argument. If this file is specified you should restrict its file permissions to maintain the integrity of the file. The file should be owned by root:root.

Solution

Run the following command (using the config file location identied in the Audit step)

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

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 31078f2204e6faf4305c993e46d4aab4286e0d3f47e925f651891cb4e425fc9c