-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document and add to bootstrap.sh 6 super admin required roles required to prepare for terraform service account permissions #42
Comments
P1 assigned to fmichaelobrien |
I'll upload repro, docs and PR shortly |
procedure to document and code into bootstrap.sh with "apply roles to user account at org level y/n" dialog
|
also verify the validation |
port PBMM TF already has apply_roles in
in our case
|
BUG: Noticed that the role list has a 4 missing roles/ prefixes - the account under test would need to already have 3 of these roles set - which they would orgadmin, project creator, billing admin - but service token creator would miss a check I will put a PR in 59856bf#diff-87abc6dccd3053818bc94f025af8394366a2a0eca101a0de3133f67256664543R34 adjust for
|
testing
result
|
TL;DR; Shared billing accounts do not get shared IAM roles - they need to be set separately see (needs update for shared billing) Keep in mind that we need a workaround (see #47) for the fact that if the billing account is of type "shared" where it comes in under "No Organization, ID=0" then any service account created will not get inherited links from IAM set in Billing - these like Billing Account User - need to be set manually. Example
It may take a couple min to show in IAM Checking billing on the shared account expected on billing accounts belonging to this org - via IAM inheritance in billing |
before bootstrap.sh - pending PR to add it
|
The following roles will be added to the readme and set automatically in bootstrap.sh to avoid a possible terraform permissions failure if the 6 are not set during bootstrap.sh checking
(iam.serviceAccountTokenCreator roles/resourcemanager.folderAdmin roles/resourcemanager.organizationAdmin orgpolicy.policyAdmin resourcemanager.projectCreator billing.projectManager )
see
https://github.com/canada-ca/accelerators_accelerateurs-gcp/blob/main/deployment-templates/Terraform/guardrails/0-bootstrap/bootstrap.sh#L38
Script currently exits until all roles set - it should not be the responsibility of the client to add these - as the client may progress to terraform init - without the changes
The text was updated successfully, but these errors were encountered: