UCF STIG Viewer Logo

The Kubernetes kubelet config must be owned by root.


Finding ID Version Rule ID IA Controls Severity
V-242453 CNTR-K8-003200 SV-242453r712715_rule Medium
The Kubernetes kubelet agent registers nodes with the API server and performs health checks to containers within pods. If these files can be modified, the information system would be unaware of pod or container degradation. Many of the security settings within the document are implemented through this file.
Kubernetes Security Technical Implementation Guide 2022-12-02


Check Text ( C-45728r712713_chk )
Review the Kubernetes Kubelet conf files by using the command:

stat -c %U:%G /etc/kubernetes/kubelet.conf| grep -v root:root

If the command returns any non root:root file permissions, this is a finding.
Fix Text (F-45686r712714_fix)
Change the ownership of the kubelet.conf to root: root by executing the command:

chown root:root /etc/kubernetes/kubelet.conf