Repository navigation
Vault Sentinel reads config files, long lines and three more secret kinds (Part of #7179) - #7199
Merged
Merged
Conversation
…hes whole segments (Part of #7155) The scanner's proofs mocked the detector and the file filter, so a blind scanner would have passed them. These run it for real over planted fakes. Its allowlist was a substring match, so tests/ also exempted src/latests/. Known misses are strict xfails, tracked in #7179. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts match folders (Part of #7155) X-Ray's bypass extensions also silenced its header check, so an executable named logo.png passed, the tool's own banner example. They now excuse dense data only. X-Ray and the Firewall use path_allowlisted. The controls run the real scanner; known misses are strict xfails (#7187). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…inds (Part of #7179) Measured on seven repos first: long-line chunking added no hits, and reading all text added a handful for seconds of scan time. All of it lives in the scanner, so the engine's filter, signatures and scores don't move. Scan errors now show in the summary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Oct 30, 2026
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.
Part of #7179. Part of #7155.
Problem
Run for real, Vault Sentinel passed planted secrets in several common places. It never read
.tf,.ini,.toml,.conf,.cfg,.bak,.ipynbor*.envfiles, because it reused the engine's file filter.SecurityLens._armorempties lines of 250 or more characters, so a key on a minified line passed. And it had no signature for AWS secret keys, Google API keys or JWTs.What this does
gitgalaxy/security/long_lines.pycuts them into short overlapping pieces, so the regex protection stays in place..test_durationsjoinsALLOWLIST_PATHS. It's generated timing data, and the wider scan flagged it.The 12 strict expected failures from #7180 become required catches.
Why the engine doesn't move
All of this lives in the scanner. The engine's filter and
SecurityLenssignatures are unchanged, and nothing else ingitgalaxy/calls Vault Sentinel, so scoring and golden masters aren't affected. TheALLOWLIST_PATHSentry is shared with X-Ray and the Firewall; I expect no effect on the corpus, and the golden run on this PR will confirm it.Measured first
Reading every text file and chunking long lines, on seven repos:
.pem, 1.key)The measurement used a 2 MB limit and skipped vendored folders, so it's a guide to the shipped behaviour, not an exact match. Users will see those new hits, and the summary's TIP explains
ALLOWLIST_PATHS. It didn't include the three new patterns; on this repo they add no hits.Vault Sentinel on this repo, end to end: exit 0, 0 secrets, 5,019 files deep-scanned, about 24 seconds in the pre-gate.
Do the controls fail when something is broken?
Still open on #7179
Scan errors are printed, not failed.
tests/stays exempt.Checks
main: 872 passed, 1 skipped, 7 expected failures. Not the full suite locally.tests/ruff_audit.py --cipasses.🤖 Generated with Claude Code