Re:Tell HN: Github has dozens of public s3 passwords
by relix on Wednesday August 04, 2010 @08:46AM
(#1574338)
It's something that almost happened to me too. A git repository for a project that at first, in the prototype-stage, had credentials hard-coded, but inevitably moved on to be config-file-driven.
I concocted the following command to change all mentions of a specific word to another word, in a git repository:
git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/originalpassword/newpassword/g' {} \;"
Use this to check if there are any mentions of some word, e.g. your password, in the repository:
I concocted the following command to change all mentions of a specific word to another word, in a git repository:
Use this to check if there are any mentions of some word, e.g. your password, in the repository: