Skip to content

Tenant-side materialization

Turning a project's pinned recipe into bytes a kernel can run needs three things the control plane is kept away from: your artifact bytes, your registry and source credentials, and a place to put the result. All three are on the node's side, so every step in this section runs there, and the control plane receives signed evidence about the result rather than the result itself. This page covers what each step uses on your side, what crosses to the control plane, and the key the node signs its evidence with.

For the control plane's side of the same boundary, see Byte-free recipes and The tenant byte rule.

What stays and what crosses

flowchart TB
  subgraph CP["CONTROL PLANE"]
    direction LR
    IN[("Sealed inputs<br/>references, digests, policy, fences")]
    AD{{"Admission<br/>verifies signatures and digests"}}
    REG1[("Registered signing identity<br/>per node")]
    REG1 --> AD
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    subgraph NODE["NODE"]
      direction LR
      WK["Stages and builders"]
      KEY[("Evidence signing key<br/>in process memory")]
      ID["Infrastructure identity<br/>build workload"]
      CS[("Content store")]
    end
    RG[("Your registry")]
    SR[("Approved dependency sources")]
    NS["Build namespace"]
    ID -->|"short-lived credentials"| RG
    WK --> RG
    WK --> SR
    WK --> NS
    WK --> CS
  end
  IN -->|"assignments"| WK
  WK -->|"evidence: digests and a signature"| AD
  KEY -.->|"public key at registration"| REG1

The inputs the control plane sends are references and digests, and what comes back is evidence carrying digests and a signature. Credentials are issued to the node's own workload inside your infrastructure, and the bytes stay in your registry and on the node.

Each step

Step Uses on your side Crosses to the control plane
Foundation resolution Registry metadata, read with the node's identity The resolved foundation digest and metadata digests, signed
Closure resolution Approved sources for observation; the component builder The closure, its views and candidate accounting as digests and documents, signed
Component build Artifact bytes from approved sources; blob upload to your registry The component's immutable reference, inventory and provenance digest, attested
Foundation build Observations of the rootfs and component store The manifest, inventory, SBOM and provenance digests, signed
Materialization Blob fetch from your registry; the content store The materialization evidence, signed, and the assignment handoff
Image build The build namespace, the build service account, your registry The image reference, digest and SBOM reference

The control plane admits each answer by checking signatures and digests against what it sealed. A foundation assignment that carries a credential or artifact bytes is refused on the node. See Foundation reference resolution.

The evidence signing key

Every stage's evidence is signed by the node that produced it:

Property Value
Algorithm Ed25519
Signer identity spiffe://xratu/data-plane/<dataplane_uuid>/runtime-closure-evidence
Key id ed25519: followed by the SHA-256 of the public key
Lifetime Generated when xratud starts, held in memory for the process
Registration The public key and identity are sent with the node's registration

The control plane verifies each stage's signature against the identity the node registered, and refuses evidence whose signature does not verify with RUNTIME_CLOSURE_EVIDENCE_SIGNATURE_INVALID. The node signs only under its registered identity; a request to sign under another fails with evidence_signing_identity_mismatch.

A restarted xratud generates a new key and registers it, so evidence it signs afterwards verifies against the new registration. A stage that was running when the process stopped is issued again once its lease lapses. See Registration and heartbeat emit.

What this gives each deployment

A hosted control plane, a self-hosted one and an air-gapped node run the same steps: the control plane's inputs and the node's evidence are documents, and the bytes and credentials were already on your side. An air-gapped node reaches its registry and approved sources inside its own network and exchanges only documents with the control plane.