Red Hat OpenShift
TMA-OPENSHIFT-1.2.11
Ensure that the admission control plugin NamespaceLifecycle is set
MediumLevel 1Manual reviewopenshift
Description
Reject creating objects in a namespace that is undergoing termination. 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.
OpenShift enables the NamespaceLifecycle plugin 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 that NamespaceLifecycle is present in the returned list.
How it is fixed
Fix method: Guidance or infrastructure patch
Configure NamespaceLifecycle admission controller.
Properties
- Operating systems
- Any
- Tags
- openshiftapi-server
- Reference
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 1.2.11 Ensure that the admission control plugin NamespaceLifecycle is set