Skip to main content
jc00ke
March 22, 2022
Question

Secret reference syntax usable by direnv?

  • March 22, 2022
  • 12 replies
  • 2853 views

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 if anyone had a solution.

Thanks!


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

12 replies

jc00ke
jc00keAuthor
October 29, 2022

Hi @coreyti, thanks for that suggestion! I like it! I've settled on the op inject method and it's working out well. We don't add/change secrets often, so I'd rather incur the cost of reading from 1Password only once in a while. I appreciate your solution though! 👏👏👏

1Password Employee
November 11, 2022

Super happy to see our customers collaborating! Thanks!