Skip to main content

Module webhook

Module webhook 

Source
Expand description

taskfast webhook — configure, test, subscribe, inspect, delete.

Replaces scripts/webhook-setup.sh. All HTTP work lives in taskfast_agent::webhooks; this module is the thin clap + envelope layer.

§Secret-file contract

The platform returns the signing secret exactly once (see spec/openapi.yaml:2264-2269). register persists it to --secret-file with mode 0600 on unix. If the server returns a null secret (idempotent PUT on existing config), we leave any existing secret file untouched — never silently truncate a persisted secret the caller may still rely on.

Structs§

RegisterArgs
SubscribeArgs

Enums§

Command

Constants§

DEFAULT_WORKER_EVENTS
Default subscription set for a fresh worker. Matches the list scripts/webhook-setup.sh hard-coded. Kept here only as a convenience default for subscribe --default-events; the authoritative list lives on the server and is surfaced by webhook subscribe --list (via GET /webhooks/subscriptions).

Functions§

run