Tenant artifact runtime¶
A node publishes to and fetches from one registry: the registry your infrastructure team declared when the data plane was installed. The tenant artifact runtime is that declaration as the node holds it, a registry endpoint and a repository root, and every registry operation on the node is checked against it before a request is made. This page covers where the node gets it, what each operation checks against it, and how the node authenticates to the registry it names.
For how the control plane resolves the same declaration into build and publish assignments, see Tenant artifact runtime on the control plane side.
Where it comes from and what it scopes¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
BC[("Active data plane bootstrap contract<br/>spec.artifact_registry.path")]
BA[("Build and publish assignments<br/>their own copy in each contract")]
end
subgraph NODE["NODE"]
direction TB
subgraph VOL["/var/lib/xratu/identity"]
direction TB
RC[("xratud.runtime.cache.json")]
end
TAR{{"Tenant artifact runtime<br/>endpoint, repository_root"}}
subgraph OPS["REGISTRY OPERATIONS"]
direction LR
F["Closure blob fetch"]
U["Component upload"]
P["Build publish check"]
L["Build pull contract"]
end
II["Infrastructure identity<br/>build workload"]
TAR --> F
TAR --> U
RC -.->|"when the control plane<br/>is unreachable at start"| TAR
end
REG[("Your registry<br/>endpoint/repository_root")]
BC -->|"read at start"| TAR
TAR -->|"saved"| RC
BA --> P
BA --> L
II -->|"authorization headers"| REG
OPS ==> REG
The node reads the declaration from the control plane when xratud starts and
saves it with the rest of its runtime configuration on the node's volume. A
closure fetch and a component upload use the node's own copy; a build's pull
and publish checks use the copy the control plane placed in the build's
contracts, resolved from the same declaration. Both copies name the same
registry.
The resolved runtime¶
spec.artifact_registry.path is split at its first /:
| Field | Holds | Example |
|---|---|---|
endpoint |
The registry host, lowercased | us-docker.pkg.dev |
repository_root |
Everything after the host, without leading or trailing / |
acme-prod/xratu |
contract_version |
build.tenant_artifact_runtime.v1 |
The example resolves from a Google Artifact Registry path,
us-docker.pkg.dev/acme-prod/xratu. The path shapes for each cloud are on
Registry and bucket schemes.
A node whose active bootstrap contract lacks a usable path stops at start with:
When the control plane is unreachable at start, the node starts from its saved runtime configuration, which carries the tenant artifact runtime from the last successful start. When neither source loads, the node retries with a backoff that starts at 1 second and doubles to 30 seconds, and logs each attempt:
[xratud] bootstrap reconcile retry attempt=3 delay_seconds=4.0 load_error=bootstrap dataplane contract requires spec.artifact_registry.path for xratud runtime cache_error=...
What each operation checks¶
| Operation | Checked against the runtime | Refused with |
|---|---|---|
| Closure blob fetch | Scheme oci, host equals endpoint, repository at or below repository_root |
immutable artifact reference is outside the tenant registry endpoint or ... outside the tenant repository root |
| Dependency component upload | Written to <repository_root>/xck/dependency-components/<hex> on endpoint |
|
| Build publish check | Source and output host equal endpoint, output repository at or below repository_root |
publish_registry_forbidden, publish_output_invalid |
| Build pull contract | endpoint and repository_root present |
tenant_artifact_runtime_invalid |
A reference outside your registry is refused on the node, before any
credential is requested. A closure fetch refused this way reports
RUNTIME_CLOSURE_ARTIFACT_FETCH_FAILED with that message in its detail.
Authenticating to the registry¶
The node obtains registry credentials per operation. For each one it asks its
infrastructure identity for authorization to endpoint and
repository_root, as the build workload, and your cloud provider issues
short-lived credentials for that workload. The headers are attached to the
request and discarded after it. See
Infrastructure identity.
When authorization fails, the operation fails before it reaches the registry:
Both report runtime_artifact_registry_auth_refused. Check that the build
workload's identity holds read and write access to the repository root on your
registry.