Repository navigation
fix: close the gaps an independent review found (secret scan, ignore rules, contract tests) - #5
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
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
Ignore rules
*dump*.sql,*backup*.sql,backups/anddumps/could hide a migration or a route. They are narrowed and anchored; SQLite side files and.envrcare ignored;.gitattributeskeeps 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,typecheckexit 0;test75/75; scanner over the whole tree: no findings.Not run
build,deploy:dry-run,test:e2e, live Vera.Generated by Claude Code