Using fnox to inject Hashicorp Vault env vars with mise #142
Unanswered
KyleChamberlin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use mise to manage my env vars. We also use Hashicorp Vault to manage secrets. the setup we currently just use a handful of scripts to manage takes an environment (dev, qa, prod, etc) and then grabs all the vault secrets for the application for that env with the vault cli and then exports them as ENV vars.
I am trying to make this a bit less painful, more secure, and leverage tools rather than raw scripts.
I love using mise to manage env vars, and I already inject my team's vault URI and namespace into everyone's env vars.
I had previously tried cobbling together a solution using mise directly, and found it clumsy. now that I see fnox, I really want to use that. the issue I run into is that at my company the vault tokens are restricted to only a 2h ttl. so I end up having to re-authenticate multiple times per day, and I really liked when I was running with the mise integration I could cache the secrets for a full day so I could avoid re-authing especially when the secrets were unlikely to change on that time scale. (and I could just invalidate the cache when I needed to update them)
so I have a few questions rolled into one here.
Beta Was this translation helpful? Give feedback.
All reactions