Ensure that the --authorization-mode argument is set to Node (API Server)

Restrict kubelet nodes to reading only objects associated with them. The Node authorization mode only allows kubelets to read Secret, ConfigMap, PersistentVolume, and PersistentVolumeClaim objects associated with their nodes.

Risk Level: High
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.NET.13
Covered by Spectral: Yes
Category: Compute


KubernetesPod where labels contain [value='kube-apiserver'] and namespace = 'kube-system' should have spec.containers with [parsedArgs contain [key like 'authorization-mode' and value like '%Node%']]


Edit the API server pod specification file $apiserverconf
on the master node and set the --authorization-mode parameter to a
value that includes Node.


Pods are the smallest deployable units of computing that can be created and managed in Kubernetes.A Pod is a group of one or more containers (such as Docker containers), with shared storage/network, and a specification for how to run the containers.

Compliance Frameworks

  • BP113
  • BP114
  • CIS140
  • CIS151
  • CIS161
  • NIST800190