Skip to content

fix: close the gaps an independent review found (secret scan, ignore rules, contract tests) - #5

Merged
gaffercode merged 1 commit into
mainfrom
fix/review-findings-2026-11-21
Nov 21, 2026
Merged

gaffercode merged 1 commit into
mainfrom
fix/review-findings-2026-11-21

Conversation

@gaffercode

Copy link
Copy Markdown
Owner

An independent reviewer with a fresh context went through everything merged on 2026-11-21. It found no critical defect and six important ones. This pull request fixes them; each fix has a test that failed first.

Scanner

  • Catches more: the provider keys in use here, URLs that carry a password (empty user, http basic auth), short, letters-only and lower-case secrets in configuration files, database dumps by their header, data exports by name (spreadsheets, CSV), UTF-16 text.
  • Says more: files it could not read are named; every exception used is counted.
  • Exceptions are harder to hide: the allow file must be tracked and exact, the marker must be a trailing comment, env files can never be allowed.
  • A crash exits 2, not 1. 12 tests; 9 of them failed on the previous scanner.

Ignore rules

*dump*.sql, *backup*.sql, backups/ and dumps/ could hide a migration or a route. They are narrowed and anchored; SQLite side files and .envrc are ignored; .gitattributes keeps the hook file LF.

Contract test

Also sees destructured reads of process.env.

Also

CI runs the scan as the first step of the Lint job. Docs state what the scan refuses, what it cannot do and when it runs.

Verified locally

lint, typecheck exit 0; test 75/75; scanner over the whole tree: no findings.

Not run

build, deploy:dry-run, test:e2e, live Vera.


Generated by Claude Code

…d ignore rules

Scanner: adds the provider keys this site uses (Dify, OpenRouter, Resend,
Clerk), URLs with a password (empty user, http basic auth), short,
letters-only and lower-case secrets in configuration files, database dumps
by header, data exports by name and UTF-16 text. It names the files it
could not read. Exceptions are harder to hide: the allow file must be
tracked and exact, the marker must be a trailing comment, env files can
never be allowed, and every exception used is counted. A crash exits 2.

Ignore rules: *dump*.sql, *backup*.sql, backups/ and dumps/ could hide a
migration or a route; they are narrowed and anchored. SQLite side files
and .envrc are ignored. .gitattributes keeps the hook file LF.

The env contract test also sees process.env['X'] and destructuring. CI
runs the scan as the first step of the Lint job. Docs say what the scan
refuses, what it cannot do and when it runs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
@vercel

vercel Bot commented Nov 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentraverse Ready Ready Preview Nov 21, 2026 12:03pm UTC

Request Review

@gaffercode
gaffercode merged commit c326688 into main Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants