SV-242391r1137638_rule
V-242391
SRG-APP-000033-CTR-000090
CNTR-K8-000370
CAT I
10
On each Control Plane and Worker Node, run the command:
ps -ef | grep kubelet
Remove the "anonymous-auth" option if present.
Note the path to the config file (identified by --config).
Edit the config file:
Locate the "authentication" section and the "anonymous" subsection. Within the "anonymous" subsection, set "enabled" to "false".
Restart the kubelet service using the following command:
systemctl daemon-reload && systemctl restart kubelet
On each Control Plane and Worker Node, run the command:
ps -ef | grep kubelet
If the "--anonymous-auth" option exists, this is a finding.
Note the path to the config file (identified by --config).
Inspect the content of the config file:
Locate the "anonymous" section under "authentication". In this section, if the field "enabled" does not exist or is set to "true", this is a finding.
V-242391
False
CNTR-K8-000370
On each Control Plane and Worker Node, run the command:
ps -ef | grep kubelet
If the "--anonymous-auth" option exists, this is a finding.
Note the path to the config file (identified by --config).
Inspect the content of the config file:
Locate the "anonymous" section under "authentication". In this section, if the field "enabled" does not exist or is set to "true", this is a finding.
M
5376