-
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
SetIamPolicy fails if there are leftover "deleted:" permissions in project #5153
Comments
This is due after a recent change to the IAM API which had introduced the 'delete:' prefix. We have been hit by this also. To make matters worse, the API change is being done in a phased rollout between December 9th and 13th so the new behaviour is intermittent in this period, so you cannot rely on doing a getIamPolicy call to check for delete entries reliably. |
See also #5151 |
@c3st7n have you seen anything published online about this? I couldn't find anything that mentioned this change, although the timing of when this started does line up with what you said. |
@griffinator76 yeah stumbled across this release note: https://cloud.google.com/iam/docs/release-notes Look at the entry for December 9th. |
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
Terraform Version
Terraform v0.12.17
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Permission is added to project. Speaking error message in case an error occurs.
Actual Behavior
Error message: 'googleapi: Error 400: Policy members must be of the form ":"., badRequest'
But I had the correct format entered, as shown above.
Upon investigation, I found some leftover permissions in the project for service accounts that were deleted. The "member" information for those read like: "deleted:serviceAccount:[email protected]"
After deleting the leftover permissions,
terraform apply
ran without any error.Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: