canada-ca / accelerators_accelerateurs-gcp

[GCP] Tools and templates to accelerate GC service delivery. Outils et modèles pour accélérer la prestation de services du GC.
MIT License
10 stars 8 forks source link

Document "Project Creator" and "Billing Account Creator" roles removal from default organization level IAM permissions - move to identity principals and reduce to viewer for restricted users by default #69

Open fmichaelobrien opened 1 year ago

fmichaelobrien commented 1 year ago

effect:

https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/242 https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/290 https://github.com/canada-ca/accelerators_accelerateurs-gcp/issues/69

This details removal of the default configuration on new GCP cloud accounts Issue: by default all users have "Billing Account Creator" and "Project Creator" IAM roles via the organization - this needs to be reduced. Watch permissions that are part of these roles - like groups viewer at the org level under "Project Creator" that are currently inherited and need to be re-distributed. By default non-admin or elevated identity principals (users and service accounts) - should have these two roles assigned.

The default access for regular or restricted users should be viewer only

I recommend and will integrate the pre-req of cleaning out excess IAM permissions to the LZ (along the same lines of mitigating existing non-compliant services (like those in us-central for example) - except that these 2 IAM roles are in completely clean orgs

Screenshot 2023-02-27 at 10 16 21

Restricted user can create new projects

Screenshot 2023-02-27 at 10 19 35

Create the project

Screenshot 2023-02-27 at 10 20 05

Project created and available - this is a access level over reach - project creation abilities should be reduced to project viewer

Screenshot 2023-02-27 at 10 20 56

Remove org level access

Screenshot 2023-02-27 at 10 23 44

wait a couple min - no org level or billing access for new projects

Screenshot 2023-02-27 at 10 31 27

By default any restricted user that creates a project is the owner

Screenshot 2023-02-27 at 10 35 46

see no access yet

Screenshot 2023-02-27 at 10 39 25

A project created normally via a separate elevated admin user - has reduced permissions for the restricted user

Screenshot 2023-02-27 at 10 38 02

add editor

Screenshot 2023-02-27 at 10 38 55 Screenshot 2023-02-27 at 10 40 10

https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/242