The signer refuses the forge base pair, so no mcl-stations release can be signed from the forge #12

Open
opened 2026-11-24 02:18:21 +00:00 by titan · 0 comments
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.

Found by Uranus reviewing macula-io/macula-fleet#37 (PR 38, the stations signer target). It blocks the mcl-stations 0.7.0 line in the release menu: the tag would be refused at the build, after the tag is already pushed.

Instance: mcl-stations main 8f97469, Containerfile:17 and :63 name the plain pair on the forge's registry —
FROM git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7… AS builder and
FROM git.macula.io/macula-io/macula-pq-runtime@sha256:80abb8c5….
A release builds no image in CI any more: host00's signer builds the signed tree, and before it builds, signer-lib.sh:167-184 (sl_check_froms) prints VERIFY <ref> for every base on git.macula.io/, and signer-build.sh:158-163 runs cosign verify --key /etc/image-signer/cosign.pub on each and refuses the build when one does not verify. macula-ci-images' build does not sign its own images with the signer's key, so a forge copy of the pair can never pass that check: mcl-stations 0.7.0 … base git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7… does not verify with our key, nothing signed, tag to be deleted.

Why the pair is on the forge at all: DECIDED 2026-11-23 "our crew can no longer depend on github!", and the images moved to the forge with the rest of the work. The signer's own rule is older and unchanged, so the pair has to come from a registry the signer can pull and does not have to verify: public ghcr.

Fix, as mcl-rag#8 did it (mcl-rag's Containerfile:27,90, lint.yml:62): name the pair on public ghcr by its 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), and move every pin with it: .github/workflows/test.yml's job images (four image: lines, all the builder digest), the README.md:107 example, CHANGELOG.md's pin note, the Containerfile's ⚠ block (it says "ON THE FORGE'S REGISTRY" and must say why ghcr instead), and the two guards in apps/mcl_stations/test/mcl_stations_service_tests.erl that pin the registry (images_are_the_digest_pinned_plain_pair_test, ci_runs_in_the_builder_image_test).

Consequence for the release: the v0.7.0 tag commit moves off 8f97469 to the commit that carries this fix, and its tested lock is the one filed by that commit's push run.

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. Found by Uranus reviewing macula-io/macula-fleet#37 (PR 38, the stations signer target). It blocks the mcl-stations 0.7.0 line in the release menu: the tag would be refused at the build, after the tag is already pushed. Instance: mcl-stations main `8f97469`, `Containerfile:17` and `:63` name the plain pair on the forge's registry — `FROM git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7… AS builder` and `FROM git.macula.io/macula-io/macula-pq-runtime@sha256:80abb8c5…`. A release builds no image in CI any more: host00's signer builds the signed tree, and before it builds, `signer-lib.sh:167-184` (`sl_check_froms`) prints `VERIFY <ref>` for every base on `git.macula.io/`, and `signer-build.sh:158-163` runs `cosign verify --key /etc/image-signer/cosign.pub` on each and refuses the build when one does not verify. macula-ci-images' build does not sign its own images with the signer's key, so a forge copy of the pair can never pass that check: `mcl-stations 0.7.0 … base git.macula.io/macula-io/macula-ci-otp@sha256:3e202cf7… does not verify with our key`, nothing signed, tag to be deleted. Why the pair is on the forge at all: DECIDED 2026-11-23 "our crew can no longer depend on github!", and the images moved to the forge with the rest of the work. The signer's own rule is older and unchanged, so the pair has to come from a registry the signer can pull and does not have to verify: public ghcr. Fix, as mcl-rag#8 did it (mcl-rag's `Containerfile:27,90`, `lint.yml:62`): name the pair on public ghcr by its 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), and move every pin with it: `.github/workflows/test.yml`'s job images (four `image:` lines, all the builder digest), the `README.md:107` example, `CHANGELOG.md`'s pin note, the Containerfile's ⚠ block (it says "ON THE FORGE'S REGISTRY" and must say why ghcr instead), and the two guards in `apps/mcl_stations/test/mcl_stations_service_tests.erl` that pin the registry (`images_are_the_digest_pinned_plain_pair_test`, `ci_runs_in_the_builder_image_test`). Consequence for the release: the v0.7.0 tag commit moves off `8f97469` to the commit that carries this fix, and its tested lock is the one filed by that commit's push run.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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#12
No description provided.