News for hackers. Stuff that matters.
Re:Ask HN: How do you share and sync .env files and secrets ... by tomknig on Sunday September 08, 2024 @02:40PM (#41482194)
Also using 1Password and I think it’s great. If possible, I would suggest to avoid plaintext secrets in files though. Instead, it is possible to store references to secrets in a dotenv file (example: .env.development): DATABASE_URL=op://development/database/url

and use op run to inject the secrets into a subprocess instead of storing them in a file: op run --env-file="./.env.development" -- cargo run

Re:Ask HN: How do you share and sync .env files and secrets ... by martijnarts on Thursday September 12, 2024 @03:08PM (#41524382)
I love that, that's much better! Thanks!