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

feat: add azure msi auth method for vault #1319

Merged
merged 2 commits into from
May 11, 2021

Conversation

leosayous21
Copy link

@leosayous21 leosayous21 commented May 10, 2021

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
License Apache 2.0

What's in this PR?

Integration of the MSI AAD auth method for Azure. Currently there are only AWS and GCP available.
This method use the MSI ( Managed system identity ) of Azure.
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/aks/use-managed-identity.md
https://cloudblogs.microsoft.com/opensource/2018/04/10/scaling-tips-hashicorp-vault-azure-active-directory/
It's very useful for adding vault admission controller in a multi-cluster environnement with an external Vault. Using this method the admission controller is auto registered to the vault using the MSI.

Why?

Adding Azure auth method https://www.vaultproject.io/docs/auth/azure which is currently missing inside the vault admission controller.

Additional context

An image was built and is currently deployed in an AKS cluster from our staging environnement https://hub.docker.com/r/padoa/vault-secrets-webhook/tags?page=1&ordering=last_updated

Checklist

@CLAassistant
Copy link

CLAassistant commented May 10, 2021

CLA assistant check
All committers have signed the CLA.

@bonifaido bonifaido self-assigned this May 10, 2021
bonifaido
bonifaido previously approved these changes May 11, 2021
Copy link
Member

@bonifaido bonifaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @leosayous21 !

Could you please mention this auth method in the docs repo as well?

@bonifaido
Copy link
Member

Also there are some formatting errors.

@leosayous21
Copy link
Author

leosayous21 commented May 11, 2021

@bonifaido Here you can find the doc associated bank-vaults/bank-vaults.dev#78
I also fix the lint pb
for the "Mergeable / Mergeable" check i don't really understand what is missing in my description ?
Thank you

@leosayous21
Copy link
Author

leosayous21 commented May 11, 2021

Ok i thinkg the red "Mergeable" was due to the Checklist which was not totally completed, this is a fun feature !

@bonifaido
Copy link
Member

Yes it is a nice exercise (and sometimes it tricks me as well!) 🙂

@bonifaido bonifaido merged commit 6972f2f into bank-vaults:master May 11, 2021
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.

None yet

3 participants