SV-242424r1043178_rule
V-242424
SRG-APP-000219-CTR-000550
CNTR-K8-001460
CAT II
10
On the Control Plane, run the command:
ps -ef | grep kubelet
Remove the "--tls-private-key-file" option if present.
Note the path to the config file (identified by --config).
Edit the Kubernetes Kubelet config file:
Set "tlsPrivateKeyFile" to a path containing the appropriate private key.
Restart the kubelet service using the following command:
systemctl daemon-reload && systemctl restart kubelet
On the Control Plane, run the command:
ps -ef | grep kubelet
If the "--tls-private-key-file" option exists, this is a finding.
Note the path to the config file (identified by --config).
Run the command:
grep -i tlsPrivateKeyFile <path_to_config_file>
If the setting "tlsPrivateKeyFile" is not set or contains no value, this is a finding.
V-242424
False
CNTR-K8-001460
On the Control Plane, run the command:
ps -ef | grep kubelet
If the "--tls-private-key-file" option exists, this is a finding.
Note the path to the config file (identified by --config).
Run the command:
grep -i tlsPrivateKeyFile <path_to_config_file>
If the setting "tlsPrivateKeyFile" is not set or contains no value, this is a finding.
M
5376