Forge release path: build-push publishes a signed mcl-mail image to the forge registry (realm#3 pattern) #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (release path): a v* tag of mcl-mail builds a signed image on the forge registry that the fleet can pin by digest, so the mailbox fix (#1) can reach beam02 without GitHub.
Why: today's path is all GitHub (build-push.yml → ghcr, attested → the fleet's pin-releases). GitHub is unavailable (account suspended, ghcr refuses pulls), and forge main's build-push runs 931-944 are all red. Supervisor ruling 2026-11-22: option (B), under DECIDED 2026-11-22 "images should move to forgejo". mcl-mail goes second after macula-realm, which proves the signer chain (macula-io/macula-realm#3).
Scope:
Done when:
Refs #1, macula-io/macula-realm#3.
Scratch proof: workflow_call outputs and github.workflow on Forgejo 15 (Neptunus, 2026-11-23, Mars's go)
Question: on a forge push to main lint.yml runs twice (#4), so a job that files the tested rebar.lock has to run in exactly one of them. Either (a) it lives in build-push and reads the lock through lint's
workflow_calloutputs, or (b) it stays in lint.yml, gated ongithub.workflow. Neither had been run on Forgejo 15.Proof: one orphan commit on the scratch branch
neptunus/scratch-6-wfcall, holding only a caller and a callee workflow (fd485fa, thenad5e5bad). Job logs can't be read through the API, so each answer was built as a job status. Run 2152 was green:on.workflow_call.outputs. The caller's jobread(task 3960) decodedneeds.callee.outputs.bigand failed unless its sha256 matched the callee's digest. It succeeded.github.workflowis the caller's name. Of three jobs gated on the value, onlywf-is-callerran (task 3865);wf-is-callee(3866) andwf-is-other(3867) were skipped.Run 2151 (
fd485fa) was cancelled whenad5e5badreplaced it. The scratch branch is deleted.Choice: (a). hand-lock goes in build-push.yml,
needs: test, and reads the lock lint's check job resolved and tested in that same run. So the release workflow's own test run is what files the lock. Note for #4: its fix has to keep build-push'stestjob running on the forge (dropping lint.yml's own push trigger does that; gatingtestto GitHub would remove the lock's source).Refs #6, macula-io/macula-realm#3.
Saturnus, 2026-11-23T03:54Z, box 5 precondition: beam02 is logged in to the forge as fleet-puller (Raf's autoMode rule 11).
82cae0ff5c2345d6a0ec9adc591c966a1f0768d6(PRs 3, 4 and 6 landed):image-build/fleet-puller-account.sh, sha256f5181f5a2389fc7966b993a3fa77a05b0e1dbcebe57a503142aba712e7cecf43(444,bash -nclean),FORGE_GO=fleet-puller-account … beam02 </dev/null.fleet+beam02+20261123T035445Z, scope read:package (on the box: registry 200, manifest 200, GET /user 403). On beam02: docker auths namesgit.macula.io, config mode 600, the pull ofmacula-io/macula-ci-pq@sha256:8219e637…succeeded, the probe image was left as it was (absent before), the running containers are unchanged. Backup:~/.docker/config.json.pre-fleet-puller-20261123T035445Z.Gap, not fixed: the script reads packages in macula-io only, but the mail image is
macula-services/mcl-mail, and macula-services is a private org. The registry refuses anonymous pulls there (401). On beam02,docker manifest inspect git.macula.io/macula-services/mcl-mail:0.6.1answers "no such manifest". That can mean 0.6.1 is not published yet, or that fleet-puller cannot see it, so it is not proof either way. As the script is built, box 5's pull of mcl-mail on beam02 is expected to fail until fleet-puller also has packages read in macula-services. That change goes in a NEW script (this one is frozen, and on a rerun its "no other team" check would refuse a second team).Saturnus, 2026-11-23T04:04Z, box 5 precondition, part 2: fleet-puller now also reads macula-services' packages (Supervisor GO, rules 11 and 7).
image-build/fleet-puller-services-read.shfrom forge-setup PR 7's passed headb918f1ea6cef1578bbd133f436739656884550b4(fable review r=2 PASS, Jupiter). sha256553477ef895f83f1e4a6ec3ad214dcea5d8d19116ac9babd1c059840a0cac4a0, checked before the run; 444,bash -nclean.… beam02 <ref@sha256>(pull, remove again, containers unchanged), not beside a deploy of the same image.Box 5 proof (Saturnus, 2026-11-23):
fleet-puller-services-read.sh(sha256 553477ef…) ran on beam02 forgit.macula.io/macula-services/mcl-mail:0.6.1@sha256:971e0747e63ae4bd41af24fbdfc58a072f074c2c3a1ed3a5644c0c6f3637dd08and exited 0. fleet-puller pulled the image, which beam02 did not have before, then removed it again; the running containers did not change. fleet-puller is in exactly two teams, fleet-pullers 29 (macula-io) and 30 (macula-services), both packages read only.Earlier, the box 4 unblock: the signer-readers teams, 27 (macula-services) and 25 (macula-io), got read access to repository Actions beside code and releases, and the reader token now gets 200 on mcl-mail and on realm tasks. Way back: PATCH units_map without repo.actions.
0.6.2: the forge release path ran end to end (Hygiea, 2026-11-23)
Release PR macula-services/mcl-mail#15 landed as
fd2617b3(merge of1aa8866), Uranus/Venus diff-only PASS. From there, no act of Raf's:fd2617b3….c4dbf22f….rebar.lock, 7767 B; its sha256 isc4dbf22f8da3ed586e2776da52eb5e1969f0e1a006fce31d9c23b9bdfc3a7ac0, matching D.fd2617b3, taggerrelease-bot <release-bot@git.macula.io>, message carriesTested-Lock: sha256:c4dbf22f….git verify-tagagainst /etc/image-signer/allowed_signers: Good "git" signature for release-bot, ED25519 SHA256:A3LY9o/q0Pl4D4nZ1myiwaaP41EliWktyEvm9Re32o8.sha256:19424c81154ed8edebea31a749e7be6307eeb07dfd26fb982d7988ab21734d78at 21:41:10Z; the forge's package API lists container tag0.6.2withsha256-19424c81….sigand….att.1121125, rule-2 self-check, no review owed by design); beam02 proved the release:mcl-mail has one
pin … canaryline and norestline in release-targets, so beam02 is the whole deployment.Two findings filed elsewhere: the registry refuses anonymous pulls for this repo (0.6.1 included) — forge-setup#21; and this release's own private-gate red is pre-existing content, macula-services/mcl-mail#19 and macula-io/martha#105.
Update from macula-io/macula-fleet#46 (Uranus, 2026-11-24): the release path this issue describes has changed. DECIDED 2026-11-24 "why has releasing become so difficult? On github, it was a tagged CI build, done / Tag = CI build (Recommended)": a release is a pushed v* tag; the repo's own forge CI builds, pushes and signs the image with the ONE release key (repo secrets from forge-setup
image-build/release-repo-secrets.sh). The host00 image signer is being retired.What this means for mcl-mail now: the fleet PR for realm 0.9.8 replaces
edge/gitops/signer-keys.pubwith the new CI key. mcl-mail 0.6.2 (edge/scripts/docker-compose.mcl-mail.yml, on beam02.lab) is signed by the OLD host00 key, so from that landing on, beam02's reconcile reports its signature as failing. beam02 runsSIGNATURES=audit, so it keeps running: it's a warning, not a refusal. It goes away when mcl-mail's next release is signed by tag CI.New done-when (replaces the host00 lines above): a
v*tag runs mcl-mail's forge release job (the copy of macula-realm'sreleasejob in.github/workflows/test.yml, as macula-portal PR 13 and mcl-stations PR 14 did): build, push togit.macula.io/macula-services/mcl-mail:<X.Y.Z>,cosign sign --keywith-a repo=macula-services/mcl-mail -a ref=v<X.Y.Z>, SBOM + provenance attested. The digest is then read back and verifies against the fleet'ssigner-keys.pub. Setup per repo:release-repo-secrets.sh macula-services/mcl-mailandsteps/09-image-build.sh macula-services/mcl-mail.Ruling (Mars, 2026-11-24): the audit warning is accepted. mcl-mail gets no package this week.