CNTR-K8-003240 - The Kubernetes kubelet config must be owned by root.

Information

The Kubernetes kubelet agent registers nodes with the API Server and performs health checks to containers within pods. If this file can be modified, the information system would be unaware of pod or container degradation.

Solution

Change the ownership of the kubelet config to 'root: root' by executing the command:

chown root:root /var/lib/kubelet/config.yaml

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: b0cb28efc91c3ab0726aa66f5da5f03b0abafaf8e9b4414a267b839823e72f3e