The Kubernetes KubeletConfiguration file must be owned by root.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-242406SRG-APP-000133-CTR-000300CNTR-K8-000880SV-242406r960960_rule2025-02-202
Description
The kubelet configuration file contains the runtime configuration of the kubelet service. If an attacker can gain access to this file, changes can be made to open vulnerabilities and bypass user authorizations inherent within Kubernetes with RBAC implemented.
ℹ️ Check
On the Kubernetes Control Plane and Worker nodes, 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: ls -l kubelet Each kubelet configuration file must be owned by root:root. If any manifest file is not owned by root:root, this is a finding.
✔️ Fix
On the Control Plane and Worker nodes, change to the --config directory. Run the command: chown root:root kubelet To verify the change took place, run the command: ls -l kubelet The kubelet file should now be owned by root:root.