Skip to content

Commit

Permalink
back with constraint/iam.automaticIamGrantsForDefaultServiceAccounts …
Browse files Browse the repository at this point in the history
…to org step
  • Loading branch information
mariammartins committed Sep 26, 2024
1 parent 688c755 commit b8885e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions 0-bootstrap/org_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ locals {
policy_for = var.parent_folder != "" ? "folder" : "organization"

boolean_type_organization_policies = toset([
"compute.skipDefaultNetworkCreation",
"iam.automaticIamGrantsForDefaultServiceAccounts"
"compute.skipDefaultNetworkCreation"
])
}

Expand Down
1 change: 1 addition & 0 deletions 1-org/envs/shared/org_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ locals {
"sql.restrictPublicIp",
"sql.restrictAuthorizedNetworks",
"iam.disableServiceAccountKeyCreation",
"iam.automaticIamGrantsForDefaultServiceAccounts",
"iam.disableServiceAccountKeyUpload",
"storage.uniformBucketLevelAccess",
"storage.publicAccessPrevention"
Expand Down
1 change: 0 additions & 1 deletion test/integration/bootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ func TestBootstrap(t *testing.T) {
// boolean organization policies
for _, booleanConstraint := range []string{
"constraints/compute.skipDefaultNetworkCreation",
"constraints/iam.automaticIamGrantsForDefaultServiceAccounts",
} {
orgPolicy := gcloud.Runf(t, "resource-manager org-policies describe %s --folder %s", booleanConstraint, parentFolder)
assert.True(orgPolicy.Get("booleanPolicy.enforced").Bool(), fmt.Sprintf("org policy %s should be enforced", booleanConstraint))
Expand Down
1 change: 1 addition & 0 deletions test/integration/org/org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func TestOrg(t *testing.T) {
"constraints/iam.disableServiceAccountKeyCreation",
"constraints/storage.uniformBucketLevelAccess",
"constraints/storage.publicAccessPrevention",
"constraints/iam.automaticIamGrantsForDefaultServiceAccounts",
} {
orgPolicy := gcloud.Runf(t, "resource-manager org-policies describe %s --folder %s", booleanConstraint, parentFolder)
assert.True(orgPolicy.Get("booleanPolicy.enforced").Bool(), fmt.Sprintf("org policy %s should be enforced", booleanConstraint))
Expand Down

0 comments on commit b8885e0

Please sign in to comment.