Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
jc00ke
3 years agoNew Contributor
Secret reference syntax usable by direnv?
I see on docs/cli/secrets-environment-variables that I can op run -- myapp start but what if I wanted to load secret values via direnv? I don't see anything in the direnv-stdlib and was wondering i...
Former Member
3 years agoHey both!
Nice workaround, @dnsstaiger! Indeed, that should be the closest we can get right now to an integration with direnv.
We actually have something in the oven that should help with this, so stay tuned for the future releases!
In the meantime, I think the workaround above is a pretty good one. If you're not comfortable with op read
-ing multiple times in your .envrc
, there is another way to achieve this, using op run
, as I described here: https://1password.community/discussion/128381/populate-environment-variable-for-active-shell-session#latest
Let me know if this help, jc00ke! We're looking forward to hearing from you!
Best,
Horia