The Kubernetes kubelet KubeConfig file must be owned by root.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-242453SRG-APP-000516-CTR-001325CNTR-K8-003200SV-242453r961863_rule2025-02-202
Description
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.
ℹ️ Check
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
Change the ownership of the kubelet.conf to root: root by executing the command: chown root:root /etc/kubernetes/kubelet.conf