Skip to content

XSRP resolution

XSRP, the Xratu Secret Resolution Protocol, is how a node asks the XSRP gateway in its data plane installation for a credential. The node sends its identity and its permission for the work; the gateway checks both, fetches the credential and returns it with a signed receipt. Besides handing over a credential, XSRP can have the gateway sign something, call an API with the credential attached, or open a connection, so the credential stays inside the gateway and manager boundary. This page covers one request, the kinds of request, which version of a credential you get, and what can go wrong.

One request

flowchart TB
  subgraph CP["XRATU CONTROL PLANE"]
    direction LR
    XR["Permission and use reservation"]
    REC[("Fetch records")]
  end
  subgraph DPI["DATA PLANE INSTALLATION"]
    direction TB
    RES["Resolver"]
    GW["XSRP gateway"]
    KRN["Kernel<br/>the block that asked"]
  end
  subgraph YOU["YOUR NETWORK"]
    direction TB
    IDP["Your identity provider"]
    MGR[("Secret manager")]
  end
  IDP -->|"1. node identity"| RES
  RES -->|"2. identity and permission"| GW
  GW -->|"3. authorize and reserve once"| XR
  GW -->|"4. fetch"| MGR
  GW -->|"5. result and signed receipt"| RES
  RES -->|"6. result"| KRN
  RES -->|"7. record"| REC

Kinds of request

Kind Result form
material The credential itself, once
sign A signature or signed token; the key stays in your key service
authorize_request The response from an API the gateway called with the credential attached
connect An open connection to a database or service, which the block cannot copy out

XSRP defines all four kinds. An integration advertises a kind only when its manager adapter and the calling runtime both supply that exact operation. Project materialization supplies material. sign, authorize_request and connect require invocation input from the kernel-owned continuation and stay unavailable to a project until that continuation and the selected adapter admit them. Each use in a project is limited to one kind, set when the project is deployed. A request for another kind, destination or algorithm is refused. A signing request returns only the signature or signed token.

Which version you get

The binding's versionPolicy.mode decides. With exact, always the named version. With currentAtFirstResolution, the version current at the first fetch, repeated for every retry of that work. With renewableCurrent, the current version, moving to a new one only when the permission is renewed. The fetch record shows which version was used.

What can go wrong

Symptom in the fetch record Cause Fix
Identity refused The resolver identity is missing or rejected by its local gateway Check the resolver identity and the data plane installation's gateway health
Permission refused The permission expired, was revoked, or the work moved Inspect the work state; a moved assignment receives a new permission at its destination gateway
Outside the permission The request asked for a different credential, kind or destination Check the project's mapping and the binding's allowed uses
XSRP gateway unreachable The resolver cannot reach the logical gateway in its installation Check the XSRP gateway workload and its local Service; after the health grace, the installation becomes unavailable and ordinary ownership transfer gives the work a new gateway-bound permission
Permission check unavailable The gateway cannot reach Xratu to reserve a new use Restore connectivity; bounded-offline mode can recover or replay only an operation whose exact reservation and signed assertion were retained before the outage
Manager error The gateway's manager identity or private route, or the manager itself Check the admitted gateway identity, the manager route and the manager's health
Replayed request The same request was sent again Handled: the XSRP gateway returns the first answer without fetching again
Outcome unknown The manager may have completed an operation before the gateway recorded its result Keep the operation in recovery; manager reconciliation must prove the outcome before any repeat or destination-gateway continuation

Every failure is recorded with its reason. A failed fetch never returns an empty value, a cached old result or a credential from somewhere else. If the resolver or gateway stops mid-fetch, no credential material is written to durable storage. The retry uses the same permission and request identity. The gateway either returns the recorded outcome, safely reconciles the manager operation, or reports that the outcome requires recovery.

A gateway-signed refusal or unknown effect is retained through the same metadata-only evidence path as a success before the data plane reports the failure. A control-plane evidence outage does not turn that signed fact into a repeat manager operation and does not substitute an empty result.

A failed replica is replaced locally while the logical gateway remains ready. If the logical gateway is unavailable beyond the installation's health grace, the whole installation becomes unavailable: the control plane fences the old owner and transfers work through the ordinary assignment and runtime-ownership paths while the installation reconciler restores the gateway. The new owner receives a new gateway-specific permission. The returning old gateway's previous permission stays fenced.

A manager, adapter or integration-specific identity outage leaves general data plane health unchanged. The affected request retries or refuses according to its integration policy. An unknown manager effect blocks repetition of that effect on the destination gateway while ownership transfer and other work proceed. Work that already received its resolved result follows the existing runtime rules.