Skip to content

Verify User Who Owns The Kubernetes Scheduler Kubeconfig File

An XCCDF Rule

Description

To properly set the owner of /etc/kubernetes/static-pod-resources/kube-scheduler-pod-*/configmaps/scheduler-kubeconfig/kubeconfig, run the command:

$ sudo chown root /etc/kubernetes/static-pod-resources/kube-scheduler-pod-*/configmaps/scheduler-kubeconfig/kubeconfig 

warning alert: Dependency Warning

This rule is only applicable for nodes that run the Kubernetes Scheduler service. The aforementioned service is only running on the nodes labeled "master" by default.

Rationale

The kubeconfig for the Scheduler contains parameters for the scheduler to access the Kube API. You should set its file ownership to maintain the integrity of the file.

ID
xccdf_org.ssgproject.content_rule_file_owner_scheduler_kubeconfig
Severity
Medium
References
Updated