CNTR-K8-000370 - The Kubernetes Kubelet must have anonymous authentication disabled.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

A user who has access to the Kubelet essentially has root access to the nodes contained within the Kubernetes Control Plane. To control access, users must be authenticated and authorized. By allowing anonymous connections, the controls put in place to secure the Kubelet can be bypassed.

Setting anonymous authentication to 'false' also disables unauthenticated requests from kubelets.

While there are instances where anonymous connections may be needed (e.g., health checks) and Role-Based Access Controls (RBAC) are in place to limit the anonymous access, this access must be disabled and only enabled when necessary.

Solution

Edit the Kubernetes Kubelet file in the/etc/sysconfig/ directory on the Kubernetes Master Node.

Set the argument '--anonymous-auth' to 'false'.

Restart kubelet service using command:
service kubelet restart

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Kubernetes_V1R5_STIG.zip

Item Details

References: CAT|I, CCI|CCI-000213, Rule-ID|SV-242391r712529_rule, STIG-ID|CNTR-K8-000370, Vuln-ID|V-242391

Plugin: Unix

Control ID: 67549fa17d8ca36d3ad001ef9d1b42d0f2cb605e7fe4b043e6052dbbd2b1252b