SV-242436r961359_rule
V-242436
SRG-APP-000342-CTR-000775
CNTR-K8-002000
CAT I
10
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.
Prior to version 1.21, to enforce security policiesPod Security Policies (psp) were used. Those are now deprecated and will be removed from version 1.25.
Migrate from PSP to PSA:
https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
Pre-version 1.25 Check:
Change to the /etc/kubernetes/manifests directory on the Kubernetes Control Plane. Run the command:
grep -i ValidatingAdmissionWebhook *
If a line is not returned that includes enable-admission-plugins and ValidatingAdmissionWebhook, this is a finding.
V-242436
False
CNTR-K8-002000
Prior to version 1.21, to enforce security policiesPod Security Policies (psp) were used. Those are now deprecated and will be removed from version 1.25.
Migrate from PSP to PSA:
https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
Pre-version 1.25 Check:
Change to the /etc/kubernetes/manifests directory on the Kubernetes Control Plane. Run the command:
grep -i ValidatingAdmissionWebhook *
If a line is not returned that includes enable-admission-plugins and ValidatingAdmissionWebhook, this is a finding.
M
5376