TMAegisBeta
More rules for openshift

Red Hat OpenShift

TMA-OPENSHIFT-1.3.2

Ensure that the --use-service-account-credentials argument is set to true

MediumLevel 1Manual reviewopenshift

Description

Use individual service account credentials for each controller. 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, --use-service-account-credentials is set to true by default for the Controller Manager. The bootstrap configuration and overrides are available here: kube-controller-manager-pod bootstrap-config-overrides Run the following command on the master node: oc get configmaps config -n openshift-kube-controller-manager -ojson | \ jq -r '.data["config.yaml"]' | \ jq -r '.extendedArguments["use-service-account-credentials"][]' Verify that the --use-service-account-credentials argument is set to true.

How it is fixed

Fix method: Guidance or infrastructure patch

set --use-service-account-credentials to true

Properties

Operating systems
Any
Tags
openshiftcontroller-manager
Reference
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 1.3.2 Ensure that the --use-service-account-credentials argument is set to true