Skip to content

X: deliver only to webhooks whose challenge was answered - #54

Merged
RhysSullivan merged 1 commit into
mainfrom
x-hold-unproven-deliveries
Nov 27, 2026
Merged

RhysSullivan merged 1 commit into
mainfrom
x-hold-unproven-deliveries

Conversation

@RhysSullivan

Copy link
Copy Markdown

Follows #52, which lets control mode accept an http webhook address or one with a port on an https instance.

  • An address accepted only through that relaxation is never called. Its deliveries are held: they are listed as held (with the reason) in /_emulate/x/dm/arrive's response and on the ledger entry of a DM sent through X's route, and preview-delivery gives the exact signed request. Without this, a public instance could be pointed at any host and port and made to send signed POSTs there.
  • Deliveries go only to a webhook whose challenge was answered, as on X. That is X's CRC at creation or on PUT /2/webhooks/:id in outbound mode, or a correct answer at POST /_emulate/x/webhooks/:id/challenge in control mode. Until then they are held, as are a seeded webhook's until PUT. Control mode used to deliver to an https address nobody had answered a challenge from.

The manifest, README, docs page and skill say so.

Tests (webhooks-media.test.ts): a relaxed address is never called even after its challenge is answered, and its held delivery is on the ledger; control mode holds deliveries until the challenge is answered, then sends them; a seeded webhook is held until PUT passes the CRC.

A webhook address accepted only through control mode's relaxation (http, or
a port, on an https instance) is never called: its deliveries are held,
listed as held in the arrival's response and on the ledger entry of a DM
sent through X's route, and previewable with preview-delivery.

Any webhook now gets deliveries only once a challenge has been answered for
it, as on X: the CRC at creation or on PUT in outbound mode, or a correct
answer at POST /_emulate/x/webhooks/:id/challenge in control mode. Until
then, and for a seeded webhook until PUT, deliveries are held. Control mode
used to deliver to an https address nobody had answered a challenge from.
@RhysSullivan
RhysSullivan marked this pull request as ready for review November 27, 2026 02:01
@RhysSullivan
RhysSullivan merged commit 5df0a19 into main Nov 27, 2026
1 check passed
@RhysSullivan RhysSullivan mentioned this pull request Nov 27, 2026
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