Stop Committing Your Secrets - Git Hooks To The Rescue!
summary
Hard-coded credentials show up in version control all the time: 3 out of every 1,000 commits contain secrets and over 6 million secrets appeared in public GitHub data last year. Git provides automation points—local pre-commit hooks and server-side pre-receive hook—that block commits. Existing tools include AWS Labs git-secrets, trufflehog (pre-commit framework), and GGShield (calls a platform API, covers ~350 patterns, has rate limits). Demos show hooks reliably refuse commits that match known patterns but require installation and maintenance.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 1:13Real-world secret leaks examples
- 3:43Why developers hardcode secrets
- 6:10Git as universal developer tool
- 7:13Git’s limitations for security
- 10:23Git hooks as automation solution
- 13:53Customizing git hooks for secrets
- 16:16Tools for secret detection
- 20:31Live demo of secret blocking
- 21:11Key takeaways and conclusion
