The Kubernetes PKI CRT must have file permissions set to 644 or more restrictive.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-242466CNTR-K8-003330SV-242466r961863_ruleCCI-000366medium
Description
The Kubernetes PKI directory contains all certificates (.crt 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-242466r961863_chk)

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

Fix Text (F-45699r918202_fix)

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