Check: CNTR-K8-003240
Kubernetes STIG:
CNTR-K8-003240
(in versions v1 r11 through v1 r0.1)
Title
The Kubernetes kubelet config must be owned by root. (Cat II impact)
Discussion
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.
Check Content
Review the Kubernetes Kubeadm kubelet conf file by using the command: stat -c %U:%G /var/lib/kubelet/config.yaml| grep -v root:root If the command returns any non root:root file permissions, this is a finding.
Fix Text
Change the ownership of the kubelet config to "root: root" by executing the command: chown root:root /var/lib/kubelet/config.yaml
Additional Identifiers
Rule ID: SV-242457r879887_rule
Vulnerability ID: V-242457
Group Title: SRG-APP-000516-CTR-001330
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |