Repository navigation
Release v5.16.0
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 with202 Acceptedbefore the extension is involved. An extension that is not running is activated to take delivery. (part of #1068) - Delivery with retries:
2xxis delivered, a4xxsuch as401for a signature that does not verify is rejected for good and never retried, and408,425,429,5xxor no answer retry with a doubling wait untilMaxAttempts, then show as failed. Every attempt carries the same delivery identity asinvocation_idandidempotency_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, answers503withRetry-After) and a streamed body limit, so an anonymous sender cannot fill storage. - Workbench endpoints
GET /stage/extensions/deliveriesandPOST /stage/extensions/deliveries/retrylist 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_keyonRaiseTrigger, so a raised trigger also resumes the workflow runs that wait for it about the same thing.HostServices.Triggertakes acorrelationKey.- C# SDK
WebhookSignatureverifies an HMAC-SHA256 signature in constant time, with an optional signed timestamp and tolerance to refuse a captured request replayed later.HttpCallcarriesDeliveryIdandAttempt. - 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. POSTrequests to an extension endpoint are answered202with an empty body, not with the extension's answer.GET,HEADandOPTIONSare 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.