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

The --kubelet-client-certificate and --kubelet-client-key arguments are not set appropriately miscon

Rule Details

Cortex AppSec Rule ID

APPSEC_K8S_72

Category - Subcategory

Kubernetes - Native Security Controls

Provider

OTHER

Severity

HIGH

Framework

Helm, Kubernetes, Kustomize

Impact

Enable certificate based kubelet authentication. The apiserver, by default, does not authenticate itself to the kubelet's HTTPS endpoints. The requests from the apiserver are treated anonymously. You should set up certificate- based kubelet authentication to ensure that the apiserver authenticates itself to kubelets when submitting requests.

How to Fix

Kind: Pod [source,go]

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

  • command:

    • kube-apiserver

    • --kubelet-client-certificate=/path/to/cert

    • --kubelet-client-key=/path/to/key image: gcr.io/google_containers/kube-apiserver-amd64:v1.6.0 ...", }


Last updated

Was this helpful?