Related topic: "Production AWS keys on GitHub" ~ 3 years ago https://news.ycombinator.com/item?id=7411927 By just looking quickly, it seems that you can still find many recent live keys...
GitHub commit search: “remove password”
11–20 of 266 posts
Re: GitHub commit search: “remove password”
#12Re: GitHub commit search: “remove password”
#13It gets a little scary when it veers from professional security to individual personal privacy https://github.com/search?p=2&q=smtp.gmail.com+pass&ref=sear...
Re: GitHub commit search: “remove password”
#14Re: GitHub commit search: “remove password”
#15Git-crypt is your friend!
Re: GitHub commit search: “remove password”
#16Re: GitHub commit search: “remove password”
#17Re: GitHub commit search: “remove password”
#18Right after my "remove secrets" post: https://news.ycombinator.com/item?id=13650614 There are just so many of those it's crazy: remove .env YOURFAVORITEAPI_SECRETKEY YOURFAVORITEAPI_PASSWORD Also replace "remove" with delete/rm/replace/etc. And replace "YOURFAVORITEAPI" with CircleCI, Travis, Mailchimp, Trello, Stripe, etc, etc. Also, companies I contacted consider it the customer fault and basically don't care.
However it should be pretty easy for them to set up a script to search github for this kind of stuff and automatically invalidate keys
Re: GitHub commit search: “remove password”
#19Right after my "remove secrets" post: https://news.ycombinator.com/item?id=13650614 There are just so many of those it's crazy: remove .env YOURFAVORITEAPI_SECRETKEY YOURFAVORITEAPI_PASSWORD Also replace "remove" with delete/rm/replace/etc. And replace "YOURFAVORITEAPI" with CircleCI, Travis, Mailchimp, Trello, Stripe, etc, etc. Also, companies I contacted consider it the customer fault and basically don't care.
It is customer fault. However it should be pretty easy for them to set up a script to search github for this kind of stuff and automatically invalidate keys
2) Search if found keys are actual valid keys
3) Expire key, send explanatory email, issue new key
(I think that's what AWS does)
Re: GitHub commit search: “remove password”
#20Git-crypt is your friend!