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

Information

Ensure that if the kubelet configuration file exists, it 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.

Impact:

Overly permissive file access increases the security risk to the platform.

Solution

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

chown root:root <kubelet_config_file>

Default Value:

The default file ownership is root:root.

See Also

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