Skip to content

Verify Permissions on the OpenShift Controller Manager Kubeconfig File

An XCCDF Rule

Description

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

$ sudo chmod 0600 /etc/kubernetes/static-pod-resources/kube-controller-manager-pod-*/configmaps/controller-manager-kubeconfig/kubeconfig

warning alert: Dependency Warning

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

Rationale

The Controller Manager's kubeconfig contains information about how the component will access the API server. You should restrict its file permissions to maintain the integrity of the file. The file should be writable by only the administrators on the system.

ID
xccdf_org.ssgproject.content_rule_file_permissions_controller_manager_kubeconfig
Severity
Medium
References
Updated