0422-k8s-authorization-mode-kubelet Ensure the authorization mode parameter is not set to: AlwaysAllow¶
Rule ID¶
- 0422-k8s-authorization-mode
Category¶
- container
Level¶
- warn
Compatible Versions¶
- Linux
Description¶
- If using a Kubelet configuration file, edit the file to set
authorization: modetoWebhook.
Scan Frequency¶
0 */30 * * *
Rationale¶
- By default, Kubelets allow all authenticated requests (even anonymous requests) without requiring explicit authorization checks from the sender. You should restrict this behavior and only allow explicitly authorized requests.
Risk Items¶
- Container Security
Audit Method¶
- Execute the following command to verify:
Remediation¶
- Execute the following command:
Set --authorization-mode=Webhook.
Note: If the --authorization-mode parameter exists, set it to Webhook.
If this parameter does not exist, check the file specified by the --config parameter used to start kubelet, and check the authorization: mode configuration item in that file. Set it to Webhook.
After setting these parameters and ensuring they are correct, restart kubelet:
Impact¶
- None
Default Value¶
- By default, the
--authorization-modeparameter is set toAlwaysAllow.
References¶
CIS Controls¶
- None