Skip to content

v3.1.8 - fixes a fuzz-test false negative, adds scheduled fuzzing

Choose a tag to compare

@n-ae n-ae released this 22 Jul 19:39
· 23 commits to main since this release
0e35c33

Patch release, test/CI only - no runtime source changes, no caller-visible behavior change.

Fixed

  • FuzzNewClientErrorDoesNotEchoInput's scheme-position template inserted a normalized marker (validSchemeMarker) but asserted against the original, unnormalized one - so the check only caught a regression by coincidence, when the marker happened to already be valid scheme syntax. Realistic secret shapes (e.g. sk_live_..., which strips under normalization) slipped through undetected. Fixed to assert against the value actually inserted per template.

    Confirmed by reintroducing the exact pre-v3.1.7 scheme-echo regression: the old assertion missed it for 4 of 5 seeds; the fixed assertion catches it for all 5. TestNewClientErrorMessagesAreFixed and a direct regression case both independently caught the same regression correctly the whole time - this was a test-tooling gap only, never a runtime vulnerability.

    Found by the v3.1.7 maintainability assessment, following a lead from an external review.

Added

  • .github/workflows/fuzz.yml - a scheduled (daily, plus manually dispatchable), coverage-guided fuzz run for NewClient's BaseURL error non-disclosure invariant, separate from the PR-blocking CI job. Recommended across three consecutive maintainability-assessment cycles before being added now rather than carried forward a fourth time. On failure, uploads the failing input as a build artifact so it can be committed as a permanent regression test.

See CHANGELOG.md for full details.

Full Changelog: v3.1.7...v3.1.8