CNTR-K8-003190 - The Kubernetes kubelet KubeConfig must have file permissions set to 644 or more restrictive.

Information

The Kubernetes kubelet agent registers nodes with the API Server, mounts volume storage for pods, and performs health checks to containers within pods. If these files can be modified, the information system would be unaware of pod or container degradation. Many of the security settings within the document are implemented through this file.

Solution

Change the permissions of the Kubelet to '644' by executing the command:

chmod 644 /etc/kubernetes/kubelet.conf

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-242452r961863_rule, STIG-ID|CNTR-K8-003190, Vuln-ID|V-242452

Plugin: Unix

Control ID: 8c4cbc764d5de16a32cabb5c086f986336cd4ea82eef10efe8ae03fe0be9d2ce