Immutable runtime artifacts¶
An immutable runtime artifact is a published, content-addressed artifact that a data plane node fetches, verifies and runs from. It is stored once in an artifact registry, named by its digest, and never changes after it is published. Every execution capsule in a published release is one.
The four kinds¶
A cell runs from four kinds of immutable runtime artifact:
- Execution capsule: a block's capsule, published with its package.
- Runtime foundation rootfs: the base image a project runs on.
- Runtime provider: the provider build, such as CPython, that runs the code.
- Dependency component: a component built for a closure.
The artifacts a closure needs form its artifact set. See Closure artifact sets and materialization.
How a capsule is referenced¶
Each artifact is referenced by what it contains and by the bytes that are stored:
| Field | For the ledger capsule |
|---|---|
artifact_role |
execution_capsule |
content_digest |
The capsule digest, sha256:40e4f710… |
blob_digest |
The digest of the stored package archive |
immutable_reference |
The registry reference, ending in @<blob_digest> |
publication_digest |
The publication it belongs to |
publication_attestation |
The control plane's signed statement for this capsule |
The capsule's blob_digest names the stored package archive, and its
content_digest is the capsule digest.
The publication attestation¶
At publish, the control plane signs a statement for each capsule over digests it receives in the release metadata:
- the block and its capsule digest;
- the capsule manifest's digest;
- the digest of its file tree;
- the stored archive's blob digest;
- the executable surface index's digest;
- the capsule's provenance.
The control plane signs digests only. The archive and its code stay in your artifact registry, where the data plane fetches them.
Verification before anything runs¶
A data plane node fetches the archive, checks its blob digest, checks the signature, opens it, and checks the opened files against the signed file tree. Any mismatch refuses the capsule before a cell starts. The kernel then opens the capsule again and checks it once more. See Verified closure view.