Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- 35 more platforms in **Source Type**, bringing it in line with what Hookdeck
supports today: AfterShip, Aircall, Auth0, Azure Event Grid, Bitbucket,
Calendly, Checkout.com, CircleCI, Clerk, Community.com, Cronofy, Deepgram,
Docker Hub, Fanvue, Formstack, Google Pub/Sub, Grafana, Hugging Face, Jira,
Klaviyo, Knock, MailerSend, MCP Events, Mollie, Notion, Onfleet, Ordinal, Quo,
SendGrid Inbound Parse, Snipcart, SparkPost, Supabase, Webflow, Whatnot and
WordPress.com. Azure Event Grid, Ordinal and SendGrid Inbound Parse offer a
choice of verification scheme, and Deepgram, Formstack, Google Pub/Sub,
Grafana, SparkPost and Supabase need several values. One **Webhook Secret**
cannot express either, so their verification goes in **Options → Source
Config (JSON)**. Docker Hub and WordPress.com take no secret, and Hookdeck does
not verify them. In each case the node says so at publish if you fill in
**Webhook Secret**, rather than sending something Hookdeck would reject or
silently drop.

### Fixed

- **AWS SNS** and **ShipStation** sources the trigger creates are now verified.
Hookdeck checks both platforms' signatures with keys it fetches itself, but
only for a source created with verification switched on. The node never
switched it on for AWS SNS, and for ShipStation only when **Webhook Secret**
held a public key, so those sources accepted unsigned requests. It now
switches it on whenever **Webhook Secret** is empty. ShipStation no longer
uses the public key it once asked for, so a new ShipStation source with one
filled in now stops at publish with "SHIPSTATION does not take a verification
secret". Clear the field and publish again. To
turn verification off, set **Options → Source Config (JSON)** to
`{"auth": null}`. An existing source you picked from the list is not changed
unless **Update Existing Source** is on.

## [0.3.0] - 2026-09-09

### Fixed
Expand Down
32 changes: 26 additions & 6 deletions nodes/Hookdeck/ConnectionPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ const DEFAULT_PLATFORM_AUTH_FIELD = 'webhook_secret_key';
* Resolve which auth field a single supplied secret should populate.
*
* Most platforms name it `webhook_secret_key`, but a sizeable minority use
* `api_key`, `public_key` or similar, and a secret in the wrong field is
* rejected by the API at activation. Three cases cannot be served by a single
* input at all — a type needing several values, one accepting a choice of
* schemes, and one taking no secret — and each is refused with the guidance that
* fits it, rather than being allowed through to surface as a 422.
* `api_key`, `public_key` or similar. Hookdeck drops a field it does not expect,
* so a secret in the wrong one fails activation with a 422 when the right field
* is required, and disappears without a word when it is not. Several cases
* cannot be served by a single input at all — a type needing several values,
* one accepting a choice of schemes, and one with nowhere to put a secret — and
* each is refused with the guidance that fits it.
*/
function platformAuthField(this: SourceConfigContext, sourceType: string): string {
const shape = SOURCE_TYPE_AUTH[sourceType];
Expand All @@ -33,13 +34,26 @@ function platformAuthField(this: SourceConfigContext, sourceType: string): strin
// best available guess, and the API says so plainly if it is wrong.
if (!shape) return DEFAULT_PLATFORM_AUTH_FIELD;

// Refused rather than sent, because Hookdeck would drop it silently and the
// user would believe the secret was doing something.
if (shape.kind === 'keyless') {
throw new NodeOperationError(
this.getNode(),
`${sourceType} does not take a verification secret`,
{
description:
'Leave Webhook Secret empty. Hookdeck verifies this platform with signing keys it fetches from the platform itself, and the node turns that on for you.',
},
);
}

if (shape.kind === 'none') {
throw new NodeOperationError(
this.getNode(),
`${sourceType} does not take a verification secret`,
{
description:
'Leave Webhook Secret empty. Hookdeck verifies this platform without one, and sending a secret it does not expect is rejected.',
'Leave Webhook Secret empty. Hookdeck has nowhere to keep a secret for this platform and would drop one without saying so.',
},
);
}
Expand Down Expand Up @@ -124,6 +138,12 @@ export function buildSourceConfig(
if (platformSecret) {
config.auth_type = sourceType;
config.auth = { [platformAuthField.call(this, sourceType)]: platformSecret };
} else if (SOURCE_TYPE_AUTH[sourceType]?.kind === 'keyless') {
// Hookdeck only creates verification for a source sent with `auth`, even
// an empty one. Without it these platforms, which need nothing entered,
// accept unsigned requests. Source Config (JSON) of {"auth": null} below
// still turns it off, for anyone sending test payloads by hand.
config.auth = {};
}
}

Expand Down
Loading
Loading