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

Usage with consul-template #21

Open
kakoni opened this issue Jun 18, 2018 · 1 comment
Open

Usage with consul-template #21

kakoni opened this issue Jun 18, 2018 · 1 comment
Labels

Comments

@kakoni
Copy link

kakoni commented Jun 18, 2018

Hi and thanks for the interesting tool.

Have I understood the use case correctly,

  1. I would use approle-login tool output vault-token into file
  2. Then use this token file together with consul-template to render secrets into templates?
@jsoriano
Copy link
Contributor

jsoriano commented Jul 1, 2018

Hi @kakoni,

Yes, you can use approle-login to login using the approle method and then use the obtained token with other tools as consul-template.

For some cases you can use pouch directly for everything, it runs as a daemon and it can login using the approle method (or use an existing token) and automatically renovate the token if needed. It can obtain secrets from vault and use them with templates to render configuration files. If secrets expire, 'pouch` also takes care of renovating them and update the files. It also allows to trigger notifications when files change, what can be used for example to restart services.

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

No branches or pull requests

2 participants