You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
Hello - We are trying to configure custom role deny permission, something like below on referring the following YAML file. But this deny list is not working as expected during Terraform validation. Does this "GCPIAMCustomRolePermissionsConstraintV1" currently supports only "allowlist" mode? Please advise. If yes, please recommend, how we can prevent/restrict some permissions which are added during custom role creation? Please advise with recommended policy. Also, let us know if we can use latest Policy to achieve this requirement (like latest apiVersion and kind).
apiVersion: constraints.gatekeeper.sh/v1alpha1
kind: GCPIAMCustomRolePermissionsConstraintV1
metadata:
name: denylist-custom-role-permissions
annotations:
description: Custom role must only have specific permissions
spec:
severity: high
parameters:
mode: denylist
title: "Restrict custom role creation with PAM permissions"
permissions:
- "privilegedaccessmanager.entitlements.create"
- "privilegedaccessmanager.entitlements.setIamPolicy"
- "privilegedaccessmanager.entitlements.update"
- "resourcemanager.projects.setIamPolicy"