CNTR-K8-002000 - The Kubernetes API server must have the ValidatingAdmissionWebhook enabled.

Information

Enabling the admissions webhook allows for Kubernetes to apply policies against objects that are to be created, read, updated, or deleted. By applying a pod security policy, control can be given to not allow images to be instantiated that run as the root user. If pods run as the root user, the pod then has root privileges to the host system and all the resources it has. An attacker can use this to attack the Kubernetes cluster. By implementing a policy that does not allow root or privileged pods, the pod users are limited in what the pod can do and access.

Solution

Edit the Kubernetes API Server manifest file in the /etc/kubernetes/manifests directory on the Kubernetes Control Plane. Set the argument '--enable-admission-plugins' to include 'ValidatingAdmissionWebhook'. Each enabled plugin is separated by commas.

Note: It is best to implement policies first and then enable the webhook, otherwise a denial of service may occur.

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-16a., CAT|I, CCI|CCI-002263, Rule-ID|SV-242436r879719_rule, STIG-ID|CNTR-K8-002000, Vuln-ID|V-242436

Plugin: Unix

Control ID: 2cdd5472525ae3d9934bdbb380ca3cbc35ee7ce39706435c588c8c9f173e3d0a