-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Identity Platform requires undefined permissions #19111
Comments
From the debug output it's failing on debug output:
|
When i run terraform as Owner on the project, the same rest call succeeds, so it seems the API docs are inaccurate when they say that
|
It is not possible to reproduce for me since I'm using a user with all privileges and after a There isn't information in terraform registry or API documentation about which are the required permissions and the shared error messages just say Maybe a more descriptive error message showing which are the required permissions could help users to configure their IAM roles |
Hi, the API docs here show that the required permission for intiAuth is I've also checked with IAM Policy Troubleshooter, and it confirms the account has firebaseauth.configs.create on the project resource. I wasn't quite sure what resource to check the permission against. The permissions you linked to are not referring to the IAM permissions required to call the Identity Platform API, rather they are domain objects within the API, that is permissions that identity platform users will have, not IAM users. |
Did you include enabling the API? resource "google_project_service" "identitytoolkit" {
project = var.project_id
service = "identitytoolkit.googleapis.com"
} |
Yes I have that block to enable the API. |
@dantheperson
|
I had the same issue. Then I gave the service account role "editor" & that fixed it. |
Hi I think the only other relevant TF config is the enabling of the required APIs.
I would rather not give everyone Editor access (or access to a service account that has Editor access) |
@dantheperson Does the Google Group only have If this still doesn't work, I'm afraid you'll need to go through Firebase support and supply your project identifiers for a detailed look. |
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.4
on linux_amd64
Affected Resource(s)
google_identity_platform_config
Terraform Configuration
Debug Output
No response
Expected Behavior
terraform apply should work
Actual Behavior
Generic permissions error
Steps to reproduce
terraform apply
Important Factoids
The account has the following roles
Which permissions are needed? Surely a role with these two should be sufficient?
References
No response
b/359930084
The text was updated successfully, but these errors were encountered: