Skip to content

Vault Sentinel: real-detector controls; folder allowlist entries match whole segments (Part of #7155) - #7180

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
feat/vault-sentinel-control
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
feat/vault-sentinel-control

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155. Found #7179.

Problem

Vault Sentinel's only failure proofs mock both SecurityLens and ApertureFilter, so they prove the exit code, not that a secret is ever found. If its signature name changed, it would go blind and still print success.

What this does

  • Adds tests/security_auditing/test_vault_sentinel_control.py. The real detector and file filter run over planted fakes, nothing mocked. Six secret kinds must fail CI, a clean tree must pass, secret files must fail by name, and a detected secret must never be logged.
  • Fixes a bypass. ALLOWLIST_PATHS used a substring match, so "tests/" also exempted src/latests/ and contests/. New path_allowlisted() treats an entry ending in / as a folder and matches whole path segments. Other entries stay the partial match gitgalaxy_config.py documents.
  • Pins what it misses as strict expected failures, 11 cases tracked in Vault Sentinel skips .tf, .env, .ini, .toml and other config files, and misses three secret kinds #7179: 8 file types it never reads, and 3 secret kinds with no signature. A strict xfail goes red when the gap closes, so a fix can't go unrecorded.
  • Points gate_controls.py at the real control and lists the gaps.

Do the controls fail when something is broken?

Yes. Each sabotage was temporary:

Sabotage Result
Wrong signature name (scanner goes blind) 15 failed
Wrong result key (scanner goes blind) 9 failed
Allowlist back to a substring match 3 failed

Risk

The allowlist change makes the pre-gate stricter. Vault Sentinel on this repo with the fix: exit 0, 0 secrets, 2,069 files deep-scanned. For users, a path that was only exempt through the substring match will now be reported.

X-Ray and Supply Chain Firewall have the same substring match. They aren't changed here, to stay within the 5-file limit; the next control PR moves them to path_allowlisted().

What this doesn't do

It doesn't widen what Vault Sentinel reads. That changes a shipped tool and needs a false-positive measurement first (#7179).

Cost

No new workflow or job. About 30 small scans inside full-suite, under a second in total.

Checks

  • Control and gate list tests: 24 passed, 11 expected failures.
  • Related tests (-k 'gate_controls or vault or sentinel or config or resolver or workflow or classifier'): 774 passed, 1 skipped, 11 expected failures. Not the full suite locally.
  • tests/ruff_audit.py --ci passes.

🤖 Generated with Claude Code

…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]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 18:58
@squid-shepherd
squid-shepherd Bot merged commit 4149c74 into main Oct 30, 2026
58 checks passed
@squid-shepherd
squid-shepherd Bot deleted the feat/vault-sentinel-control branch October 30, 2026 19:15
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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