Created
August 19, 2020 12:14
-
-
Save janmasarik/97da3fe11f53314aa292ed48bfe1a32b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: constraints.gatekeeper.sh/v1alpha1 | |
kind: GCPIAMAllowedBindingsConstraintV3 | |
metadata: | |
name: iam-restrict-editor-on-default-sa | |
annotations: | |
description: Default service accounts should not have editor privileges | |
spec: | |
severity: high | |
match: | |
target: | |
- "organizations/**" | |
parameters: | |
mode: denylist | |
role: roles/editor | |
members: | |
- serviceAccount:*-compute@developer.gserviceaccount.com | |
- serviceAccount:*@appspot.gserviceaccount.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment