Skip to content

RegistryStack v0.51.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 03:13
· 177 commits to main since this release

Registry Stack v0.51.0

Registry Stack v0.51.0 is the beta-63 release. It gives bounded product logic
its own name in each product. Base Registry Engine (BReg) Action Plans,
Evidence Derivations and Coordinator Transforms replace the earlier
functions keys, so a function is always a service function. BReg Record
lists and the generated clients share one pagination and route parameter
vocabulary. A Coordinator workflow can call a named service function, and a
trusted host can run one BReg Action for a signed-in person while its function
only prepares the input. Registry Session joins the numbered release as a
standalone binary, with a Compose reference host for the business-registration
preview. Read the upgrade section before you replace binaries, generated
contracts or clients.

Compatibility and upgrade

Use matching v0.51.0 runtimes, tools and clients. Back up each deployment and
follow upgrade and retire.

Reinstall rstack

  • Numbered releases now ship registry-session for Linux amd64, Linux arm64
    and macOS arm64. It is a standalone release asset: rstack install does not
    install it, and it has no installer or container image. Download it from the
    release assets.
  • rstack update from an earlier installation (v0.44.0 to v0.50.0) refuses
    this release, because those rstack versions do not recognise the
    registry-session asset. Run the v0.51.0 rstack installer as for a first
    installation, naming the components you use. Later updates work from
    v0.51.0. v0.47.0 handled the language server asset the same way.

Development plans

  • BREAKING: dev.yaml declares products with the same inventory as
    service.yaml. rstack dev refuses the earlier list form with
    rstack.dev.products-list. Replace each
    - {product: KIND, project: PATH, audience: AUDIENCE} entry with
    products.KIND.projects.KIND.path: PATH for BReg, Coordinator and Evidence,
    or products.KIND.path: PATH for other products. Move each audience to
    audiences.KIND: AUDIENCE. When service.yaml declares products, keep
    only audiences in dev.yaml. A directory holds exactly one inventory, and
    rstack dev check reports a refusal at the authored location.
    service.yaml also accepts adapter, discovery, documents, render and
    scheduling projects.
  • rstack dev check takes either a project directory or
    --owner-report FILE --owner-report-format ..., not both.

Base Registry Engine

  • BREAKING: BReg calls scripted Action logic an Action Plan. In registry.yaml
    and module.yaml, rename functions to actionPlans. In an Action's
    plan, change type: function to type: scripted and rename function to
    actionPlan. Keep the existing IDs, script or Wasm sources, input and write
    declarations, and the registry.action-plan/v1 ABI. Update bregctl
    explanation consumers to read plan.type: scripted and plan.actionPlan.
  • BREAKING: Action Plan diagnostics are renamed. Match
    breg.action-plan.id-collision and breg.action-plan.contract-invalid in
    place of breg.function.*, and breg.action.plan-unknown,
    breg.action.plan-contract-invalid, breg.action.plan-input-unknown and
    breg.action.plan-unavailable in place of the breg.action.function-* and
    breg.action.plan-function-unavailable codes. Diagnostic paths sit under
    /actionPlans/, and the human explanation says Action Plan.
  • BREAKING: v0.51.0 bregctl check --package refuses a sealed package from an
    earlier release whose generated OpenAPI uses $top, with
    breg.package.generated-artifacts-refused. Packages built by v0.49.0 and
    v0.50.0 tools are affected, because both generate $top, which the
    pagination change in this release replaces with limit. Strict checks also refuse a sealed source that
    still uses the earlier Action Plan spelling with the same code, even when its
    generated artifacts match. To upgrade:
    1. Keep the old package intact, and keep serving it with its matching tools
      and runtime until cutover.
    2. Update the authored Action Plan keys.
    3. Run v0.51.0 bregctl test on a disposable database and bregctl package
      to build the successor. Pass the active old package as
      --baseline-package to both commands.
    4. Check the new package, run bregctl plan and the reviewed
      bregctl apply, then serve the successor with the matching v0.51.0
      runtime.
  • BREAKING: a generated artifact that was changed and then resealed with
    matching digests reports breg.package.generated-artifacts-refused instead
    of breg.package.integrity-refused. A sealed source file can mix the
    earlier and current Action Plan spellings, or declare both for one key. No
    release writes such a file, so it is refused as
    breg.package.integrity-refused. Update alerts for both refusals.
  • Record, history, relationship and External View lists use limit and
    cursor. Send limit on the first page, then continue on the same route
    with the returned cursor and the same access profile. The server still reads
    $top and $skiptoken. They are deprecated and planned for removal in
    v0.52.0, so move every caller before then. Rust and Node list clients use
    limit, Python takes limit=, and clients write cursor in saved
    continuations while still reading earlier skiptoken ones.
  • A generated project SDK's related() takes limit in place of top, and
    the generated TypeScript and Python SDKs send limit to the client.
    Regenerate the SDK, and rename the argument where a caller passes it by
    name.
  • The Evidence provider key set at trustedJwksRef is read as a public
    document. BReg refuses it when it holds a private or symmetric key member.

