4.1.9 If the kubelet config.yaml configuration file is being used validate permissions set to 600 or more restrictive

Information

Ensure that if the kubelet refers to a configuration file with the --config argument, that file has permissions of 600 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.

Impact:

None

Solution

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

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

Default Value:

By default, the /var/lib/kubelet/config.yaml file as set up by kubeadm has permissions of 600.

See Also

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

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: d69b5495d46751e70c48e0eb0a69bb83bf3ada193effbfa39d2725f37b94fbb8