TMAegisBeta
More rules for openshift

Red Hat OpenShift

TMA-OPENSHIFT-1.2.23

Ensure that the --service-account-lookup argument is set to true

MediumLevel 1Manual reviewopenshift

Description

Validate service account before validating token. 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 denies access for any OAuth Access token that does not exist in its etcd data store. OpenShift does not use the service-account-lookup flag even when it is set. Run the following command: oc get configmap config -n openshift-kube-apiserver -ojson | jq -r '.data["config.yaml"]' | jq '.apiServerArguments."service-account-lookup"[]' Verify that if the --service-account-lookup argument exists it is set to true.

How it is fixed

Fix method: Guidance or infrastructure patch

Set the --service-account-lookup argument to true

Properties

Operating systems
Any
Tags
openshiftapi-server
Reference
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 1.2.23 Ensure that the --service-account-lookup argument is set to true