Skip to content

Conversation

starcraft66
Copy link

Description

This PR fixes a logic bug that made authenticating to Vault via the azure login method never actually work unless a JWT was pre-supplied because of a logic error. Additionally, more logic errors due to copy/paste typos were fixed and the azure authentication method was changed from ManagedIdentityCredential to DefaultAzureCredential (which includes ManagedIdentityCredential, but is more flexible as it also includes more authentication options which cover more use-cases), implications of this can be found here: https://learn.microsoft.com/en-gb/azure/developer/go/sdk/authentication/credential-chains#defaultazurecredential-overview

Relates OR Closes #0000

Checklist

  • Added CHANGELOG entry (only for user-facing changes)
  • Acceptance tests where run against all supported Vault Versions

Output from acceptance testing:

I did not run any acceptance tests as it is not clear how to run them or what the requirements are from this PR template, I just made sure the unit tests still pass and I can confirm that this PR is working fine as I have been using this branch in production for the last 6 months.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

@starcraft66 starcraft66 requested a review from a team as a code owner April 28, 2025 18:12
@starcraft66 starcraft66 requested a review from mladlow April 28, 2025 18:12
Copy link

hashicorp-cla-app bot commented Apr 28, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant