Skip to content

Commit

Permalink
Add new org policies to FAST (#2215)
Browse files Browse the repository at this point in the history
* Add new org policies to FAST

* Fix tests
  • Loading branch information
juliocc authored Apr 15, 2024
1 parent e919bb6 commit a74a106
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 deletions fast/stages/0-bootstrap/data/org-policies/iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ iam.disableServiceAccountKeyCreation:
iam.disableServiceAccountKeyUpload:
rules:
- enforce: true

iam.serviceAccountKeyExposureResponse:
rules:
- allow:
values:
- DISABLE_KEY
6 changes: 6 additions & 0 deletions fast/stages/0-bootstrap/data/org-policies/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ run.allowedIngress:
- allow:
values:
- is:internal-and-cloud-load-balancing

# run.allowedVPCEgress:
# rules:
# - allow:
Expand All @@ -32,3 +33,8 @@ run.allowedIngress:
# cloudfunctions.requireVPCConnector:
# rules:
# - enforce: true

# constraints/cloudfunctions.restrictAllowedGenerations:
# - allow:
# values:
# - is:2ndGen
5 changes: 5 additions & 0 deletions fast/stages/0-bootstrap/data/org-policies/storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ storage.uniformBucketLevelAccess:
storage.publicAccessPrevention:
rules:
- enforce: true


storage.secureHttpTransport:
rules:
- enforce: true
4 changes: 2 additions & 2 deletions tests/fast/stages/s0_bootstrap/checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ counts:
google_essential_contacts_contact: 3
google_logging_organization_sink: 3
google_logging_project_bucket_config: 3
google_org_policy_policy: 20
google_org_policy_policy: 22
google_organization_iam_binding: 27
google_organization_iam_custom_role: 7
google_organization_iam_member: 35
Expand All @@ -381,4 +381,4 @@ counts:
google_tags_tag_key: 1
google_tags_tag_value: 1
modules: 17
resources: 196
resources: 198
4 changes: 2 additions & 2 deletions tests/fast/stages/s0_bootstrap/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ counts:
google_essential_contacts_contact: 3
google_logging_organization_sink: 3
google_logging_project_bucket_config: 3
google_org_policy_policy: 20
google_org_policy_policy: 22
google_organization_iam_binding: 27
google_organization_iam_custom_role: 7
google_organization_iam_member: 22
Expand All @@ -61,7 +61,7 @@ counts:
google_tags_tag_value: 1
local_file: 7
modules: 16
resources: 187
resources: 189

outputs:
custom_roles:
Expand Down

0 comments on commit a74a106

Please sign in to comment.