Skip to content

Verify Permissions on the Worker Kubeconfig File

An XCCDF Rule

Description

To properly set the permissions of /var/lib/kubelet/kubeconfig, run the command:

$ sudo chmod 0644 /var/lib/kubelet/kubeconfig

Rationale

If the worker kubeconfig file is writable by a group-owner or the world the risk of its compromise is increased. The file contains the administration configuration of the OpenShift cluster that is configured on the system. Protection of this file is critical for OpenShift security.

ID
xccdf_org.ssgproject.content_rule_file_permissions_worker_kubeconfig
Severity
Medium
References
Updated