fix(overlay-express): serialize GASP failures and document scanner review - #565
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ty-everett
left a comment
There was a problem hiding this comment.
Critical maintainer review of exact head d0d4aec: the two GASP catches now use the existing real serializer through the configured logger, preserving the generic 400 response and all public/wire contracts. CR/LF/C1/Unicode separators and throwing serialization are exercised through registered public routes; both regressions fail with the original handlers. No dependencies, authentication behavior, persistence, scanner rules or thresholds changed. The 28 existing scanner dispositions have individually traced guards/callers or test-only scope, a governed owner, exact-source evidence, re-review date and reopening conditions; genuine logging alerts must resolve by fresh main analysis, not dismissal. Existing Scorecard debts remain explicit.
Local required gates, full build, 17 suites/507 tests, packed ESM/CJS/types and the full 129-page docs build pass. Hosted CI 35817592766, CodeQL 35817592714, conformance 35817592736, required Codecov patch and the exact-head zero-new-Sonar gate all pass. No open PR CodeQL alert or review thread. Parent main full acceptance and property fuzzing passed, and the post-publication synchronization preview changes no public-package manifest.
Release condition: merge this reviewed source, require fresh main analysis and CI, apply only the recorded false-positive dispositions with read-back, and replace the cancelled pre-fix candidate before protected npm approval. Maintainer-authored PR; this documented review is a COMMENT because GitHub does not permit self-approval. Admin facilitation follows the repository maintainer policy without bypassing failed or pending checks.



Program and scope
The final default-branch security review found two GASP handlers logging request-derived raw errors. Route both through the existing serializer and configured logger, preserving the generic HTTP 400 response. Public-route regressions cover CR/LF, C1 and Unicode line separators, and throwing serialization hooks; both fail against the original handlers. The auth middleware migration guide now recommends the actual coordinated SDK 2.8.0 candidate.
Also record the exact source evidence, owner, review date and reopening conditions for 28 existing false-positive CodeQL findings. No scanner query or quality gate is disabled. Actual logging findings must resolve through fresh analysis, not dismissal. Scorecard badge/lock-refresh debt remains explicit. Coordination: #558.
Impact
@bsv/overlay-expressexisting unpublished2.7.2candidate. No API/wire/schema change or consumer migration.Verification
pnpm build,pnpm health:check,pnpm lint,pnpm format:check,pnpm typecheck: passed.pnpm --filter @bsv/overlay-express test:coverage --runInBand: 17 suites / 507 tests passed.pnpm --filter @bsv/overlay-express pack:check: clean ESM/CJS consumers, all exports, types, publint and package contents passed.d0d4aece9d76ebbe8af3c47bd705ede4f6fb1b13; no open CodeQL PR alerts or review threads. Selected work is validated by the successful merge gate.Security and dependencies
Release and operations