Skip to content

FCE-3559: Document webhook signature verification#276

Open
roznawsk wants to merge 3 commits into
mainfrom
fce-3559
Open

FCE-3559: Document webhook signature verification#276
roznawsk wants to merge 3 commits into
mainfrom
fce-3559

Conversation

@roznawsk

Copy link
Copy Markdown
Member

Description

Type of change: New Feature (docs)

Fishjam now signs every webhook delivery with an x-fishjam-signature-256: sha256=<hex> header (HMAC-SHA256 of the raw request body). This PR documents it:

  • Adds a Verifying webhook signatures section to Set up your server, with verifyWebhookSignature (Node) / verify_webhook_signature (Python) examples, and wires verification into the Fastify, FastAPI, and production-deployment webhook handlers.
  • Webhook URL configuration now points at the Dashboard Webhooks tab instead of passing webhookUrl per room in create-room requests (batchWebhookNotifications stays a per-room param). The quick-start link now jumps straight to the Webhooks section.
  • De-duplicates the webhook prose: Set up your server is the canonical explanation (delivery, batching, signing); the framework example pages and production deployment link to it instead of repeating it.
  • Bumps the js-server-sdk and python-server-sdk submodules to include the verification helpers.

Note: the submodule pointers currently reference the tips of the unmerged FCE-3619 SDK branches — re-point them to merged main commits before merging this PR.

- Document the x-fishjam-signature-256 header and SDK verification helpers
  (verifyWebhookSignature / verify_webhook_signature) with examples
- Point webhook URL configuration at the Dashboard Webhooks tab instead of
  per-room webhookUrl params
- De-duplicate webhook prose: server-setup is canonical, examples link to it
- Bump js-server-sdk and python-server-sdk submodules to include the helpers
@roznawsk
roznawsk requested a review from Copilot July 17, 2026 07:49
@linear

linear Bot commented Jul 17, 2026

Copy link
Copy Markdown

FCE-3559

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents Fishjam webhook signature verification and updates webhook configuration guidance to reflect Dashboard-based webhook URL setup, while de-duplicating webhook documentation across backend guides.

Changes:

  • Added “Verifying webhook signatures” section (HMAC-SHA256 over raw body, x-fishjam-signature-256) and linked framework examples to it.
  • Updated docs to configure webhook URL via the Dashboard Webhooks tab (keeping batching as a per-room option).
  • Refactored Fastify/FastAPI/production deployment examples to verify signatures before decoding and reduced repeated webhook prose.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/tutorials/backend-quick-start.mdx Updates quick-start next-steps link to jump directly to the Webhooks section.
docs/how-to/backend/server-setup.mdx Makes server setup the canonical webhook doc; adds signature verification section and updates room creation guidance.
docs/how-to/backend/production-deployment.mdx Updates production webhook handlers to verify signatures and revises webhook enablement instructions to use the Dashboard.
docs/how-to/backend/fastify-example.mdx De-duplicates webhook prose and shows signature verification inside Fastify’s protobuf parser.
docs/how-to/backend/fastapi-example.mdx De-duplicates webhook prose and adds signature verification to the FastAPI dependency.
docs/api/reference.md Updates webhook configuration guidance to use the Dashboard and adjusts batching explanation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/how-to/backend/server-setup.mdx
Comment thread docs/how-to/backend/server-setup.mdx
Comment thread docs/how-to/backend/production-deployment.mdx Outdated
roznawsk added 2 commits July 17, 2026 09:55
- Clarify that the 401 response in the signature snippets is
  framework-specific (see linked framework examples)
- Type-guard the x-fishjam-signature-256 header in the Express example
  instead of casting
@roznawsk
roznawsk requested a review from Karolk99 July 17, 2026 09:01
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