2.1.3 Ensure that the --authorization-mode argument is not set to AlwaysAllow

Information

Do not allow all requests. Enable explicit authorization.

Rationale:

Kubelets, by default, allow all authenticated requests (even anonymous ones) without needing explicit authorization checks from the apiserver. You should restrict this behavior and only allow explicitly authorized requests.

Solution

Edit the `/etc/kubernetes/kubelet` file on each node and set the `KUBELET_ARGS` parameter to `'--authorization-mode=Webhook'`: `KUBELET_ARGS='--authorization-mode=Webhook'`

Based on your system, restart the `kubelet` service. For example: `systemctl restart kubelet.service`

Impact:

Unauthorized requests will be denied.

See Also

https://workbench.cisecurity.org/files/1738

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, CSCv6|14

Plugin: Unix

Control ID: a8baefa4970d0846fda075f6f29fb0c4b1a79e73e35af7409432118cfdb77e55