News for hackers. Stuff that matters.
Re:Accident Forgiveness by perchlorate on Friday August 23, 2024 @06:30PM (#41333641)
You likely already know that, but to anyone else interested: a good way to prevent these kinds of situations is to run 'nosey parker' on your git repo before pushing it to a remote. It will dig through your code and configs, looking at files and through all the git history, and highlight anything that looks like tokens, passwords, keys, etc. You can set it as a pre-commit hook to block the offending code from even being committed.

https://github.com/praetorian-inc/noseyparker

Re:Accident Forgiveness by Aeolun on Friday August 23, 2024 @07:46PM (#41334151)
Github has a similar feature that’s free for public repositories IIRC.
Re:Accident Forgiveness by Tiberium on Saturday August 24, 2024 @03:26AM (#41336311)
https://github.com/trufflesecurity/trufflehog is a similar tool but checks for far more secrets, so I think it'd be a better choice.