The Kubernetes component etcd must be owned by etcd.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-242445CNTR-K8-003120SV-242445r961863_ruleCCI-000366medium
Description
The Kubernetes etcd key-value store provides a way to store data to the Control Plane. If these files can be changed, data to API object and the Control Plane would be compromised. The scheduler will implement the changes immediately. Many of the security settings within the document are implemented through this file.
STIGDate
Kubernetes Security Technical Implementation Guide2025-05-16

Details

Check Text (C-242445r961863_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/*