News for hackers. Stuff that matters.

Ask HN: How do you archive secrets for your side projects?

So, I've got a bunch of old side projects lying around, for which the majority have their code hosted on Github.

Generally, I get excited about new shiny things, and move on, and pretend to myself that one day I'll come back to whatever project I'm abandoning 'just for a few days' while I check out something else.

My side projects folder is now overflowing, but I can't clean it out easily because of all the pesky .env files which aren't checked into git, so will be lost.

How are you folks managing this?

( 8 comments | 6 points | on HN )
Re:Ask HN: How do you archive secrets for your side projects? by dantelex on Wednesday January 26, 2022 @05:56AM (#30083998)
Over the year's i've joined and lead dev teams and one of the main issues we've always had is how we manage our secrets and share them. Personally as well while building my side projects in run into these issues.

I started building https://onboardbase.com late last year for this specific reason. Actively building and improving it and i hope it helps as well.

Re:Ask HN: How do you archive secrets for your side projects? by botanicalfriend on Wednesday January 26, 2022 @01:31PM (#30089647)
You can encrypt them using something like https://github.com/FiloSottile/age and then just store them in git. When you need to access them, just run "age -d .."

If you're paranoid you can use GPG + a smart card like a yubikey, but its all about convenience trade off..

Re:Ask HN: How do you archive secrets for your side projects? by swah on Wednesday January 26, 2022 @09:36AM (#30085881)
Sincerly I just check them in Git...

If its really sensitive, goes in Bitwarden.

Re:Ask HN: How do you archive secrets for your side projects? by thinkingemote on Wednesday January 26, 2022 @05:29AM (#30083818)
If I want to delete a project and not work on it why would I want to keep the secrets that I wouldn't use?

Keep, document and archive a .env.example file for others, I guess?

Re:Ask HN: How do you archive secrets for your side projects? by d1sxeyes on Wednesday January 26, 2022 @05:41AM (#30083889)
Well, in short because I want to keep the option of coming back to it open.
Re:Ask HN: How do you archive secrets for your side projects? by jamessb on Wednesday January 26, 2022 @05:23AM (#30083781)
Copy the env files into your password manager?
Re:Ask HN: How do you archive secrets for your side projects? by d3nj4l on Wednesday January 26, 2022 @05:16AM (#30083743)
I keep a secure note in my password manager.
Re:Ask HN: How do you archive secrets for your side projects? by notRobot on Wednesday January 26, 2022 @05:11AM (#30083709)
Check it into a second, private repository?