-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Access Context Manager doesn't work with user ADC because terraform doesn't set the X-Goog-User-Project Header #6738
Comments
@upodroid to apply |
The account executing the commands has the org level permissions. Issues #6401 and #3620 are similar to mine but now we know that accesscontextmanager API allows ADCs to work if the quota project is defined so this needs to be implemented in the terraform provider. In the meanwhile, i'm using service account impersonation to carry on with my work. |
@upodroid I am glad you are not blocked and closing this issue then. If you want this feature to be implemented, would you please file an enhancement using below link and specify the reason why you think you need it? We could prioritize it into the backlog. Thank you |
I'll open an enhancement but just to clarify this is a bug that needs a fix. The API works with ADCs as I showed with curl above so terraform needs to implement the missing header.
Thanks |
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! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
It should have worked if the ADC has specified a quota project. https://cloud.google.com/sdk/gcloud/reference/auth/application-default/set-quota-project
Actual Behavior
403 error because terraform doesn't set the X-Goog-User-Project header.
Steps to Reproduce
Generate an ADC and set the quota project. Then try to apply the terraform config above.
terraform apply
Important Factoids
Access Context Manager API works with ADCs as shown below. We should be able to set a quota project for organization resources that need it.
https://qiita.com/nii_yan/items/3bcd2940e15486b4c6e2
The ADC has a quota project set as per the docs.
The text was updated successfully, but these errors were encountered: