pulumi: Error in authentication in Azure Pipeline since CLI 3.104.0
What happened?
Hi,
Since the CLI version 3.104.0 (3.103.1 works fine), we are unbale to run into our azure pipeline.
Are there any breaking changes that have occured or some required extra steps necessary to make this work?
Example
Cli auth problem
Output of pulumi about
Additional context
No response
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).
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 31
Commits related to this issue
- upgrade gocloud.dev to 0.37 There was a new gocloud.dev release. Upgrade to that to see if it helps resolve any authentication issues as seen in https://github.com/pulumi/pulumi/issues/15786. — committed to pulumi/pulumi by tgummerer 3 years ago
- upgrade gocloud.dev to 0.37 There was a new gocloud.dev release. Upgrade to that to see if it helps resolve any authentication issues as seen in https://github.com/pulumi/pulumi/issues/15786. — committed to pulumi/pulumi by tgummerer 3 years ago
- upgrade gocloud.dev to 0.37 There was a new gocloud.dev release. Upgrade to that to see if it helps resolve any authentication issues as seen in https://github.com/pulumi/pulumi/issues/15786. — committed to pulumi/pulumi by tgummerer 3 years ago
- Upgrade gocloud.dev to 0.37 (#15924) Upgrade gocloud.dev to 0.37. Given what I found in https://github.com/pulumi/pulumi/issues/15786#issuecomment-2051667094, I don't believe this will help with t... — committed to pulumi/pulumi by tgummerer 3 years ago
Perfect, thanks for your time on this. Very appreciated.
From: Thomas Gummerer @.> Sent: Wednesday, April 17, 2024 12:34:37 PM To: pulumi/pulumi @.> Cc: Phil1972 @.>; Mention @.> Subject: Re: [pulumi/pulumi] Error in authentication in Azure Pipeline since CLI 3.104.0 (Issue #15786)
It looks like upstream won’t change the behaviour back there (it’s awkward for us, but from a library perspective I think the new behaviour does make sense). Since we haven’t gotten more complaints about this not working, and we understand what happened here I’m going to close this issue out.
— Reply to this email directly, view it on GitHubhttps://github.com/pulumi/pulumi/issues/15786#issuecomment-2061723986, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJT6TC6H33HJRKUR6ISBMG3Y52QB3AVCNFSM6AAAAABFJMXFYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRG4ZDGOJYGY. You are receiving this because you were mentioned.Message ID: @.***>
I’m glad it’s working now, thank you for letting me know, and thanks for your patience while we were trying to figure this out.
FWIW I opened an upstream issue in https://github.com/google/go-cloud/issues/3414 as well.
From a quick look unfortunately it doesn’t look like there’s much in terms of logging inside of the gocloud.dev library. You can turn on logging in the pulumi CLi with
-v 10or-v 11(note that the latter will also log secrets, so be careful with that). With--logtostderryou can send the log output to stderr, which might be the easiest for CI.3.103.1 used gocloud 0.27, while we’re at 0.36 now. I don’t think we want to go back anymore at this point, since there are a few issues that are fixed in the newer version, and we can’t stay with an older dependency forever. I do still really want to get to the bottom of what happens here though, and make sure that you can upgrade to newer versions of pulumi. Did you manage to check the permissions/add them?
Maybe? Honestly I’m grasping at straws a little bit with this problem, and I’m pretty stumped on what’s going on here. I’m trying to find out what’s special about your setup that makes it fail with the new version, since we have seen operations with
AZURE_CLIENT_IDandAZURE_CLIENT_SECRETset the way you do work just fine and have tests for that.One other thing I’m planning here is to upgrade
gocloud.devto 0.37 which is the latest version now, to see if that can help with your problem.@Phil1972 I have now managed to try this same setup as you have in an Azure Pipeline, however I’m still not having any luck in reproducing the issue. So one more question: What exactly is the account type of the account where you got the
AZURE_CLIENT_IDandAZURE_CLIENT_SECRETfrom?