SV-242446r712694_rule
V-242446
SRG-APP-000516-CTR-001325
CNTR-K8-003130
CAT II
10
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
Review the Kubernetes conf files by using the command:
stat -c %U:%G /etc/kubernetes/admin.conf | grep -v root:root
stat -c %U:%G /etc/kubernetes/scheduler.conf | grep -v root:root
stat -c %U:%G /etc/kubernetes/controller-manager.conf | grep -v root:root
If the command returns any non root:root file permissions, this is a finding.
V-242446
False
CNTR-K8-003130
Review the Kubernetes conf files by using the command:
stat -c %U:%G /etc/kubernetes/admin.conf | grep -v root:root
stat -c %U:%G /etc/kubernetes/scheduler.conf | grep -v root:root
stat -c %U:%G /etc/kubernetes/controller-manager.conf | grep -v root:root
If the command returns any non root:root file permissions, this is a finding.
M
5376