TMAegisBeta
Thêm quy tắc cho openshift

Red Hat OpenShift

TMA-OPENSHIFT-5.1.3

Minimize wildcard use in Roles and ClusterRoles

Trung bìnhCấp 1Xem xét thủ côngopenshift

Mô tả

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. The benchmark marks this recommendation Manual.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

Run the command below to describe each cluster role and inspect it for wildcard usage: oc describe clusterrole Run the command below to describe each role and inspect it for wildcard usage: oc describe role -A

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Where possible replace any use of wildcards in clusterroles and roles with specific objects or actions.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
openshiftpoliciesrbac
Tham chiếu
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.1.3 Minimize wildcard use in Roles and ClusterRoles