Description
The Node authorizer grants kubelets the API access they need. For example, it allows a kubelet to read Secrets and ConfigMaps referenced by Pods assigned to its node.
Potential impact
Broad permissions from another authorizer can still let a kubelet read resources its Pods do not need.
Remediation
Enable Node in --authorization-mode or your AuthorizationConfiguration. Check that the kubelet authenticates as system:node:<nodeName> in system:nodes. Use NodeRestriction to limit what nodes can modify and review what other authorizers and RBAC bindings allow.
Examples
The excerpts show Kubernetes 1.34 API server arguments. Supply the kubelet credentials and required RBAC bindings separately.
Before
apiVersion: v1
kind: Pod
metadata:
name: command-demo
spec:
containers:
- name: command-demo-container
image: registry.k8s.io/kube-apiserver:v1.34.0
command: ["kube-apiserver"]
args: ["--authorization-mode=AlwaysAllow"]
After
apiVersion: v1
kind: Pod
metadata:
name: command-demo
spec:
containers:
- name: command-demo-container
image: registry.k8s.io/kube-apiserver:v1.34.0
command: ["kube-apiserver"]
args: ["--authorization-mode=RBAC,Node"]
The second excerpt replaces AlwaysAllow with RBAC,Node. Verify that kubelets can read resources needed by their Pods and that unrelated access is denied.