-
Notifications
You must be signed in to change notification settings - Fork 9.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
Azure backend with OIDC auth seems broken in version 1.11.0 #36595
Comments
We also encoutered this error with the upgrade. |
Interesting, in our current setup we only grant |
Semi-related, would be interesting to see if this issue is resolved by the mentioned PR #28423 |
I seem to have hit this as well. I couldn't for the life of me figure out what I had changed until I noticed I had a new version of TF. If I revert back to 1.10.5 everything works as before. |
Exact same error here, rolling back to 1.10 has worked for me too. |
Same issue here. For some reason the azurerm backend now requires an additional permission to work, |
@magodo It looks like an extra read has been introduced as part of the backend updates. Previously the minimum permissions required were In the short term we are pinning to 1.10.5 where we can. |
@magodo Looks like we may be missing a return here? Looks like it is trying to query the storage account meta data here:
I'm guessing it only needs that Update: I now see the comment on the PR: This appears to be the root cause problem. Hopefully there is a way to derive the URI without needing to query the end point? PR: #36258 |
Sorry * for the breaking change.. I've made a fix in #36623, and tested it as much as possible to ensure all the cases are covered (see the PR description). @audunsolemdal About your specific case, you'll probably have to remove |
Terraform Version
Terraform Configuration Files
providers.tf
env vars set in my github actions workflow:
Debug Output
Expected Behavior
OIDC authentication towards azurerm backend should work without breaking changes
Actual Behavior
Seems that this PR broke OIDC auth towards azurerm backends(?) and the release notes do not mention breaking changes.
#36258
It is not immediately obvious how to fix this apart from downgrading to version 1.10.x
Steps to Reproduce
terraform init
Additional Context
No response
References
No response
Generative AI / LLM assisted development?
No response
The text was updated successfully, but these errors were encountered: