Skip to main content

Module webhooks

Module webhooks 

Source
Expand description

One-shot outbound webhooks: “POST me the next message to this address”.

Registrations live in this process; a restart drops pending hooks. A hook is one-shot and capped at webhook_max, so durability would buy little.

SSRF: the URL’s host is resolved once, every address is checked against private/loopback/link-local/reserved ranges, and the delivery connection is pinned to the addresses that passed. cowbird checked, then let curl re-resolve at connect time, and documented the DNS-rebinding window it left open; pinning closes it. Redirects are never followed.

Structs§

Hook
Target
A validated destination: the URL plus the addresses it may connect to.
Webhooks

Constants§

SIGNATURE_HEADER

Functions§

sign
validate