TMAegis
More rules for openshift

Red Hat OpenShift

TMA-OPENSHIFT-1.3.3

Ensure that the --service-account-private-key-file argument is set as appropriate

HighLevel 1Manual reviewopenshift

Description

Explicitly set a service account private key file for service accounts on the controller manager. 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 starts the Kubernetes Controller Manager with service-account-private-key-file set to /etc/kubernetes/static-pod-resources/secrets/service-account-private-key/service-account.key. The bootstrap configuration and overrides are available here: kube-controller-manager-pod bootstrap-config-overrides Run the following command: oc get configmaps config -n openshift-kube-controller-manager -ojson | \ jq -r '.data["config.yaml"]' | \ jq -r '.extendedArguments["service-account-private-key-file"][]' Verify that the following is returned ...

How it is fixed

Fix method: Guidance or infrastructure patch

set --service-account-private-key-file argument as appropriate

Properties

Operating systems
Any
Tags
openshiftcontroller-managernetwork
Reference
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 1.3.3 Ensure that the --service-account-private-key-file argument is set as appropriate