Skip to content
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

Project creation #7801

Closed
antoinecastex opened this issue Nov 13, 2020 · 4 comments
Closed

Project creation #7801

antoinecastex opened this issue Nov 13, 2020 · 4 comments

Comments

@antoinecastex
Copy link

After create a project with TF by using a specific service account

The SA inherit the OWNER role on this project

That's not so beautiful

Do you recommend to add another step in TF which will remove the SA from OWNER IAM ?

@upodroid
Copy link
Contributor

Hi

Please use the issue template.

That behaviour is not specific to terraform. Google grants Owner role to the identity that creates a project.

I don't see why you would want to remove that. The google_project resource executes https://cloud.google.com/billing/docs/how-to/modify-project#permissions_required_for_this_task_3 as part of setting the billing account on a project which you can't do without permissions on the project.

@antoinecastex
Copy link
Author

You right this is not specific to Terraform

I'm just saying to you think it's acceptable to let the SA Owner, or do you recommend to remove it at the end of the operation ? :)

@upodroid
Copy link
Contributor

It is acceptable because the identity is used for other operations in the project.

@ghost
Copy link

ghost commented Dec 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants