Containers ยท provenance
Apko image builder v1
Identity: https://g5d.dev/containers/builders/apko/v1
This identity describes the containers project's trusted image-build procedure using its pinned, patched apko binary. It does not identify stock apko or imply that every apko invocation uses this system. The build-type definition specifies the emitted statement and its interpretation.
Procedure and evidence
- An authorized maintainer approves an exact containers repository commit and release plan. Public reads are available over the tailnet; executable contributors are trusted. The release controller checks the approved revision and measured input digests rather than promoting arbitrary PR outputs.
- Build from the reviewed image configuration and lockfile with the checksum-pinned custom apko. Resolve only the project's Forgejo APK repository and official Alpine repositories. Verify package/index signatures and package provenance separately; a repository allowlist alone is not signature verification.
- Measure the actual binary, configuration, lockfile and consumed APK bytes. Record their digests, the tool's upstream revision and patch set, the actual command, input-derived
SOURCE_DATE_EPOCH, and actual wall-clock build start and finish times. Test each image subject before listing it in evidence. - Generate the versioned statement from these measurements. Sign a metadata binding with the dedicated image-metadata key, separate from the Forgejo APK/index key. Attach and verify metadata by the exact tested architecture/index digest. Publishing or reassembly must not substitute a different image.
The generator is offline and deterministic. It checks structure, allowed repositories and internal consistency; it cannot independently establish that evidence describes a real execution. Truthful evidence requires the trusted measuring harness, not hand-written JSON. A coherently forged statement and evidence can agree and still be false.
Trust boundary
The observed containerized Forgejo runners execute privileged jobs, use host networking and mount a Docker socket. Containerization and workflow conditions do not isolate malicious contributors from host authority. This system relies on trusted executable contributors. PR builds are unsigned and publication-free; release workflows alone intentionally receive signing or publication credentials. Automatic runner-token permissions must be assessed separately.
The statement is unsigned until its exact bytes are bound to a subject digest by the signed OCI metadata attachment. The attachment uses DSSE with RSA PKCS#1 v1.5/SHA-256 and the dedicated public key recorded in the containers repository. Verifying that binding authenticates bytes and their asserted subject; it does not prove the build was honest, isolated, reproducible or complete.
No SLSA assurance level, track or conformance is claimed. The custom predicate uses familiar build-definition and run-details field names but is not a SLSA provenance predicate. It does not attest exhaustive host state, network access, runner configuration, every environment variable or untested architectures.
Implementation and activation
The schema and offline generator are defined in the containers image-provenance documentation. Publication of this page is not activation of production releases. The release controller and evidence capture must pass independent review and deployed fixture validation before production use; gate-5 fixture evidence must not be relabelled as production provenance.
Changes to the meaning of this builder or procedure require new versioned identities while retaining this v1 documentation. New custom predicate versions do not themselves change the underlying in-toto statement envelope version.