Artifact registry and blob references¶
Published blocks are stored in your organization's own artifact registry, in your own cloud account: Amazon ECR, Google Artifact Registry or Azure Container Registry. Access to it stays with your organization. Your data plane, running in your environment under its own workload identity, obtains every registry credential from your cloud provider, and Xratu holds none.
How a release reaches your registry¶
Uploads use ASPTC, actor-scoped provider transfer credentials. An ASPTC is issued by your cloud provider, for one transfer, on behalf of the person publishing, and is short-lived. How one is issued, and what each cloud provides, is on the ASPTC page; the security properties it enforces are in ASPTC in data plane trust.
sequenceDiagram
participant CLI as xratu publish
participant CP as Control plane
participant DP as Your data plane
participant IAM as Your cloud provider
participant REG as Your artifact registry
CLI->>CP: publish request, with the archive's digest and size
Note over CP: authorizes the publisher, binds the operation
DP->>CP: pulls the stage assignment
DP->>IAM: requests an ASPTC for this one upload
IAM-->>DP: short-lived, provider-issued credential
DP->>CP: credential, encrypted to the CLI's session key
CP->>CLI: encrypted credential
CLI->>REG: uploads the package archive
DP->>REG: verifies the upload, writes the release artifact
- The control plane authorizes. It checks that the publisher may publish to the workspace, and binds the publication to the publisher, the workspace, the package, the release, and the archive's exact digest and size.
- Your data plane requests the credential. It pulls the stage assignment and asks your cloud provider, with its own workload identity, for a credential to that release's repository, bound by Xratu to that one upload. On AWS this is an ECR authorization token through STS, on Google Cloud an Artifact Registry token through IAM credentials, and on Azure an ACR token through Entra.
- The credential is checked and sealed. Xratu accepts it only when it is provider-issued, carries the provider's provenance, scope and audit claims, names the publisher, organization and workspace, and matches the exact digest and size. It is then encrypted to the session key of the CLI that started the publish.
- The CLI uploads. The CLI decrypts the credential locally and uploads the package archive directly to your artifact registry.
- Your data plane finalizes. It verifies the uploaded archive in the registry against the bound digest and size, and writes the release artifact.
The control plane keeps only descriptive metadata about the credential: its provider, issuer, subject, scope and fingerprint. The archive never passes through it.
Where a release is stored¶
Each release has its own repository under your registry's root:
The package archive is stored there by its SHA-256, alongside the release artifact your data plane writes when it finalizes the publication.
The artifact reference¶
A release records where its archive is, by registry, repository and digest:
| Field | Holds |
|---|---|
endpoint |
Your registry host |
repository_root |
Your organization's root repository |
repository |
This release's repository |
content_sha256 |
The archive's SHA-256 |
size_bytes |
The archive's size |
At run time, a capsule's immutable runtime artifact points at the archive by an
immutable reference ending in @sha256:<digest>. Your data plane fetches it
from your registry with its own identity and checks the digest before opening
it. See Immutable runtime artifacts.