Skip to content

Commit

Permalink
Manage billing.creator role authoritatively in FAST bootstrap.
Browse files Browse the repository at this point in the history
By default new orgs grant billing.creator and
resourcemanager.projectCreator to the whole domain[1]. This PR makes
FAST remove the former binding during the bootstrap (the latter is
already managed by FAST).

Fixes #1220

[1] https://cloud.google.com/resource-manager/docs/default-access-control
  • Loading branch information
juliocc committed Mar 7, 2023
1 parent cd8f089 commit 38808b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast/stages/0-bootstrap/organization.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,6 +20,7 @@ locals {
# organization authoritative IAM bindings, in an easy to edit format before
# they are combined with var.iam a bit further in locals
_iam = {
"roles/billing.creator" = []
"roles/browser" = [
"domain:${var.organization.domain}"
]
Expand Down

0 comments on commit 38808b3

Please sign in to comment.