Skip to content

Release v5.17.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 00:45
696e4fd

Stage can now realize an ability from a declarative http block, with no extension process: the built-in http extension makes the REST call from inside Stage, through the same durable invocation path and system gates as any other extension.

Added

  • The built-in http extension. An ability's http block gives the method and path, headers, query, a structured body, what each response status returns, and which status settles with a named outcome. It decorates the registered ability backend, so abilities without a block still reach their connected extension backend. Register it with AddStageHttpAbilities after the invocations. It runs in-process; moving it to packaged extensions follows #1064. (#1069)
  • Base address and authentication (none, bearer, basic or apiKey) come only from the settings and secrets of the system, systems:<System>:Http:*. The model holds no credential: a block that sets Authorization, Cookie, X-API-Key or Host is an error. Secrets are never logged or put in a failure reason, and redirects are not followed.
  • A response with no matching line fails the ability: a client error other than a timeout rules the effect out, anything else (a server error, a timeout, a dropped connection) leaves it open for reconciliation. A missing setting or input is reported as not sent, naming the setting and never its value.
  • A reference page for the block: https://github.com/Cratis/Stage/blob/main/Documentation/extensions/http.md