Check: CNTR-K8-003190
Kubernetes STIG:
CNTR-K8-003190
(in versions v1 r11 through v1 r1)
Title
The Kubernetes kubelet KubeConfig must have file permissions set to 644 or more restrictive. (Cat II impact)
Discussion
The Kubernetes kubelet agent registers nodes with the API Server, mounts volume storage for pods, 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 permissions of the Kubernetes Kubelet conf by using the command: stat -c %a /etc/kubernetes/kubelet.conf If any of the files are have permissions more permissive than "644", this is a finding.
Fix Text
Change the permissions of the Kubelet to "644" by executing the command: chmod 644 /etc/kubernetes/kubelet.conf
Additional Identifiers
Rule ID: SV-242452r918197_rule
Vulnerability ID: V-242452
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 |