Repository navigation
Description
Parent spike: #1769. Research the 2026 best practice for publishing OCI container images (GHCR first) and decide what devkit manages for consumers.
Motivation / why
devkit's own release already does the 2026 bar for its image — cosign keyless signing, SPDX SBOM, build-provenance attestation, RC cleanup (ghcr-cleanup.yml) — but consumers get only a minimal "GHCR Publishing" example in docs/DOWNSTREAM_RELEASE.md. Every consumer that ships an image re-derives what upstream already solved.
Proposed approach (strawman)
- Extract the upstream image publish logic into a managed consumer lane: build (project recipe: Dockerfile/Buildah or nix
dockerTools), push by digest in the pre-publish window, cosign sign + SBOM + provenance attest, then move floating tags (X,X.Y,latest) only afterrelease: published. - RC images tagged
X.Y.Z-rcN, pruned on promote (as upstream does).
What already exists
Upstream .github/workflows/release.yml (cosign, anchore SBOM, attest-build-provenance), ghcr-cleanup.yml, nix-image.yml, release-extension.yml token ceiling includes packages:write, floating tags logic (#1626).
Scope / questions
- cosign keyless vs. GitHub artifact attestations for images — both, one, which do Kubernetes admission policies (Kyverno/sigstore policy-controller) verify in 2026?
- SBOM format and attachment (OCI referrers vs. attestation predicate).
- Multi-arch: native arm64 runners vs. QEMU vs. nix — default?
- Pushing to other registries (Docker Hub, Quay, ECR) — declared mirrors or out of scope? (cf. [FEATURE] Data release lane: CalVer data artefacts on their own tag namespace, with an integrity contract and a mirror-target seam (GH Releases / HF / OCI / DOI) #1754 mirror-target seam)
- Can the upstream implementation be shared (one managed composite) without the upstream-only bits (cross-repo gate)?
Pitfalls
- Moving
latestbefore the Release is published makes an unpromoted image the default. - Package visibility/permissions on first GHCR push (org-level package settings).
- RC pruning needs package-admin rights (
docs/RELEASE_CYCLE.md"Registry and cleanup tokens").
Acceptance criteria
- Dated verdict (verified-on / verified-how) on the 2026 best practice for this channel, with primary sources (registry docs, official actions)
- Gap table: best practice vs. what devkit ships today
- Concrete split: devkit owns (managed) / devkit seeds (template) / repo owns (build recipe, registry registration)
- Prerelease policy for this channel decided
- Implementation issue(s) filed, or an explicit "won't do" with reason
References
Parent: #1769 · #1746 · #1748 · #1523 · #1519 · docs/DOWNSTREAM_RELEASE.md (on dev)
Activity
gerchowl commentedon Sep 29, 2026
Verdict
Ship both a cosign keyless signature and GitHub provenance + SBOM attestations, pushed as OCI referrers on the multi-arch digest. Kyverno and the sigstore policy-controller verify both formats.
push-to-registryhas been reported to report success without actually writing the referrer (sbomify#1530), so cosign is the backstop.Choices
anchore/sbom-action+actions/attest. Not BuildKitsbom: true: that produces index children with no OIDC signer, invisible togh attestation verify. Upstream already does this correctly.ubuntu-24.04+ubuntu-24.04-armrunners (arm64 standard runners have been in private repos since 2026-01-29), push by digest, thenimagetools create. No QEMU.latest,X,X.Y) move only afterrelease: published. Immutable Releases do not lock GHCR tags, so workflow discipline is the only enforcement.job_workflow_ref, so the reusable workflow's path becomes the verifier identity. That path is a forever contract for every admission policy.Split
ghcr-cleanup.yml, and an example admission policy.New pitfalls
docker-containerdriver; the classic store drops them silently.attestations: write+artifact-metadata: write.packages: admin, notwrite.Sources: Kyverno sigstore · GH admission controller · use artifact attestations · Docker attestations · arm64 private runners · OIDC + reusable workflows
c-vigo commentedon Sep 30, 2026
Spike complete. The dated verdict is in the review above; the cross-cutting decision is recorded in
docs/rfcs/ADR-publish-lanes.md(PR #1785, merged todevas 36e74cc), per #1769's rule that the channel spikes close when the ADR lands.Implementation continues in: #1780 (OCI lane) (lane foundation: #1778).