Skip to content

Add canonical standardwebhooks platform and STANDARD_WEBHOOKS_BASE + factory; remove Twilio/PagerDuty#54

Merged
Prateek32177 merged 1 commit intocodex/add-webhook-signature-verification-for-providers-3hr9dyfrom
codex/add-standardwebhooks-platform-implementation
Mar 23, 2026
Merged

Add canonical standardwebhooks platform and STANDARD_WEBHOOKS_BASE + factory; remove Twilio/PagerDuty#54
Prateek32177 merged 1 commit intocodex/add-webhook-signature-verification-for-providers-3hr9dyfrom
codex/add-standardwebhooks-platform-implementation

Conversation

@Prateek32177
Copy link
Copy Markdown
Contributor

Motivation

  • Multiple providers share the Standard Webhooks (Svix-style) signing format but use different header names, so add a single canonical platform that supports header aliases instead of adding per-vendor entries.

Description

  • Add standardwebhooks to the WebhookPlatform union and WebhookPlatformKeys enum to represent the canonical Standard Webhooks style.
  • Introduce and export STANDARD_WEBHOOKS_BASE and createStandardWebhooksConfig(...) to provide a reusable base config and a factory for building Standard Webhooks signature configs with header aliases.
  • Add a single standardwebhooks entry to platformAlgorithmConfigs using createStandardWebhooksConfig(...) with webhook-* headers and svix-* aliases, leaving other platform shapes intact.
  • Update the algorithm verifier to honor signatureHeaderAliases and timestampHeaderAliases when extracting signatures and building the signed payload; remove Twilio/PagerDuty-specific platform entries and the Twilio URL override plumbing from adapters and verifier messaging.
  • Export the new helpers from the package root and update documentation to surface the canonical Standard Webhooks usage and examples.

Testing

  • Ran the test suite with npm test (executes ts-node src/test.ts) and all tests passed successfully.
  • Built the package with npm run build (tsc) and the TypeScript build completed without errors.

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Prateek32177 Prateek32177 merged commit ed2510d into codex/add-webhook-signature-verification-for-providers-3hr9dy Mar 23, 2026
3 checks passed
@Prateek32177 Prateek32177 deleted the codex/add-standardwebhooks-platform-implementation branch March 23, 2026 17:39
Prateek32177 added a commit that referenced this pull request Mar 23, 2026
…ndling and verifier enhancements (#52)

* fix: support twilioBaseUrl override and proxy-aware URL reconstruction

* feat: add explanatory signature failure messages across verifiers

* refactor: remove normalization support and add Twilio usage docs

* fix: support twilioBaseUrl across all framework adapters

* Add canonical standardwebhooks platform and remove twilio/pagerduty (#54)

* 4.3.0-beta.1

* updates on svix

* audit and version update

* svix error foxed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant