Repository navigation
chore(deps): update pre-commit hook betterleaks/betterleaks to v1.7.4 - #41
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.6.1→v1.7.4Note: The
pre-commitmanager in Renovate is not supported by thepre-commitmaintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
betterleaks/betterleaks (betterleaks/betterleaks)
v1.7.4Compare Source
What's New
Added a
componentsfield in the[[rules]]table. The introduction ofcomponentsmoves Betterleaks toward a canonical rule model. Each rule in[[rules]]should describe how secrets get detected, which nearby values belong (via components) to it, how it is filtered, and how it is validated. Addingcomponentskeeps multipart relationships with the rule they belong to instead of introducing a separate configuration shape (or expanding[[rules.required]].A rule can reference other rules as required or optional
components. Thetop-level rule regex remains the reported secret and proximity anchor:
Components are required (as in
optional=false, not as in "each rule requires components) by default. Setoptional = trueto attach a component when present without making it gate the primary finding;optional = falseis equivalent to omitting the field.withinis optional and uses the same grammar as--match-context:5Lallows the primary match line plus up to four lines before and after,100Callows 100 characters on either side, and signs make a boundary directional (for example,-2L,+4C). Whenwithinis omitted, the component only needs to occur in the same fragment.You can reference
componentsin thevalidateExpr like:Components are keyed by the referenced component rule ID. Each has
secretandcapturesfields.Changelog
ed69eefcaptures was overloaded (#285)fabb0c2introduce components field, start deprecating rules.required (#282)e8c8ab9validator for algolia (#278)v1.7.3Compare Source
Changelog
82b306afix case where we arent filtering bc casing (#279)726c42anew logov1.7.2Compare Source
Changelog
b9de7fdfix filepath regression w/ fastwalk (#274)v1.7.1Compare Source
What's New
The last thing we want is for Betterleaks to be spamming providers with unnecessary API calls. Betterleaks caches requests per unique finding so hitting a rate limit shouldn't be a common occurrence. If you find you are getting rate limited, then we probably need to tweak the rule to fire less often.
This release gives users the ability to control requests per second and max requests.
Fixed
Fixed a potential panic on archive handling #266 and #270
Changelog
d56727eadd validation limits (#273)c197f8dbump min ver for config (#271)ca147d7fix(sources): don't crash the process on archive/decompress panics (#266)968138efix(sources): recover from panics on the archive extractor path (#270)42fbff2rm POST validators for aikido (#272)v1.7.0Compare Source
What's New
More better rules, faster!
More Rules
Full list of rules added:
We added 87 new rules, and increased rules with validation from 106 to 187 while dropping scan times.
Better Rules
Thanks to the excellent work by @joeleonjr, the default generic rule now filters out common public-by-design credentials. These credentials are explicitly intended for client-side use and generally lack access to sensitive data or privileged operations. Reporting them as generic secrets creates unnecessary triage work.
Some publishable credentials have distinctive formats and can be filtered directly. Supabase publishable keys, for example, match the recognizable
sb_publishable_[A-Za-z0-9_-]{31}format.Other credentials do not have a unique shape. An hCaptcha site key looks like an ordinary UUID, so filtering every matching UUID would hide unrelated secrets. Betterleaks therefore requires both the expected format and nearby provider context:
This removes a known hCaptcha site key from generic results without suppressing every UUID in the codebase.
Faster Scans
Scans are faster now thanks to a couple optimizations:
without first allocating lowercase copies (based on github.com/RRethy/ahocorasick MIT) #240
rebuilding maps of candidate rule IDs for each fragment #240
[\w.-]{0,50}?: #233Despite the default ruleset growing from 325 to 412 rules, scan time decreased across all six repository and scan-mode combinations tested.
Changelog
5babeb2Drop near matches (#245)bc21eb2Feat/rule timings (#227)66d51b6Filter Publishable and Test Keys from Generic Results (#207)555b1ecFix PostHog key length ranges and add personal key validator (#259)7a28a0dMore rules and rule updates (p-r) (#260)a47f6c9Perf/detect optimizations (#240)118446eRemove left preamble for a quick perf win (#233)38c1686Rules/jul 15 batch 1 (#246)b49c535Rules/jul 17 batch 1 (#253)b76f266Some Azure Rules (#222)8e6d239add config check test to ci (#263)2168b56another batch (#255)88f8ab7another batch (#257)f64b922another batch needs more review (#262)872e374bump min ver (#226)813bd3bbunch of comments (#243)5c859adcloudsmith rule (#235)d0f00a3consistent quoting7f9ed4acouple of 'm's (#256)2eac852fast walk (#238)85b491cfix data race w/ runtime bindings (#231)f629149fix(detect): log filter-skipped findings (#199)63d589ffix(kubernetes): expand Secret detection range (#244)06e89aalimit sourcegraph regex and keywords (#248)1ebee5cmore rules (#249)6381fa4need to review (#264)9be6bc2render rule (#242)e382667stripe validator (#247)501de59support for quoted and escaped values in --log-opts (#201)0b4063dvalidation check for existing gcp-api-key rule, create new gemini rules (#230)Configuration
📅 Schedule: (in timezone Europe/Paris)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.