4.1.10 Ensure that the kubelet --config configuration file ownership is set to root:root

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

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.

Impact:

None

Solution

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

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

Default Value:

By default, /var/lib/kubelet/config.yaml file as set up by kubeadm is owned by root:root.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 7a01dfc370ca46435cac56c9a029d2a8535408391c3e431613e1899050220932