N/A
Source
Kube Bench
ID
4.1
Version
ack-1.0

4.1 Worker Node Configuration Files

4.1.1 Ensure that the kubelet service file permissions are set to 644 or more restrictive (Automated)

Run the below command (based on the file location on your system) on the each worker node. For example, chmod 644 $kubeletsvc

4.1.2 Ensure that the kubelet service file ownership is set to root:root (Automated)

Run the below command (based on the file location on your system) on the each worker node. For example, chown root:root $kubeletsvc

4.1.3 If proxy kubeconfig file exists ensure permissions are set to 644 or more restrictive (Manual)

Run the below command (based on the file location on your system) on the each worker node. For example, chmod 644 $proxykubeconfig

4.1.4 If proxy kubeconfig file exists ensure ownership is set to root:root (Manual)

Run the below command (based on the file location on your system) on the each worker node. For example, chown root:root $proxykubeconfig

4.1.5 Ensure that the –kubeconfig kubelet.conf file permissions are set to 644 or more restrictive (Automated)

Run the below command (based on the file location on your system) on the each worker node. For example, chmod 644 $kubeletkubeconfig

4.1.6 Ensure that the –kubeconfig kubelet.conf file ownership is set to root:root (Manual)

Run the below command (based on the file location on your system) on the each worker node. For example, chown root:root $kubeletkubeconfig

4.1.7 Ensure that the certificate authorities file permissions are set to 644 or more restrictive (Manual)

Run the following command to modify the file permissions of the –client-ca-file chmod 644

4.1.8 Ensure that the client certificate authorities file ownership is set to root:root (Manual)

Run the following command to modify the ownership of the –client-ca-file. chown root:root

4.1.9 Ensure that the kubelet –config configuration file has permissions set to 644 or more restrictive (Automated)

Run the following command (using the config file location identified in the Audit step) chmod 644 $kubeletconf

4.1.10 Ensure that the kubelet –config configuration file ownership is set to root:root (Automated)

Run the following command (using the config file location identified in the Audit step) chown root:root $kubeletconf