Skip to content

Release v5.16.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 00:03
c481bbf

Webhooks and other outside traffic now reach an extension through Stage: Stage keeps the raw request, answers the sender at once, and delivers it to the extension, which verifies it and raises the triggers its contract declares.

Added

  • Inbound requests with a method that may change something (POST, PUT, PATCH, DELETE) to /extensions/<System>/... are stored with their raw body and headers and acknowledged with 202 Accepted before the extension is involved. An extension that is not running is activated to take delivery. (part of #1068)
  • Delivery with retries: 2xx is delivered, a 4xx such as 401 for a signature that does not verify is rejected for good and never retried, and 408, 425, 429, 5xx or no answer retry with a doubling wait until MaxAttempts, then show as failed. Every attempt carries the same delivery identity as invocation_id and idempotency_key.
  • Replay protection: a request identical in method, path, query and body to one already held is acknowledged and not delivered again, while the first is waiting and for ReplayWindow (24 hours). A request that was given up on is not treated as a replay, so a sender's retry is delivered.
  • A cap on waiting requests (MaxOpen, answers 503 with Retry-After) and a streamed body limit, so an anonymous sender cannot fill storage.
  • Workbench endpoints GET /stage/extensions/deliveries and POST /stage/extensions/deliveries/retry list inbound traffic with its status, attempts and last outcome, and retry a failed or rejected request. They never show a body or header values.
  • correlation_key on RaiseTrigger, so a raised trigger also resumes the workflow runs that wait for it about the same thing. HostServices.Trigger takes a correlationKey.
  • C# SDK WebhookSignature verifies an HMAC-SHA256 signature in constant time, with an optional signed timestamp and tolerance to refuse a captured request replayed later. HttpCall carries DeliveryId and Attempt.
  • Documentation: Inbound traffic and webhooks, linked from the extensions overview, the protocol and host services references, the connect-a-backend guide and the C# SDK page.
  • Settings under Stage:Extensions:Inbound.

Changed

  • Reactions started by a raised trigger run as the actor extension:<System>, the extension that raised it, instead of the anonymous system actor.
  • POST requests to an extension endpoint are answered 202 with an empty body, not with the extension's answer. GET, HEAD and OPTIONS are still answered with what the extension answers.
  • A path an extension does not declare is rejected at delivery, rather than answered 404, until the extension has run once.