UCF STIG Viewer Logo

The Kubernetes component etcd must be owned by etcd.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242445 CNTR-K8-003120 SV-242445r712691_rule Medium
Description
The Kubernetes etcd key-value store provides a way to store data to the Master Node. If these files can be changed, data to API object and the master node would be compromised. The scheduler will implement the changes immediately. Many of the security settings within the document are implemented through this file.
STIG Date
Kubernetes Security Technical Implementation Guide 2021-04-14

Details

Check Text ( C-45720r712689_chk )
Review the ownership of the Kubernetes etcd files by using the command:

stat -c %U:%G /var/lib/etcd/* | grep -v etcd:etcd

If the command returns any non etcd:etcd file permissions, this is a finding.
Fix Text (F-45678r712690_fix)
Change the ownership of the manifest files to etcd:etcd by executing the command:

chown etcd:etcd /var/lib/etcd/*