Registry Evidence

  • BREAKING: rename EvidenceProject functions to derivations and each
    derive.function reference to derive.derivation. Read the same names in
    evidencectl check and explain JSON reports. Existing Rhai
    assertion-derive/v1 scripts and their asset paths carry over. Run
    evidencectl check PROJECT after you update the project. Regenerate
    TypeScript and Python with evidencectl types and replace imports of
    FunctionBindings with DerivationBindings.
  • BREAKING: match evidence.project.derivation-* in place of
    evidence.project.function-*, and
    evidence.project.duplicate-derivation-label in place of
    evidence.project.duplicate-function-label. Editor asset checks use
    evidence.derivation.*, for example evidence.derivation.compile, and
    editor reference codes say derivation and derivation-file.

Registry Coordinator

  • BREAKING: the bounded Rhai computations in a workflow are Transforms. Rename
    functions to transforms and use type: transform with a transform
    member in mappings. Use coordinatorctl explain transforms for the
    interpreter helpers, and match coordinator.transform.* in place of
    coordinator.function.*. Retained definition snapshots keep their reader and
    revision format.

Generated clients

BREAKING: generated clients name every route parameter after the resource it
identifies. Operation names and concrete HTTP URLs stay the same. Replace the
path arguments as follows:

  • Adapter breg-records v1: record_id becomes recordId in generated client
    and MCP arguments. Refresh the Live Effective Contract and its pinned digest
    together.
  • Casework: policy_id, request_id, ask_id, task_id, grant_id,
    event_id, team_id and absence_id become policyId, requestId,
    askId, taskId, grantId, eventId, teamId and absenceId. On the
    holiday revision route, id and revision become holidayId and
    holidayRevision.
  • Coordinator: run becomes runId on the run routes, workflow becomes
    workflowId on the workflow and event routes, and trigger becomes
    triggerId on the event route.
  • Messaging: message_id, provider_id and template_id become messageId,
    providerId and templateId, and version becomes templateVersion on
    template previews.
  • Render: type becomes documentType for rendering and sealing.
  • Scheduling: hold_id and appointment_id become holdId and
    appointmentId.
  • Evidence OID4VP: reference becomes sessionReference for session status,
    and request_id becomes requestId for wallet requests and responses.

Registry Render timestamp authority

  • BREAKING: Render reaches a seal's timestamp authority only at the
    destination the shared outbound selector chooses for its URL. Render
    resolves only the authority's own host. It refuses a loopback answer for a
    host name, and link-local, multicast, unspecified and cloud metadata
    addresses. Private addresses, the name localhost and loopback address
    literals stay accepted.
  • A refused address literal fails registry-render check and stops serve
    at startup with render.runtime.timestamp-address-refused. A refused answer
    for a host name fails each seal as timestamp-failed with reason
    destination-refused. A caBundleRef on an http URL is reported as
    render.runtime.seal-timestamp-ca-bundle-requires-https.
  • To upgrade, point timestampAuthority.url at a name that does not resolve
    to loopback, or use localhost, 127.0.0.1 or [::1] for a test authority
    on the same machine. Use https with caBundleRef.

Registry Adapter

  • BREAKING: payment problems carry canonical Adapter HTTPS type URIs. Upgrade
    strict payment clients before or together with the payment host. Updated
    clients still read the matching enumerated earlier Payment URNs.
  • adapter-job check applies the signed-event destination policy that
    activation already applied. A signed event baseUrl that is not a bare
    origin, or a loopback range in allowedPrivateCidrs, now fails check as
    it already failed at startup. check also refuses a TLS trust profile on a
    destination that does not use verified TLS.

