(no title)
Jakob | 1 year ago
export DB_PASSWORD="op://app-prod/db/password"
Calling the script with `op run scriptname` replaces the secret path with the actual secret after authentication during runtime.
This way you can commit the file but people still can use their own passwords locally without saving them in plaintext.
thomascountz|1 year ago
Inspiration here: https://gist.github.com/bmhatfield/f613c10e360b4f27033761bbe...
Then you can use it like this:
export OPENAI_API_KEY=$(keychain-environment-variable OPENAI_API_KEY)
ocodo|1 year ago
mbrumlow|1 year ago
mynameisvlad|1 year ago
chasil|1 year ago