|Finding ID||Version||Rule ID||IA Controls||Severity|
|Kubernetes container and pod configuration are maintained by Kubelet. Kubelet agents register nodes with the API Server, mount volume storage, and perform health checks for containers and pods. Anyone who gains access to Kubelet agents can effectively control applications within the pods and containers. Using authenticity protection, the communication can be protected against man-in-the-middle attacks/session hijacking and the insertion of false information into sessions. The communication session is protected by utilizing transport encryption protocols, such as TLS. TLS provides the Kubernetes API Server with a means to be able to authenticate sessions and encrypt traffic. To enable encrypted communication for Kubelet, the client-ca-file must be set. This parameter gives the location of the SSL Certificate Authority file used to secure Kubelet communication.|
|Kubernetes Security Technical Implementation Guide||2022-09-13|
|Check Text ( C-45695r863848_chk )|
| On the Kubernetes Control Plane, run the command: |
ps -ef | grep kubelet
Check the config file (path identified by: --config):
Change to the directory identified by --config (example /etc/sysconfig/) run the command:
grep -i client-ca-file kubelet
If the setting client-ca-file is not set in the Kubernetes API server manifest file or contains no value, this is a finding.
|Fix Text (F-45653r863849_fix)|
| Edit the Kubernetes Kubelet file in the --config directory on the Kubernetes Control Plane: |
Set the value of client-ca-file to path containing Approved Organizational Certificate.
Reset Kubelet service using the following command:
service kubelet restart