The Kubernetes kubelet config must have file permissions set to 644 or more restrictive.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-242456CNTR-K8-003230SV-242456r961863_ruleCCI-000366medium
Description
The Kubernetes kubelet agent registers nodes with the API server and performs health checks to containers within pods. If this file can be modified, the information system would be unaware of pod or container degradation.
STIGDate
Kubernetes Security Technical Implementation Guide2025-05-16

Details

Check Text (C-242456r961863_chk)

Review the permissions of the Kubernetes config.yaml by using the command: stat -c %a /var/lib/kubelet/config.yaml If any of the files are have permissions more permissive than "644", this is a finding.

Fix Text (F-45689r821617_fix)

Change the permissions of the config.yaml to "644" by executing the command: chmod 644 /var/lib/kubelet/config.yaml