Skip to content

Minimize Wildcard Usage in Cluster and Local Roles

An XCCDF Rule

Description

Kubernetes Cluster and Local Roles provide access to resources based on sets of objects and actions that can be taken on those objects. It is possible to set either of these using a wildcard * which matches all items. This violates the principle of least privilege and leaves a cluster in a more vulnerable state to privilege abuse.

Rationale

The principle of least privilege recommends that users are provided only the access required for their role and nothing more. The use of wildcard rights grants is likely to provide excessive rights to the Kubernetes API.

ID
xccdf_org.ssgproject.content_rule_rbac_wildcard_use
Severity
Medium
References
Updated