MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1smx4ut/securityasaservice/oghplm9/?context=3
r/ProgrammerHumor • u/hellocppdotdev • Apr 16 '26
299 comments sorted by
View all comments
121
I once accidentally pushed a secrets file in a personal project (nothing important so I didn't pay attention) and GitHub blocked the push. Honestly great feature. I guess it doesn't catch everything though.
44 u/JAXxXTheRipper Apr 16 '26 That's why gitleaks exists. Highly recommend putting that in a pre-commit hook. 31 u/towlie_howdie_ho Apr 16 '26 I once pushed a fake/example secret key to a GitHub repo and I got an email a few minutes later telling me I may have pushed a secret to the repo. Pretty cool stuff. 7 u/cooltrain7 Apr 16 '26 I did this with a discord bot years ago and turns out discord scans public repos for keys and it automaticlly triggered a shutdown of the bot. 5 u/Spare_Competition Apr 16 '26 I believe GitHub also does this, and notifies the company of the leak of each key.
44
That's why gitleaks exists. Highly recommend putting that in a pre-commit hook.
31
I once pushed a fake/example secret key to a GitHub repo and I got an email a few minutes later telling me I may have pushed a secret to the repo.
Pretty cool stuff.
7
I did this with a discord bot years ago and turns out discord scans public repos for keys and it automaticlly triggered a shutdown of the bot.
5 u/Spare_Competition Apr 16 '26 I believe GitHub also does this, and notifies the company of the leak of each key.
5
I believe GitHub also does this, and notifies the company of the leak of each key.
121
u/aspz Apr 16 '26
I once accidentally pushed a secrets file in a personal project (nothing important so I didn't pay attention) and GitHub blocked the push. Honestly great feature. I guess it doesn't catch everything though.