The Kubernetes PKI keys must have file permissions set to 600 or more restrictive.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-242467CNTR-K8-003340SV-242467r961863_ruleCCI-000366medium
Description
The Kubernetes PKI directory contains all certificate key files supporting secure network communications in the Kubernetes Control Plane. If these files can be modified, data traversing within the architecture components would become unsecure and compromised.
STIGDate
Kubernetes Security Technical Implementation Guide2025-05-16

Details

Check Text (C-242467r961863_chk)

Review the permissions of the Kubernetes PKI key files by using the command: sudo find /etc/kubernetes/pki -name "*.key" | xargs stat -c '%n %a' If any of the files have permissions more permissive than "600", this is a finding.

Fix Text (F-45700r918206_fix)

Change the ownership of the key files to "600" by executing the command: find /etc/kubernetes/pki -name "*.key" | xargs chmod 600