Expand description
The verified cache-consumption chain stow-build reuses (stow#299).
Signed index fetch, digest-checked bundle download, cosign verification
and artifact injection — one implementation for the user CLI and the
trusted builder alike.
The verified cache-consumption machinery stow-build reuses: the same
signed-index → digest-check → cosign-verify → inject chain the user CLI
runs, as a narrow facade over the CLI’s internal modules. One
implementation serves both callers, so the builder cannot drift from the
verification a stranger’s machine gets.
Structs§
- Consume
Config - The edge/registry/verify-mode configuration the consumption path loads the same way the CLI does — opaque so the builder goes through the same entry points a user invocation would.
- Index
Slice - A verified index slice: the decoded rows plus the manifest digest that carried them, so callers can report what they resolved against.
- Served
Bundle - A verified published bundle staged for a build task’s sandbox, with the two identity fields the capture wrapper cross-checks before injecting.
Enums§
- Stage
Failure - Why a row the signed index names could not be staged.
Functions§
- ensure_
slice - Pull and signature-verify the index slice for
(target, rustc_version)— the same fetch the resolver runs before any lookup. - load_
served_ bundle - Load a bundle
stage_verified_bundlestaged understore_dir, when the entry exists and parses — a miss is exactly a cold cache and the calling unit compiles. - serve_
bundle_ outputs - Inject a served bundle’s outputs as the artifacts
parsedrequested — the same write the user’s wrapper performs on a cache hit. - stage_
verified_ bundle - Download, digest-check, cosign-verify and stage the bundle
rownames underentry_dir, for the build sandbox’s read-only grant.