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

Add support for native vault/kubernetes auth #62

Closed
sidewinder12s opened this issue Feb 28, 2018 · 1 comment
Closed

Add support for native vault/kubernetes auth #62

sidewinder12s opened this issue Feb 28, 2018 · 1 comment

Comments

@sidewinder12s
Copy link

It'd be create if this sidecar could automatically login with the native kubernetes support added to Vault by providing a role_name and pulling the JWT token from a service account.

https://www.vaultproject.io/api/auth/kubernetes/index.html#login

@Zandrael
Copy link

Zandrael commented Mar 24, 2018

hey,

this feature would be great.
first i had started with kubernetes-vault to get an vault-token-file.
in the meantime, i had switched over to the vault auth backend 'kubernetes'.

It is much easier for me to use k8s-service accounts (jwt of them) for vault-authentification. the jwt, which is needed for this method, is being mounted automaticly bye k8s, so, the path is always the same.

some minutes ago, i had implemented this bye using bash:
( since i think, that the steps generally could be the same in golang, i'm attaching my dirt script. Possibly it could save some time)

Sadly im not very into golang yet. otherwise i would make an pull request for this feature, which is highly needed. If ur app could do the kubernetes-authentification, i could reduce the count of init-containers for each deployment.
docker-entrypoint.zip

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

No branches or pull requests

2 participants