The image pair is named on public ghcr, by dated tag and digest #13

Closed
titan wants to merge 0 commits from titan/12-base-pair into main
Member

Purpose (bug): mcl-stations can be released from the forge — its Containerfile names a base pair host00's image signer accepts, so the first forge tag builds and signs.

What changed, as mcl-rag#8 did it:

  • Containerfile:17,66: the pair is named on public ghcr, by dated tag AND digest — ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da3146… (builder) and ghcr.io/macula-io/macula-pq-runtime:20261120-1240@sha256:06fe4ae6… (runtime). The ⚠ block now says why ghcr and not the forge registry, and the stale "their tags move daily; the digests are what build" line goes.
  • .github/workflows/test.yml: all four image pins move with it (check, hand-lock, lock-arrives, the advisories call), and the three forge pull credentials go with the move — ghcr is public, so the pull needs none. The header note gains one line so "no registry push" is not read as "no ghcr".
  • README.md: the podman run example loses -e CI_IMAGE_PULL_* and names the ghcr pin; the paragraph that follows says why.
  • CHANGELOG.md: the 0.7.0 bullets no longer claim the forge registry or "no ghcr", and name #12.
  • apps/mcl_stations/test/mcl_stations_service_tests.erl: images_are_the_digest_pinned_plain_pair_test becomes images_are_the_dated_and_digest_pinned_plain_pair_test (ghcr form, the dated tag read, the two halves held to one tag), and no_registry_push_and_no_marketplace_action_test stops forbidding every ghcr.io — a base is pulled, not pushed — while push: true, the docker/* actions and uses: actions/ stay forbidden.

Proof, all in the pinned builder image (ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da3146…, --userns=keep-id), 28/28:

  • rebar3 eunit --module=mcl_stations_service_tests → All 28 tests passed.
  • Mutants, each killed: the runtime base put back on the forge registry → the pair test fails (1); the check job's image digest off by one → the pair test and ci_runs_in_the_builder_image_test fail (2); push: true added to test.yml → the no-push guard fails (1). Files restored after each.

Not proved here: the signer's own cosign verify against the real /etc/image-signer — that runs on host00 when the target is installed (macula-io/macula-fleet#37).

The v0.7.0 tag commit moves off 8f97469 to this one, and its tested lock must be the one this commit's push run files.

Refs #12

Purpose (bug): mcl-stations can be released from the forge — its Containerfile names a base pair host00's image signer accepts, so the first forge tag builds and signs. What changed, as mcl-rag#8 did it: - `Containerfile:17,66`: the pair is named on public ghcr, by dated tag AND digest — `ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da3146…` (builder) and `ghcr.io/macula-io/macula-pq-runtime:20261120-1240@sha256:06fe4ae6…` (runtime). The ⚠ block now says why ghcr and not the forge registry, and the stale "their tags move daily; the digests are what build" line goes. - `.github/workflows/test.yml`: all four image pins move with it (check, hand-lock, lock-arrives, the advisories call), and the three forge pull credentials go with the move — ghcr is public, so the pull needs none. The header note gains one line so "no registry push" is not read as "no ghcr". - `README.md`: the `podman run` example loses `-e CI_IMAGE_PULL_*` and names the ghcr pin; the paragraph that follows says why. - `CHANGELOG.md`: the 0.7.0 bullets no longer claim the forge registry or "no ghcr", and name #12. - `apps/mcl_stations/test/mcl_stations_service_tests.erl`: `images_are_the_digest_pinned_plain_pair_test` becomes `images_are_the_dated_and_digest_pinned_plain_pair_test` (ghcr form, the dated tag read, the two halves held to one tag), and `no_registry_push_and_no_marketplace_action_test` stops forbidding every `ghcr.io` — a base is pulled, not pushed — while `push: true`, the docker/* actions and `uses: actions/` stay forbidden. Proof, all in the pinned builder image (`ghcr.io/macula-io/macula-ci-otp:20261120-1240@sha256:39da3146…`, `--userns=keep-id`), 28/28: - `rebar3 eunit --module=mcl_stations_service_tests` → All 28 tests passed. - Mutants, each killed: the runtime base put back on the forge registry → the pair test fails (1); the check job's image digest off by one → the pair test and `ci_runs_in_the_builder_image_test` fail (2); `push: true` added to test.yml → the no-push guard fails (1). Files restored after each. Not proved here: the signer's own cosign verify against the real `/etc/image-signer` — that runs on host00 when the target is installed (macula-io/macula-fleet#37). The v0.7.0 tag commit moves off `8f97469` to this one, and its tested lock must be the one this commit's push run files. Refs #12
The image pair is named on public ghcr, by dated tag and digest
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 4s
Test / guard (pull_request) Successful in 0s
Test / erlang in . (pull_request) Has been skipped
Test / erlang in . (container) (pull_request) Successful in 12s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m15s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s
2b4ffdf1a6
host00's image signer builds this Containerfile (macula-io/macula-fleet) and
refuses a `git.macula.io/' base that does not cosign-verify with its key
(signer-lib.sh sl_check_froms, signer-build.sh). macula-ci-images' build does
not sign the images it publishes, so the forge copy of the plain pair could
never pass there and the signer's build would stop at the first FROM: no
mcl-stations release could be signed from the forge
(macula-services/mcl-stations#12, found by Uranus reviewing
macula-io/macula-fleet#37).

The pair is public on ghcr, so the signer pulls it with no registry login. Both
halves are named by their dated tag as well as their digest: the tag names the
publication, the digest is what builds. It is the same toolchain (published
2026-11-04: OTP 28.4.3 on Debian trixie with ML-DSA, rebar3 3.27.0, Rust
1.98.1).

test.yml runs in exactly that builder, so it drops the forge pull credential
with the move. The pin guard now reads the dated tag too and holds the two
halves to one publication; the no-push guard stops counting a base pulled from
ghcr as a push, and still fails `push: true` and any docker/* or marketplace
action.
Member

Landed by hand as 88e41b6f23 (--no-ff, gated).

Landed by hand as 88e41b6f23a285bc8d4243ddee48605d5b76b1f6 (--no-ff, gated).
terra closed this pull request 2026-11-24 03:07:23 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 4s
Test / guard (pull_request) Successful in 0s
Test / erlang in . (pull_request) Has been skipped
Test / erlang in . (container) (pull_request) Successful in 12s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m15s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-stations!13
No description provided.