Gitleaks
Notes
Find secrets with Gitleaks 🔑
Gitleaks v8.0.0 introduces some breaking changes and feature removals. My vision for gitleaks is for the project to follow the unix philosophy -- do one thing and one thing well. That one thing is detecting secrets efficiently.
Sorry if this causes any inconveniences. You can always fork older versions of Gitleaks.
What's changed
- Swapped
go-gitfor shelling outgit log -pandgit diffcommands when scanning/protecting git repos- See comparison metrics/chart 🌎 🍃
- Memory Usage from running gitleaks on the gitleaks repo: 54MB -> 8.5MB
- Simplified call stack
- Faster scans
- ghrc support
- Added
detect,protect,help, andversioncommands to reduce number of options - Support for multiline regular expressions in rules
- Added
StartLine,EndLine,StartColumn,EndColumnto report findings - Added
RuleIDto report findings - CLI powered by
spf13/cobra - Removed
repo-configsupport- This can be scripted
- Default config path added
(--source/-s)/.gitleaks.toml, see usage for more details - Removed cloning support
- I do not want gitleaks to be responsible for cloning repositories
- Removed
files at commitsupport- This can be accomplished by
git checkout
- This can be accomplished by
- Removed all
commitoptions- All commit options can be supported by the
--log-optsargument.--log-optsaccepts anygit logoptions.
- All commit options can be supported by the
- All log messages sent to stderr
- Finding output (enabled with
-v/--verbose) sent to stdout.- This can be paired with
jqto do additional filtering
- This can be paired with
- Added 60+ rules to best maintain parity with https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning#about-secret-scanning-for-private-repositories
- Updated Config
If you find any bugs or issues related to this release please open an issue or PR with the tag v8.
If Gitleaks has brought you commercial success please consider supporting me via Github sponsors, like Typeform. Typeform recently donated $1000 and wrote a very nice blog post about preventing secret leaks at scale.