CNTR-K8-000890 - The Kubernetes kubelet configuration files must have file permissions set to 644 or more restrictive.

Warning! Audit Deprecated

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

View Next Audit Version

Information

The kubelet configuration file contains the runtime configuration of the kubelet service. If an attacker can gain access to this file, changes can be made to open vulnerabilities and bypass user authorizations inherit within Kubernetes with RBAC implemented.

Solution

On the Master node, change to the /etc/kubernetes/manifest directory. Run the command:

chmod 644 kubelet

To verify the change took place, run the command:

ls -l kubelet

The kubelet file should now have the permissions of '644'.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Kubernetes_V1R5_STIG.zip

Item Details

References: CAT|II, CCI|CCI-001499, Rule-ID|SV-242407r799982_rule, STIG-ID|CNTR-K8-000890, Vuln-ID|V-242407

Plugin: Unix

Control ID: 94e19db994d3f54ed667b9f2e14a37833f50edf6177fb48f771687449a98d619