turbot/kubernetes_compliance

Control: Minimize wildcard use in Roles and ClusterRoles

Description

Kubernetes Roles and ClusterRoles 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 to be the wildcard "*" which matches all items. Use of wildcards is not optimal from a security perspective as it may allow for inadvertent access to be granted when new resources are added to the Kubernetes API either as CRDs or in later versions of the product.

Usage

Run the control in your terminal:

powerpipe control run kubernetes_compliance.control.role_with_wildcards_used

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run kubernetes_compliance.control.role_with_wildcards_used --share

SQL

This control uses a named query:

role_with_wildcards_used

Tags