Skip to content

chore(deps): bump svix to 1.99.1 and cover webhook signature verification - #66

Merged
ericviana merged 1 commit into
mainfrom
eric/bump-svix
Aug 3, 2026
Merged

ericviana merged 1 commit into
mainfrom
eric/bump-svix

Conversation

@ericviana

Copy link
Copy Markdown
Member

Replaces #65. Snyk's PR bumps package.json but cannot regenerate bun.lock, and every CI job installs with bun install --frozen-lockfile, so that PR fails at the install step and can never go green. Any future Snyk PR here will fail the same way.

This does the bump properly (svix 1.94.0 to 1.99.1, the current latest, lockfile regenerated) and adds the test coverage that was missing: verifyWebhookSignature had no tests at all in this SDK, even though the go and python SDKs both cover their equivalents. The new tests sign a payload with svix and assert the SDK verifies it, then assert it rejects a tampered payload, a signature made with a different secret, and a timestamp outside the tolerated window. That is what makes this dependency bump verifiable rather than hopeful.

Version 5.0.0 to 5.0.1 so consumers pick up the dependency change (publish.yaml's registry guard releases it on merge).

Proof

  • bun run test: 19 files, 97 tests pass (was 93; 4 new)
  • bun run lint:check: clean
  • bun run check-types: clean
  • node scripts/contract-check.mjs: OK, 1428 fields checked, 23 webhook events, 27 allow-list entries in use

https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs

…tion

The Snyk PR could not pass CI because it edits package.json without
regenerating bun.lock, and lint installs with --frozen-lockfile.

Claude-Session: https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs
@BernardoSM

BernardoSM commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ericviana
ericviana merged commit 92d057e into main Aug 3, 2026
10 checks passed
@ericviana
ericviana deleted the eric/bump-svix branch August 3, 2026 22:54
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