CNTR-K8-000440 - The Kubernetes kubelet static PodPath must not enable static pods.

Warning! Audit Deprecated

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

View Next Audit Version

Information

Allowing kubelet to set a staticPodPath gives containers with root access permissions to traverse the hosting filesystem. The danger comes when the container can create a manifest file within the /etc/kubernetes/manifests directory. When a manifest is created within this directory, containers are entirely governed by the Kubelet not the API Server. The container is not susceptible to admission control at all. Any containers or pods that are instantiated in this manner are called 'static pods' and are meant to be used for pods such as the API server, scheduler, controller, etc., not workload pods that need to be governed by the API Server.

Solution

Edit the kubelet file on each node under the --config directory and remove the staticPodPath setting.

Reset Kubelet service using the following command:
service kubelet restart

See Also

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

Item Details

References: CAT|I, CCI|CCI-000213, Rule-ID|SV-242397r863973_rule, STIG-ID|CNTR-K8-000440, Vuln-ID|V-242397

Plugin: Unix

Control ID: 50974a04077ca7bdc0a21d7956b8fcbdf9e9dea4c44b6aa456e24164b9b1a613