SV-242398r1137640_rule
V-242398
SRG-APP-000033-CTR-000100
CNTR-K8-000450
CAT II
10
On the Control Plane, change to the manifests' directory at /etc/kubernetes/manifests and run the command:
grep -i feature-gates *
If any "--feature-gates" setting is available and contains the "DynamicAuditing" flag, remove the flag or set it to false.
On the each Control Plane and Worker Node, run the command:
ps -ef | grep kubelet
Remove the "--feature-gates option" if present.
Note the path to the config file (identified by: --config).
Edit the Kubernetes Kubelet config file:
If the "featureGates" setting is present, remove the "DynamicAuditing" flag or set the flag to false.
Restart the kubelet service using the following command:
service kubelet restart
On the Control Plane, change to the manifests' directory at /etc/kubernetes/manifests and run the command:
grep -i feature-gates *
Review the feature-gates setting, if one is returned.
If the feature-gates setting is available and contains the DynamicAuditing flag set to "true", this is a finding.
On each Control Plane and Worker node, run the command:
ps -ef | grep kubelet
If the "--feature-gates" option exists, this is a finding.
Note the path to the config file (identified by: --config).
Inspect the content of the config file:
If the "featureGates" setting is present and has the "DynamicAuditing" flag set to "true", this is a finding.
V-242398
False
CNTR-K8-000450
On the Control Plane, change to the manifests' directory at /etc/kubernetes/manifests and run the command:
grep -i feature-gates *
Review the feature-gates setting, if one is returned.
If the feature-gates setting is available and contains the DynamicAuditing flag set to "true", this is a finding.
On each Control Plane and Worker node, run the command:
ps -ef | grep kubelet
If the "--feature-gates" option exists, this is a finding.
Note the path to the config file (identified by: --config).
Inspect the content of the config file:
If the "featureGates" setting is present and has the "DynamicAuditing" flag set to "true", this is a finding.
M
5376