-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fail fast to deploy when oidc configuration for azure is not properly configured #972
Comments
Hey. First off, thanks for posting these because they really highlight some ways we could do better because this does seem frustrating.
Do you mind providing a repro program? I'm trying to determine if it could be enhanced via the pulumi engine or the azure provider. 🙏 |
Here is the code I used: https://github.com/TechWatching/azure-ready-repository-repro You can see the logs of the failed attemps in the github actions section |
What happened?
The pulumi up command took 8 min to fail when running in a Github Actions with the following error:
azure-native:resources:ResourceGroup rg-breizhCamp creating (451s) error: autorest/Client#Do: Preparing request failed: StatusCode=0 -- Original Error: clientCredentialsToken: received HTTP status 401 with response: {"error":"unauthorized_client","error_description":"AADSTS70021: No matching federated identity record found for presented assertion. Assertion Issuer: 'https://token.actions.githubusercontent.com/'.
Expected Behavior
It should have failed fast by detecting that the OIDC configuration was incorrect.
Steps to reproduce
Output of
pulumi about
CLI
Version 3.73.0
Go Version go1.20.5
Go Compiler gc
Plugins
NAME VERSION
azure-native 2.0.0-beta.1
nodejs unknown
Host
OS Microsoft Windows 11 Pro
Version 10.0.22621 Build 22621
Arch x86_64
This project is written in nodejs: executable='C:\Users\alexa\AppData\Local\pnpm\node.exe' version='v18.16.0'
Current Stack: TechWatching/demo/dev
Found no resources associated with dev
Found no pending operations associated with dev
Additional context
It took 8 min when running from github action.
When running locally it failed quickly.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: