2.2.10 Ensure that the kubelet configuration file has permissions set to 644 or more restrictive

Information

Ensure that if the kubelet refers to a configuration file with the --config argument, that file has permissions of 644 or more restrictive.

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 writable by only the administrators on the system.

Solution

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

chmod 644 /var/lib/kubelet/config.yaml

Impact:

None

See Also

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