Compose secret mounts

  • Production keeps refusing the Docker Compose native secret mount shape by
    default. To accept it, opt in with
    secretProviders.file.mountPolicy: compose-native. The setting admits a
    root-owned, single-link regular file with mode exactly 0444 under the
    declared root. Startup and check report
    platform.posture.compose-native-secret-mount while it is set. Writable
    files, other owners, extra links and paths outside the root stay refused.
    With the setting, every user in the container can read the mounted
    secrets. Use it only in a container that runs one service under one runtime
    identity.
  • Every runtime reads a static JWKS (jwksSource.documentRef) and every CA
    bundle (caBundleRef, Messaging tlsTrustProfiles.*.bundleRef) as a public
    document, with no setting: group and other may read the file. Owner, link,
    write and walk checks still apply, and the document is still parsed before
    use.
  • BREAKING: a public document (a static JWKS or a CA bundle, including the
    caBundleRef the provision tools read) that holds an armored private key
    block (PEM, OpenSSH or OpenPGP) is refused, even when the file is
    owner-only. If caBundleRef named a combined certificate and key file,
    move the key into its own secret file and point caBundleRef at the
    certificates alone.
  • Every provision tool refuses a CA bundle that is not UTF-8 text at its
    caBundleRef member when it reads the runtime file, so --print-sql no
    longer prints a plan for a binary bundle. The provision tools,
    registry-mcp check and registry-session check print the explicit
    compose-native setting notice.
  • Registry Evidence, its OID4VCI delivery service and its OID4VP verifier
    refuse mountPolicy, keeping the Version 1 rule that a key file is never
    readable by other users. evidencectl doctor reports the same refusal.
    Saved CLI connections and task connection files do not accept the member,
    and the published wallet adapter schemas do not offer it.
  • A runtime that runs as root gains only the 0444 shape. A root-owned
    0440 file is still refused, so stage the runtime's own files at 0400 or
    0600.
  • BREAKING for Rust callers of registry-platform-config: SecretError gains
    UnsafePublicDocument, PrivateKeyInPublicDocument and
    PublicDocumentNotText, and ProvisionInput gains explicit_settings. Add
    arms for the three variants to exhaustive matches, and fill
    explicit_settings from PostureReport::explicit_setting_notices.

Registry Render

  • Render calls authentication.apiKeyRef the shared API key instead of the
    legacy API key. It is a supported mode for one trusted caller with no OIDC
    issuer. It never seals, and every request carries the same key, so its audit
    entries share one fingerprint. The key name and behaviour are unchanged.
  • The render.forbidden detail on the seal route, the
    render.runtime.authentication action and the
    render.runtime.signing-requires-oidc message now say shared API key. Codes
    are unchanged. Update only a reader that matches the earlier text exactly.

Base Registry Engine

Select readable fields by classification

Record permissions and read paths can select readable stored fields with
readableFields.upToClassification instead of an explicit list. The compiler
resolves the ceiling to concrete field IDs, so the runtime only ever sees an
explicit list, and an unresolved ceiling selects nothing. A ceiling selects
only BReg-owned stored fields on the direct Record type or the declared
read-path target. External View links and permissions with requireConsent
keep explicit lists, and a ceiling there is refused.

A later field addition or reclassification at or below the ceiling widens the
compiled grant under the same authored permission. bregctl diff --package
reports a widened direct grant as widening and a widened read path as
review-required. Review the effective fields of each affected grant before
you apply a successor. The BReg security model records this as an operator
obligation.

Check role inventories offline

bregctl generate identity-facts reports the exact bytes it wrote, with their
length and SHA-256, and refuses to overwrite an existing output. A published
report schema describes the completed report.

Registry Session

  • registry-session generates one checked, loopback-only Envoy configuration
    with stable routes and filters and exact numeric upstreams.
  • A versioned, checked Session route inventory and a strict exporter record
    the selected routes and their projection digests. The exporter refuses
    stale, swapped, aliased or mismatched inputs before it writes any file. The
    inventory is routing data only: Session and each product keep their checks
    at request time.

Business registration reference host

