CNTR-K8-003130 - The Kubernetes conf files must be owned by root.

Information

The Kubernetes conf files contain the arguments and settings for the Control Plane services. These services are controller and scheduler. If these files can be changed, the scheduler will be implementing the changes immediately. Many of the security settings within the document are implemented through this file.

Solution

Change the ownership of the conf files to root: root by executing the command:

chown root:root /etc/kubernetes/admin.conf
chown root:root /etc/kubernetes/scheduler.conf
chown root:root /etc/kubernetes/controller-manager.conf

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Kubernetes_V2R3_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-242446r961863_rule, STIG-ID|CNTR-K8-003130, Vuln-ID|V-242446

Plugin: Unix

Control ID: cce40a4cc0b646723bb7c4b448f87cf16c8f94b1f153cc50dc0a178f4b056596