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

Failed to authenticate using azure auth #28965

Closed
tonicmuroq opened this issue Nov 20, 2024 · 2 comments
Closed

Failed to authenticate using azure auth #28965

tonicmuroq opened this issue Nov 20, 2024 · 2 comments

Comments

@tonicmuroq
Copy link

tonicmuroq commented Nov 20, 2024

Our enterprise vault was upgraded from 1.16.10 to 1.18.1, then azure authentication was broken. The log says

invalid vm name "aks-agentpool-xxx-vmss_0"

then I checked the node names, they should be aks-agentpool-xxx-vmss000000, then I checked the result from azure metadata API, the field compute.name is aks-agentpool-xxx-vmss_0, but compute.osProfile.computerName is aks-agentpool-xxx-vmss000000, I'm not sure what happened here, maybe azure / vault changed the way to authenticate?

Tried to upgrade vault lib to the latest version, and didn't work.

I forked a repo and did tiny changes then everything works well, check tonicmuroq@587e961 , not sure if this is the correct way. How could I fix this issue gracefully?

@neodejack
Copy link

seems like the name validation regex is fixed in the underlying dependency vault-plugin-auth-azure v0.19.2: hashicorp/vault-plugin-auth-azure#172

@stevendpclark
Copy link
Contributor

Hi @tonicmuroq,

I believe that @neodejack is correct, the plugin version v0.19.2 was updated within Vault in #28848, so it should be out in the next minor release of Vault coming shortly.

With that I'll close out this issue, please feel free to re-open it if Vault 1.18.2 doesn't resolve the issue when it is released.

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

No branches or pull requests

3 participants