Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
smoyer
· 8y ago · 0 comments
Agreed ... use a pre-commit hook to scan your repository for high-entropy strings before they are forever enshrined in your history (
https://github.com/dxa4481/truffleHog
).
Comments
[–]
tachyoff
8y ago
To be fair, though, history can be rewritten, albeit sometimes with some difficulty.
[–]
ameliaquining
8y ago
If a secret has
ever
been in Git then you probably can't know where it's been copied to and should treat it as likely to have been leaked.
[–]
djglass
8y ago
Great idea! Thanks for linking to that tool.