deploy/examples/business-registration runs the business-registration
preview's compiled function and static page with Registry Session, Envoy,
ThunderID, BReg and PostgreSQL under Docker Compose, in production posture on
loopback host bindings. It is a reference recipe, not a supported deployment.

  • The browser holds only an opaque Session cookie. Envoy checks it and
    supplies the registrar's access token on the private function and registry
    routes. BReg applies its own access profile, issuer, scope and row rules.
  • Product, Session and database connections use verified TLS. Two issuer hops
    on internal Docker networks carry issuer traffic as plain HTTP, and the
    README lists that and every other residual reach. A deployment across hosts
    needs TLS on both hops.
  • The README covers preparing, running, checking and removing the instance,
    with a smoke test and a two-registrar browser check that verifies sign-out.
  • In this release the reference host still passes the signed-in registrar's
    bearer to the compiled function. The holder binding below is not yet used
    by the shipped recipe (#2910).

Holder-authorized BReg Actions

This release is part of #2835. @registrystack/client/holder-function is a
pre-1.0 subpath export of the existing @registrystack/client package, with no
new package name. A trusted host uses createHolderActionHandler to invoke one
generated BReg Action for a signed-in person. The declared function only
prepares the input: it receives one projected value and a signal, never the
Request, the bearer or a product client. Preparation runs under a deadline
and can be cancelled, and the binding also covers Actions that create a new
Record. The function runs in the host's process, so the binding keeps
credentials away from trusted, reviewed code but does not isolate it. BReg
tests cover holder renewal and refusals of crossed authority. The shipped
reference host adopts the binding in v0.52.0 (#2910).

Shared platform and development

  • rstack dev check verifies each owner tool's offline report against the
    typed identity facts. It checks the exact report kind, command and output
    path, the profile and claim counts, and the issuer and audience pair. For
    Messaging it also checks the staged package, runtime input and tool around
    facts generation. It also reads saved Casework and BReg identity-facts
    reports structurally, with bounded, redacted diagnostics.
  • A service role in service.yaml that no one is assigned must still name a
    known product. An unknown name returns identity.deployment.unknown-product
    at the exact product key.
  • rstack dev can attach to PostgreSQL on an isolated development network
    when the administrator URL selects transport=private-network-plaintext.
    Verified TLS remains the default, and production and provision keep their
    existing transport rules.
  • A service preview's function handler receives a copy of the request without
    the Authorization, Cookie and Proxy-Authorization headers. The typed
    Registry client keeps the caller's credential for that request.
  • A Coordinator workflow can call a named service function as a recorded step
    with service.invoke-function/v1. The workflow names it with
    serviceFunction, and a type: service-function runtime connection binds
    the function host, that one function and one credential for the host alone:
    an OAuth authorization or a hostKeyRef key. check refuses a missing
    function name and a name the connection does not bind. Calls follow external
    command recovery and require an interpret Transform. The call carries no
    product authority. The runtime refuses a function
    credential that matches a product, external or task authority credential or
    the Coordinator's own audience. rstack dev issues the function host key for
    each run and never passes it to a product.
  • The permit-review preview runs a multi-product service with two actors. One
    Coordinator run waits for a Casework officer's decision and calls a named
    function as a recorded step. It then records the BReg decision under the
    Coordinator's grant. In the preview, one run key admits both the gateway and
    the Coordinator as callers of the function host, and each actor has its own
    gateway origin holding only that actor's credential. A preview function bound
    to the Coordinator can also be called from the page (#2901).
  • A preview's generated binding reaches bounded BReg revision routes.
  • An external BReg connection in rstack dev that binds only a hook keeps the
    managed issuer. Other external bindings still need an external issuer.
  • Managed rstack dev journeys cover strict promotion for BReg, Adapter and
    Evidence, and signed product hooks for Documents and Scheduling.
  • evidencectl provision prepares an Evidence store with split roles. It adds
    no serving mode.
  • Discovery catalogue fetches, BReg signed webhooks, Messaging, the Evidence
    OID4VCI configuration, Coordinator outbound, external command, decision and
    token calls, Adapter signed event destinations, and Adapter source checks,
    engine data and token egress choose
    outbound transport through the shared selector. Coordinator plain HTTP stays
    limited to numeric loopback, and Adapter sources stay HTTPS or loopback
    only.
  • Managed journeys count first-hour reader steps, Messaging writes startup-read
    receipts, and Casework names a missing scope in its diagnostics. The
    first-hour targets are not met (#2902).
  • The configuration conventions list retired spellings once. The convention
    lint and the docs vocabulary check refuse them in format files and pages,
    outside migration notes. Retired Evidence and Casework terminology fails on
    every page.
  • The token conformance corpus adds the BReg Review sign-in callback in both
    postures. It also asserts the Coordinator ID-token cells as refusals in both
    postures.

Other changes

  • The hosted strict configuration conformance matrix passed the required BReg
    warning and duplicate-key cases (#2880).
  • The first BReg tutorial now uses the dev.yaml and dev-journeys.yaml
    that rstack breg init writes, without replacing them. A tutorial that
    previews a business registration service from BReg Start follows after this
    release is published and verified.
  • Fresh Scheduling starters take their dates from initialisation, so starters
    and examples stay usable after their fixture dates.
  • The generated Casework starter keeps its files, and the tutorial staffs the
    starter queue through the administrator bootstrap.
  • The configuration reference has a generated lookup table for posture
    diagnostic codes.
  • BReg names the replacement when it refuses a retired import, ingestion or
    batch record key.
  • Exported problem codes follow one grammar, and the identifier catalogue
    refuses a malformed code.
  • OpenAPI problem responses declare the development diagnostic member on
    each response where a product returns it in development.
  • bregctl, caseworkctl and evidencectl name production closure checks
    the same way.
  • Coordinator client refusals name the Idempotency-Key header.
  • A scheduled and opt-in CI job runs the TypeScript live suite under Node,
    Deno and Chromium against products built from source. A check refuses
    unpublished route parameter names before publication.
  • The hosted TypeScript client gate ran the installed medical-renewal,
    business-registration and permit-review previews in Chromium. The BReg
    ingestion client also preserves its item filters and limit when following
    a pagination cursor.
  • The developer guide explains when a service needs a Coordinator flow and
    when a service function is enough.

Not built in this release

  • Applicant flows (#2800, #2801, #2802) and organisation stewardship (#2839,
    #2861, #2867, #2868). They move to v0.52.0.
  • The holder binding in the shipped business-registration reference host
    (#2910). The binding, its export and the native fixture ship in this
    release. The operated browser, Session and gateway path ran only on a proof
    overlay of the reference host.
  • A managed preview that serves a service through Registry Session. The route
    inventory and Envoy configuration are built, and the managed preview still
    refuses a service with Session.
  • The remainder of the onboarding first-hour work, moved to v0.52.0 (#2902).
    The first-hour targets are not met.
  • A hosted CI job for the reference host, release-candidate smoke wiring,
    published Session and Coordinator container images, and an rstack dev
    route-parity test. They move to v0.52.0.
  • A reference host variant where one Session sign-in reaches both BReg and
    Casework, gated in CI (#2918). It moves to v0.52.0.
  • A service preview that declares no functions, for example a page that calls
    a BReg Action directly. It cannot start yet (#2917, v0.52.0).
  • The remaining outbound transport migrations to the shared selector (#2817).
  • Generated clients called against running products across every product and
    Chromium, and a generated MCP client (#2822).
  • A failed check required at compile time in every product (#2824).
  • Credential comparison for a function host configured as
    type: external-http is planned for v0.52.0. Bind every function host as
    type: service-function and give it a dedicated credential. That binding
    already checks for shared credentials.
  • A maintained package-diff test for a widened read-path ceiling, and a
    visible diff when a ceiling is adopted with an unchanged effective grant.
    They are tracked for v0.52.0.

Not verified end to end

  • The real numbered install of registry-session on Linux arm64 and macOS
    arm64. The release tooling covers both paths only with fixtures.
  • The paired preview and production business-registration run with published
    assets. The two postures were exercised outside CI with source-built tools.
  • The two-audience Session sign-in on the reference host. It was shown once
    outside CI (#2918).
  • The managed Scheduling leg in CI (#2898).
  • The full TypeScript live run and the full Evidence gate in CI.
  • The public-document path for a static JWKS in a running Messaging process.
    Messaging reads it after the database connects, so unit and filesystem tests
    cover it.
  • The operated holder-authorized Action path on the shipped reference host
    (#2835, #2910). The browser, Session, private gateway and preparation path
    ran only on a proof overlay of the reference host (38 cases), not on the
    shipped recipe.
  • The native Messaging owner check in CI. It runs only as an opt-in test and is
    tracked for v0.52.0.
  • The BReg Review sign-in callback in a browser over TLS. The corpus harness
    runs over loopback and does not independently verify PKCE, client
    assertions or live issuer interoperability.
  • bregctl plan and apply over an active package that still uses the
    earlier Action Plan spelling, and package bytes from a real earlier release
    through the predecessor path. Tests stop at check of the successor and use
    a current package resealed with the earlier spelling.
  • The first tutorial timed on a clean Mac (#2873). It does not gate this
    release and has not run.
  • The first-hour targets (#2902). In the managed journeys, the nine protected
    products reach their first authenticated read within the measured first
    limit. No product has a complete first-hour verdict.

Release sources

This release follows v0.50.0.
Integration pull request #2938.
Compare the tagged release sources.