Skip to content
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

Invalid audience for Key Vault secret operations when using MSI #2432

Closed
Tracked by #3151
thomas11 opened this issue May 4, 2023 · 3 comments · Fixed by #3664
Closed
Tracked by #3151

Invalid audience for Key Vault secret operations when using MSI #2432

thomas11 opened this issue May 4, 2023 · 3 comments · Fixed by #3664
Assignees
Labels
area/auth customer/feedback Feedback from customers kind/bug Some behavior is incorrect or out of spec kv keyvault needs-azidentity resolution/fixed This issue was fixed
Milestone

Comments

@thomas11
Copy link
Contributor

thomas11 commented May 4, 2023

error: keyvault.BaseClient#DeleteSecret: Failure responding to request: StatusCode=401 -- Original Error: autorest/azure: Service returned an error. Status=401 Code="Unauthorized" Message="AKV10022: Invalid audience. Expected https://vault.azure.net, found: https://management.azure.com/."

When using Managed Identity (ARM_USE_MSI) with the Pulumi Automation API. See #2374 for the original report. That issue is about the same error but using az CLI authentication, which was fixed.

@thomas11 thomas11 added kind/bug Some behavior is incorrect or out of spec customer/feedback Feedback from customers labels May 4, 2023
@mnlumi mnlumi added the kv keyvault label Jun 22, 2023
@brucetan-displayr
Copy link

Having the same error, woudl be good if this is fixed

@thomas11
Copy link
Contributor Author

I took a more in-depth look at this and unfortunately, it's due to a shortcoming in a dependency that we use that cannot be upgraded quickly. Related to #1464. We will try to schedule this workstream soon.

@pulumi-bot
Copy link
Contributor

This issue has been addressed in PR #3664 and shipped in release v2.70.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth customer/feedback Feedback from customers kind/bug Some behavior is incorrect or out of spec kv keyvault needs-azidentity resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants