1. Home
  2. Security Hardening
  3. DISA STIG Kubernetes V1R4
  4. CNTR-K8-000380 – The Kubernetes kubelet must enable explicit authorization.

CNTR-K8-000380 – The Kubernetes kubelet must enable explicit authorization.

Details

Kubelet is the primary agent on each node. The API server communicates with each kubelet to perform tasks such as starting/stopping pods. By default, kubelets allow all authenticated requests, even anonymous ones, without requiring any authorization checks from the API server. This default behavior bypasses any authorization controls put in place to limit what users may perform within the Kubernetes cluster. To change this behavior, the default setting of AlwaysAllow for the authorization mode must be set to ‘Webhook’.

Solution

Edit the Kubernetes Kubelet file in the/etc/sysconfig/ directory on the Kubernetes Master and Worker nodes.

Set the argument –authorization-mode to ‘Webhook’.

Restart each kubelet service after the change is made using the command:
service kubelet restart

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles