Skip to content

Import an existing signing secret when creating an outbound endpoint - #3

Merged
rusenask merged 1 commit into
mainfrom
feat/outbound-import-secret
Oct 25, 2026
Merged

rusenask merged 1 commit into
mainfrom
feat/outbound-import-secret

Conversation

@rusenask

@rusenask rusenask commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Adds secret to relay.outbound.endpoints.create params (new OutboundEndpointCreateParams), so a migration from Svix or another Standard Webhooks sender can import each endpoint's existing whsec_ secret and customers keep verifying with it. The API has accepted secret on endpoint create since rusenask/webhookrelay#1093.

  • typecheck + vitest (67 tests) pass
  • README note in the outbound section

🤖 Generated with Claude Code


Note

Low Risk
Optional SDK typing and docs for an already-supported API field; no change to default create behavior when secret is omitted.

Overview
Adds optional secret on relay.outbound.endpoints.create via new OutboundEndpointCreateParams, so migrations from Svix or other Standard Webhooks senders can register an endpoint with an existing whsec_ key instead of forcing a new signing secret.

The create helper still uses outboundEndpointParams; when secret is set it is sent on the POST body (covered by a new test). README and JSDoc call out the migration path.

Reviewed by Cursor Bugbot for commit d276b20. Configure here.

endpoints.create accepts an optional secret (whsec_ + base64 of a 24-64
byte key, e.g. exported from Svix), so migrated consumers keep verifying
with the key they already have. The API has accepted it since backend
PR #1093.
@rusenask
rusenask merged commit 1c61d89 into main Oct 25, 2026
4 of 5 checks passed
@rusenask
rusenask deleted the feat/outbound-import-secret branch October 25, 2026 16:19
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.

1 participant