Skip to content

Vault Sentinel reads config files, long lines and three more secret kinds (Part of #7179) - #7199

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
feat/vault-sentinel-widen
Oct 30, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
feat/vault-sentinel-widen

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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, .ipynb or *.env files, because it reused the engine's file filter. SecurityLens._armor empties 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

  • Vault Sentinel picks its own files. Anything text-like under 5 MB is read, as well as what the engine's filter keeps. Binary files aren't.
  • Long lines are read. New gitgalaxy/security/long_lines.py cuts them into short overlapping pieces, so the regex protection stays in place.
  • Three more secret kinds are caught, with patterns kept in Vault Sentinel.
  • Scan errors show in the summary as "Files Not Scanned", so a failure to read a file stops looking clean.
  • .test_durations joins ALLOWLIST_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 SecurityLens signatures are unchanged, and nothing else in gitgalaxy/ calls Vault Sentinel, so scoring and golden masters aren't affected. The ALLOWLIST_PATHS entry 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:

Repo Files read Scan time New hits: unread types New hits: long lines
GitGalaxy 2,070 -> 5,956 3.5s -> 17s 4 0
flask 126 -> 227 0.1s -> 0.2s 0 0
express 196 -> 210 0.1s -> 0.1s 0 0
curl 3,094 -> 4,250 1.3s -> 1.7s 6 0
django 2,906 -> 4,938 1.8s -> 4.0s 0 0
ansible 5,127 -> 5,566 1.3s -> 1.4s 12 (11 .pem, 1 .key) 0
discourse 17,250 -> 20,502 8.6s -> 13.5s 6 0

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?

Sabotage Result
Back to the engine's filter 8 failed
No chunking 1 failed
No extra patterns 2 failed
Scan errors not counted 1 failed

Still open on #7179

Scan errors are printed, not failed. tests/ stays exempt.

Checks

  • Related tests after merging main: 872 passed, 1 skipped, 7 expected failures. Not the full suite locally.
  • tests/ruff_audit.py --ci passes.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits October 30, 2026 14:45
…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 21:30
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 5c924ef into main Oct 30, 2026
60 checks passed
@squid-shepherd
squid-shepherd Bot deleted the feat/vault-sentinel-widen branch October 30, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant