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

Support: User-assigned Identity (MSI) login for Azure #8082

Closed
Robert-Stam opened this issue Jan 2, 2020 · 3 comments
Closed

Support: User-assigned Identity (MSI) login for Azure #8082

Robert-Stam opened this issue Jan 2, 2020 · 3 comments

Comments

@Robert-Stam
Copy link

Feature I would like
Currently for Azure (login) MSI is supported.
X-Ref: https://www.vaultproject.io/docs/auth/azure.html

However this supports system-assigned identities are only, it would be great if user-assigned identities are supported as well.

Details
We are running kubernetes in Azure using the AKS service, where Managed Identity (which is currently in-preview) switched on, see https://docs.microsoft.com/en-us/azure/aks/use-managed-identity for details. For the vmss (Virtual machine scale set) it creates user-assigned identities.

Inside the pod, where I want to login to Vault I am able to get this identity (including the other information needed for login), however this result in the following error:
PUT: [url]/v1/auth/azure/login
Code: 500. Errors: * vmss principal id is empty

Instead of checking the vmss.Identity.PrincipalID only, it would be great if the vmss.Identity.IdentityIds could be used as well.

Please let me know if more details are needed, I am happy to provide them.

@infa-bsurber
Copy link

Is there an ETA on this?

@kalafut
Copy link
Contributor

kalafut commented Apr 9, 2020

Fixed in hashicorp/vault-plugin-auth-azure#33

@kalafut kalafut closed this as completed Apr 9, 2020
@Robert-Stam
Copy link
Author

Robert-Stam commented Apr 9, 2020

Thanks for picking up!
Note that last week the feature on AKS went into GA, so the pieces fits perfectly together.

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

4 participants