CNTR-K8-003170 - The Kubernetes Kubelet certificate authority must be owned by root.

Information

The Kubernetes kube proxy kubeconfig contain the argument and setting for the Control Planes. These settings contain network rules for restricting network communication between pods, clusters, and networks. If these files can be changed, data traversing between the Kubernetes Control Panel components would be compromised. Many of the security settings within the document are implemented through this file.

Solution

On the Control Plane, run the command:
ps -ef | grep kubelet

Remove the 'client-ca-file' option.

Note the path to the config file (identified by --config).

Run the command:
grep -i clientCAFile <path_to_config_file>

Note the path to the client ca file.

Run the command:
chown root:root <path_to_client_ca_file>

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-242450r961863_rule, STIG-ID|CNTR-K8-003170, Vuln-ID|V-242450

Plugin: Unix

Control ID: 06358a21f14f2ab5088af1d66bf80d684793e288e064a65208c1b7894ec1d27c