News for hackers. Stuff that matters.
Re:Ask HN: How do you share and sync .env files and secrets ... by nickjj on Sunday September 08, 2024 @02:40PM (#41482196)
Around 100 lines of shell scripting and an encrypted S3 bucket that has a shared secrets .env file which is ignored from version control for each project.

IAM handles access control and the shell script makes it easy for folks to show, diff, download and upload secrets for a project.

When a secret gets changed it also sends a Slack notification so folks know to download the latest copy.

It costs practically nothing, is super easy to maintain and it keeps your app only needing to deal with environment variables.

Re:Ask HN: How do you share and sync .env files and secrets ... by tinyspacewizard on Sunday September 08, 2024 @03:22PM (#41482485)
You should put this online somewhere!
Re:Ask HN: How do you share and sync .env files and secrets ... by nickjj on Sunday September 08, 2024 @06:43PM (#41483873)
I'll see what I can do.

I do have a blog at https://nickjanetakis.com/blog where I post about a bunch of tech topics. If it gets posted it would get posted there.

Re:Ask HN: How do you share and sync .env files and secrets ... by jayeshparmar on Sunday September 08, 2024 @03:38PM (#41482587)
Can you share a gist