Skip to content

Atom 18.6.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 03:27
  • Incoming webhook verification: a route another service calls (Stripe, GitHub, Razorpay, another Atom app) takes "webhook_verify": {"scheme": "stripe", "secret": "config_webhook_secret_stripe"} with "auth": [] in its config_api entry; the middleware checks the HMAC-SHA256 signature of the raw body and the timestamp (config_webhook_verify_tolerance_sec, 300) before the route runs, answers 401 to a missing, forged or replayed call, gives the route request.state.webhook, and replays the body so the route reads it as usual. Schemes are data, not code: config_webhook_verify_scheme ships standard (Standard Webhooks, so Atom apps receive each other's webhooks), stripe, github, shopify and razorpay, and a project adds a provider with one dict (header, prefix or key, encoding, signed bytes, timestamp and id), checked at startup. OpenAPI adds x-webhook-verify (docs/webhook.md).