Check: CNTR-K8-003200
Kubernetes STIG:
CNTR-K8-003200
(in versions v1 r11 through v1 r1)
Title
The Kubernetes kubelet KubeConfig file 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 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 Content
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
Change the ownership of the kubelet.conf to root: root by executing the command: chown root:root /etc/kubernetes/kubelet.conf
Additional Identifiers
Rule ID: SV-242453r918204_rule
Vulnerability ID: V-242453
Group Title: SRG-APP-000516-CTR-001325
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |