Skip to content

Payload access and transport profiles

Bodies live in your storage, so reading one back is a governed request rather than a database read. The transport profile says where bodies go; payload access says how one is retrieved.

The transport profile

default mode    object_store
allowed modes   object_store, or unset

One mode is supported, and the unset case resolves to it. Payload bodies go to object storage, and that is the only destination the mode set offers.

The provider is identified by the scheme on the reference rather than by a separate field:

s3://       s3
gcs://      gcs
azblob://   azure_blob
minio://    minio

Carrying the provider in the scheme means a reference cannot disagree with itself about where it points.

Payload access is three contracts

control_plane.observability.payload_access.operation.v1    the request
control_plane.observability.payload_access.assignment.v1   what the node is asked to do
control_plane.observability.payload_access.control.v1      the control task

Reading a body is therefore an assignment like any other work, performed by a node, with the control plane recording the request and the outcome.

The marker names exactly one record

A request carries a marker whose action is download and whose locator fields are fixed per record kind:

Record kind Locator
service_log log_id
history_event event_id
run_event run_id, seq
audit_record record_id

A marker for a target outside that set is refused with unsupported observability payload-access marker target. The locator is fixed rather than free-form, so a request names one record and cannot be widened into a scan.

The node answers with a scoped credential

flowchart LR
  subgraph RQ["REQUESTER"]
    direction TB
    SK[("Session private key")]
  end
  subgraph CP["CONTROL PLANE"]
    direction TB
    MK{{"Marker validated<br/>record kind, locator"}}
    SC[("Sanitized contract<br/>empty download_url")]
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    N["xratud<br/>mints bucket-profile ASPTC"]
    OBJ[("One bucket object")]
  end
  RQ -->|"marker"| MK
  MK -->|"payload access assignment"| N
  N -->|"ciphertext, sanitized contract"| SC
  SC -->|"ciphertext"| RQ
  RQ ==>|"GET, 300 seconds"| OBJ

The control plane box holds the record of the access and never the means: its contract carries an empty download_url, and the key that opens the credential is in the requester's box.

The credential is bound to the actor context, expires in 300 seconds, is checked against the request that asked for it, and is encrypted to the requesting session's public key. One object, read-only.

The sanitized copy the control plane keeps carries the object's identity, its digest and its size, with an empty download URL and no required headers. The record of the access is complete; the means of access is not. See The tenant byte rule.

It is an operation, watched like any other

Payload access runs on the operation event stream as its own family, so the requester follows events rather than polling. See Async operations.