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

The --root-ca-file argument for controller managers is not set appropriately misconfiguration detect

Rule Details

Cortex AppSec Rule ID

APPSEC_K8S_111

Category - Subcategory

Kubernetes - Native Security Controls

Provider

OTHER

Severity

HIGH

Framework

Helm, Kubernetes, Kustomize

Impact

Allow pods to verify the API server's serving certificate before establishing connections. Processes running within pods that need to contact the API server must verify the API server's serving certificate. Failing to do so could be a subject to man-in-the-middle attacks. Providing the root certificate for the API server's serving certificate to the controller manager with the --root-ca-file argument allows the controller manager to inject the trusted bundle into pods so that they can verify TLS connections to the API server.

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

    • --root-ca-file=private.pem image: gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0", }


Last updated

Was this helpful?