Skip to content

Commit b8885e0

Browse files
committed
back with constraint/iam.automaticIamGrantsForDefaultServiceAccounts to org step
1 parent 688c755 commit b8885e0

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

0-bootstrap/org_policy.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ locals {
2020
policy_for = var.parent_folder != "" ? "folder" : "organization"
2121

2222
boolean_type_organization_policies = toset([
23-
"compute.skipDefaultNetworkCreation",
24-
"iam.automaticIamGrantsForDefaultServiceAccounts"
23+
"compute.skipDefaultNetworkCreation"
2524
])
2625
}
2726

1-org/envs/shared/org_policy.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ locals {
3434
"sql.restrictPublicIp",
3535
"sql.restrictAuthorizedNetworks",
3636
"iam.disableServiceAccountKeyCreation",
37+
"iam.automaticIamGrantsForDefaultServiceAccounts",
3738
"iam.disableServiceAccountKeyUpload",
3839
"storage.uniformBucketLevelAccess",
3940
"storage.publicAccessPrevention"

test/integration/bootstrap/bootstrap_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ func TestBootstrap(t *testing.T) {
309309
// boolean organization policies
310310
for _, booleanConstraint := range []string{
311311
"constraints/compute.skipDefaultNetworkCreation",
312-
"constraints/iam.automaticIamGrantsForDefaultServiceAccounts",
313312
} {
314313
orgPolicy := gcloud.Runf(t, "resource-manager org-policies describe %s --folder %s", booleanConstraint, parentFolder)
315314
assert.True(orgPolicy.Get("booleanPolicy.enforced").Bool(), fmt.Sprintf("org policy %s should be enforced", booleanConstraint))

test/integration/org/org_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func TestOrg(t *testing.T) {
164164
"constraints/iam.disableServiceAccountKeyCreation",
165165
"constraints/storage.uniformBucketLevelAccess",
166166
"constraints/storage.publicAccessPrevention",
167+
"constraints/iam.automaticIamGrantsForDefaultServiceAccounts",
167168
} {
168169
orgPolicy := gcloud.Runf(t, "resource-manager org-policies describe %s --folder %s", booleanConstraint, parentFolder)
169170
assert.True(orgPolicy.Get("booleanPolicy.enforced").Bool(), fmt.Sprintf("org policy %s should be enforced", booleanConstraint))

0 commit comments

Comments
 (0)