3 ms·
This is about formalizing required secrets for dev. Many repos have a ".env.sample", which is better than nothing - you copy it to .env and fill in the blanks.
by awestroke 1y ago
This is about formalizing required secrets for dev.
Many repos have a ".env.sample", which is better than nothing - you copy it to .env and fill in the blanks.
If this is done automatically, even better.
If the automatic .env setup also loads secrets from your password manager (with prompting), even better.
- judofyr 1y agoWith direnv you can also run commands directly in the .envrc: export OPENAPI_API_KEY=$(op read "op://api-prod/openai/api-key") Every time you cd into the directory it will execute the command. Isn’t this even better than copying the secret into a local file?
- conception 1y ago1password actually has environments now so you can just load it directly.