For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

The --use-service-account-credentials argument for controller managers is not set to True misconfigu

Rule Details

Cortex AppSec Rule ID

APPSEC_K8S_108

Category - Subcategory

Kubernetes - Native Security Controls

Provider

OTHER

Severity

HIGH

Framework

Helm, Kubernetes, Kustomize

Impact

Use individual service account credentials for each controller. The controller manager creates a service account per controller in the kube-system namespace, generates a credential for it, and builds a dedicated API client with that service account credential for each controller loop to use. Setting the --use-service-account- credentials to true runs each control loop within the controller manager using a separate service account credential. When used in combination with RBAC, this ensures that the control loops run with the minimum permissions required to perform their intended tasks.

How to Fix

Kind: Pod [source,go]

{ " apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: component: kube-controller-manager tier: control-plane name: kube-controller-manager namespace: kube-system spec: containers:

  • command:

  • kube-controller-manager

    • --use-service-account-credentials=true image: gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0", }


Last updated

Was this helpful?