TMA-OPENSHIFT-1.2.13
Ensure that the admission control plugin NodeRestriction is set
HighLevel 1Manual reviewopenshift
Description
Limit the Node and Pod objects that a kubelet could modify. The benchmark marks this recommendation Manual.
How it is checked
Audit method: Manual review
This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.
In OpenShift, the NodeRestriction admission plugin is enabled by default. Use the following command to obtain a list of configured admission controllers: oc -n openshift-kube-apiserver get configmap config -o json | jq -r '.data."config.yaml"' | jq '.apiServerArguments."enable-admission-plugins"' Verify the list includes NodeRestriction.
How it is fixed
Fix method: Guidance or infrastructure patch
Enable the NodeRestriction admission plugin.
Properties
- Operating systems
- Any
- Tags
- openshiftapi-server
- Reference
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 1.2.13 Ensure that the admission control plugin NodeRestriction is set