News for hackers. Stuff that matters.
Re:Show HN: A tool to seed your dev database with real data by bottled_poe on Thursday April 28, 2022 @01:13AM (#31188979)
And should be easily caught in code reviews and CI jobs?
Re:Show HN: A tool to seed your dev database with real data by viraptor on Thursday April 28, 2022 @02:01AM (#31189203)
Sure, and it will be caught by CI (if you set it up (properly)) and code review (if it happens (and nobody misses it (and no commits are pushed as a cleanup after (...)))).

So basically if everything works perfectly, you won't have that problem. We know processes don't work perfectly, so it's better to avoid that issue in the first place by never leaving the literal tokens in the config.

Also, even if your CI catches the problem, it's too late - your credentials are now in the repo and in the CI system and likely in your log collector attached to the CI. You'll need to roll them. Same with reviews.

Re:Show HN: A tool to seed your dev database with real data by dotancohen on Thursday April 28, 2022 @02:52AM (#31189475)
Which occur after the code is in git and pushed.
Re:Show HN: A tool to seed your dev database with real data by bottled_poe on Thursday April 28, 2022 @10:07AM (#31192618)
So change the secrets and/or find professional developers? Sorry, not sorry, it’s an amateur mistake, not acceptable in a professional environment. Why would an amateur possess the secrets in the first place?
Re:Show HN: A tool to seed your dev database with real data by dotancohen on Thursday April 28, 2022 @11:15AM (#31193502)
I prefer a security model slightly more robust than "None of the professionals working on this project will ever make a mistake".
Re:Show HN: A tool to seed your dev database with real data by mountainriver on Thursday April 28, 2022 @03:00PM (#31196754)
You too?
Re:Show HN: A tool to seed your dev database with real data by d4mi3n on Thursday April 28, 2022 @02:08AM (#31189229)
Ever try cleaning Git commit history? How about having GitHub clear a repository cache containing a secret?

You’re not wrong, but this is a whole class of issue that can be avoided for trivial levels of effort.