Publication attestation and signing¶
When a block is published, the control plane signs a publication attestation for its capsule: a statement that ties the capsule to the exact manifest, file tree and archive blob that were released. Data plane nodes check the signature before they open the capsule, so a capsule runs only as it was published.
The control plane signs digests it receives in the release metadata. It works from metadata alone; the code and the archive stay in your registry.
What the attestation binds¶
The publication: the workspace, the package and the release version.
The capsule:
- the block id and the capsule digest;
- the capsule manifest's digest;
- the digest of the capsule's file tree;
- the archive's blob digest, the SHA-256 of the uploaded archive;
- the executable surface index's digest;
- the digest of the capsule's provenance record.
It also names the signer: its identity and key id.
How it is signed¶
The control plane holds a registered capsule publication signer and signs each attestation with Ed25519. The signer is registered once, and the data plane checks attestations against that registration.
The capsule manifest itself carries no signature. Bake produces it keyless, and a manifest with a signature is refused:
an execution capsule manifest is keyless bake output; publication authentication belongs to CapsulePublicationAttestationV1
How it is checked¶
When a data plane node materializes a closure, it checks the capsule's attestation before running anything:
- the signature verifies against the registered signer;
- the signed manifest digest matches the manifest it received;
- after opening the archive, the opened files match the signed file-tree digest.
A capsule that fails the signature or manifest check is refused with
RUNTIME_CLOSURE_ARTIFACT_SIGNATURE_INVALID, and one whose opened files differ
from the signed tree with RUNTIME_CLOSURE_ARTIFACT_OPEN_FAILED. Either way it
never reaches a cell. See
Capsule publication verification and
Closure artifact sets and materialization.