Forge release path: build-push publishes a signed mcl-mail image to the forge registry (realm#3 pattern) #6

Open
opened 2026-11-22 22:55:46 +00:00 by mars · 6 comments
Member

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:

  • build-push.yml ported to the forge: push to git.macula.io/macula-services/mcl-mail, on realm#3's pattern (the signer on host00 signs; pin by digest).
  • No other workflow change (#4 and #5 are separate).
  • Actions on this repo need their own per-repo GO from the Supervisor once the workflows are ported (forge-actions-off hold).

Done when:

  • A v* tag on a scratch or real release produces an image on the forge registry, signed by the host00 signer, and the digest is read back.
  • The beam02 fleet commit (compose pin) and the tag go to the owner as ONE menu. They are not part of this issue's code.

Refs #1, macula-io/macula-realm#3.

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: - build-push.yml ported to the forge: push to git.macula.io/macula-services/mcl-mail, on realm#3's pattern (the signer on host00 signs; pin by digest). - No other workflow change (#4 and #5 are separate). - Actions on this repo need their own per-repo GO from the Supervisor once the workflows are ported (forge-actions-off hold). Done when: - A v* tag on a scratch or real release produces an image on the forge registry, signed by the host00 signer, and the digest is read back. - The beam02 fleet commit (compose pin) and the tag go to the owner as ONE menu. They are not part of this issue's code. Refs #1, macula-io/macula-realm#3.
Member

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_call outputs, or (b) it stays in lint.yml, gated on github.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, then ad5e5bad). Job logs can't be read through the API, so each answer was built as a job status. Run 2152 was green:

  • (a) Yes. The callee job made a 21,482-byte file and handed it on as base64 (28,644 characters) through on.workflow_call.outputs. The caller's job read (task 3960) decoded needs.callee.outputs.big and failed unless its sha256 matched the callee's digest. It succeeded.
  • (b) Inside the called job, github.workflow is the caller's name. Of three jobs gated on the value, only wf-is-caller ran (task 3865); wf-is-callee (3866) and wf-is-other (3867) were skipped.

Run 2151 (fd485fa) was cancelled when ad5e5bad replaced 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's test job running on the forge (dropping lint.yml's own push trigger does that; gating test to GitHub would remove the lock's source).

Refs #6, 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_call` outputs, or (b) it stays in lint.yml, gated on `github.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, then ad5e5bad). Job logs can't be read through the API, so each answer was built as a job status. Run 2152 was green: - (a) **Yes.** The callee job made a 21,482-byte file and handed it on as base64 (28,644 characters) through `on.workflow_call.outputs`. The caller's job `read` (task 3960) decoded `needs.callee.outputs.big` and failed unless its sha256 matched the callee's digest. It succeeded. - (b) Inside the called job, `github.workflow` is the **caller's** name. Of three jobs gated on the value, only `wf-is-caller` ran (task 3865); `wf-is-callee` (3866) and `wf-is-other` (3867) were skipped. Run 2151 (fd485fa) was cancelled when ad5e5bad replaced 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's `test` job running on the forge (dropping lint.yml's own push trigger does that; gating `test` to GitHub would remove the lock's source). Refs #6, macula-io/macula-realm#3.
Member

Saturnus, 2026-11-23T03:54Z, box 5 precondition: beam02 is logged in to the forge as fleet-puller (Raf's autoMode rule 11).

  • Ran from forge-setup main 82cae0ff5c2345d6a0ec9adc591c966a1f0768d6 (PRs 3, 4 and 6 landed): image-build/fleet-puller-account.sh, sha256 f5181f5a2389fc7966b993a3fa77a05b0e1dbcebe57a503142aba712e7cecf43 (444, bash -n clean), FORGE_GO=fleet-puller-account … beam02 </dev/null.
  • Read-back: fleet-puller is not admin and has no key. Its one team is fleet-pullers in macula-io (packages read only, 0 repos, member fleet-puller, no other team). ONE token, fleet+beam02+20261123T035445Z, scope read:package (on the box: registry 200, manifest 200, GET /user 403). On beam02: docker auths names git.macula.io, config mode 600, the pull of macula-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.1 answers "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-23T03:54Z, box 5 precondition: beam02 is logged in to the forge as fleet-puller (Raf's autoMode rule 11). - Ran from forge-setup main `82cae0ff5c2345d6a0ec9adc591c966a1f0768d6` (PRs 3, 4 and 6 landed): `image-build/fleet-puller-account.sh`, sha256 `f5181f5a2389fc7966b993a3fa77a05b0e1dbcebe57a503142aba712e7cecf43` (444, `bash -n` clean), `FORGE_GO=fleet-puller-account … beam02 </dev/null`. - Read-back: fleet-puller is not admin and has no key. Its one team is fleet-pullers in macula-io (packages read only, 0 repos, member fleet-puller, no other team). ONE token, `fleet+beam02+20261123T035445Z`, scope read:package (on the box: registry 200, manifest 200, GET /user 403). On beam02: docker auths names `git.macula.io`, config mode 600, the pull of `macula-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.1` answers "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).
Member

Saturnus, 2026-11-23T04:04Z, box 5 precondition, part 2: fleet-puller now also reads macula-services' packages (Supervisor GO, rules 11 and 7).

  • Ran image-build/fleet-puller-services-read.sh from forge-setup PR 7's passed head b918f1ea6cef1578bbd133f436739656884550b4 (fable review r=2 PASS, Jupiter). sha256 553477ef895f83f1e4a6ec3ad214dcea5d8d19116ac9babd1c059840a0cac4a0, checked before the run; 444, bash -n clean.
  • Read-back: fleet-puller is not admin and has no key. Team fleet-pullers in macula-services (id 30): packages read only, permission read, 0 repos, member exactly fleet-puller. fleet-puller sits in exactly two teams: 29 (macula-io) and 30 (macula-services).
  • No token was minted or revoked, and beam02 was not touched. beam02's existing login (comment 1004) now reaches macula-services' packages through the new membership.
  • Not yet done: the proof pull on beam02. mcl-mail 0.6.1 exists only after box 4 (host00's signer pushes it). Once box 4 prints the image, I run … beam02 <ref@sha256> (pull, remove again, containers unchanged), not beside a deploy of the same image.
Saturnus, 2026-11-23T04:04Z, box 5 precondition, part 2: fleet-puller now also reads macula-services' packages (Supervisor GO, rules 11 and 7). - Ran `image-build/fleet-puller-services-read.sh` from forge-setup PR 7's passed head `b918f1ea6cef1578bbd133f436739656884550b4` (fable review r=2 PASS, Jupiter). sha256 `553477ef895f83f1e4a6ec3ad214dcea5d8d19116ac9babd1c059840a0cac4a0`, checked before the run; 444, `bash -n` clean. - Read-back: fleet-puller is not admin and has no key. Team fleet-pullers in macula-services (id 30): packages read only, permission read, 0 repos, member exactly fleet-puller. fleet-puller sits in **exactly** two teams: 29 (macula-io) and 30 (macula-services). - No token was minted or revoked, and beam02 was not touched. beam02's existing login (comment 1004) now reaches macula-services' packages through the new membership. - Not yet done: the proof pull on beam02. mcl-mail 0.6.1 exists only after box 4 (host00's signer pushes it). Once box 4 prints the image, I run `… beam02 <ref@sha256>` (pull, remove again, containers unchanged), not beside a deploy of the same image.
Member

Box 5 proof (Saturnus, 2026-11-23): fleet-puller-services-read.sh (sha256 553477ef…) ran on beam02 for git.macula.io/macula-services/mcl-mail:0.6.1@sha256:971e0747e63ae4bd41af24fbdfc58a072f074c2c3a1ed3a5644c0c6f3637dd08 and 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.

Box 5 proof (Saturnus, 2026-11-23): `fleet-puller-services-read.sh` (sha256 553477ef…) ran on beam02 for `git.macula.io/macula-services/mcl-mail:0.6.1@sha256:971e0747e63ae4bd41af24fbdfc58a072f074c2c3a1ed3a5644c0c6f3637dd08` and 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.
Member

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 of 1aa8866), Uranus/Venus diff-only PASS. From there, no act of Raf's:

  • tested lock filed by the main push: asset 13, fd2617b3….c4dbf22f….rebar.lock, 7767 B; its sha256 is c4dbf22f8da3ed586e2776da52eb5e1969f0e1a006fce31d9c23b9bdfc3a7ac0, matching D.
  • release request in the release-bot spool; the bot tagged v0.6.2 at fd2617b3, tagger release-bot <release-bot@git.macula.io>, message carries Tested-Lock: sha256:c4dbf22f…. git verify-tag against /etc/image-signer/allowed_signers: Good "git" signature for release-bot, ED25519 SHA256:A3LY9o/q0Pl4D4nZ1myiwaaP41EliWktyEvm9Re32o8.
  • the signer built and signed sha256:19424c81154ed8edebea31a749e7be6307eeb07dfd26fb982d7988ab21734d78 at 21:41:10Z; the forge's package API lists container tag 0.6.2 with sha256-19424c81….sig and ….att.
  • the pin unit pinned the canary itself (pin-bot 1121125, rule-2 self-check, no review owed by design); beam02 proved the release:
await-canary: git.macula.io/macula-services/mcl-mail 0.6.2 proven: mcl-mail/info on beam02.lab: version "0.6.2"

mcl-mail has one pin … canary line and no rest line 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.

## 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 of `1aa8866`), Uranus/Venus diff-only PASS. From there, no act of Raf's: - tested lock filed by the main push: asset 13, `fd2617b3….c4dbf22f….rebar.lock`, 7767 B; its sha256 is `c4dbf22f8da3ed586e2776da52eb5e1969f0e1a006fce31d9c23b9bdfc3a7ac0`, matching D. - release request in the release-bot spool; the bot tagged **v0.6.2** at `fd2617b3`, tagger `release-bot <release-bot@git.macula.io>`, message carries `Tested-Lock: sha256:c4dbf22f…`. `git verify-tag` against /etc/image-signer/allowed_signers: Good "git" signature for release-bot, ED25519 SHA256:A3LY9o/q0Pl4D4nZ1myiwaaP41EliWktyEvm9Re32o8. - the signer built and signed **`sha256:19424c81154ed8edebea31a749e7be6307eeb07dfd26fb982d7988ab21734d78`** at 21:41:10Z; the forge's package API lists container tag `0.6.2` with `sha256-19424c81….sig` and `….att`. - the pin unit pinned the canary itself (pin-bot `1121125`, rule-2 self-check, no review owed by design); beam02 proved the release: ``` await-canary: git.macula.io/macula-services/mcl-mail 0.6.2 proven: mcl-mail/info on beam02.lab: version "0.6.2" ``` mcl-mail has one `pin … canary` line and no `rest` line 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.
Member

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.pub with 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 runs SIGNATURES=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's release job in .github/workflows/test.yml, as macula-portal PR 13 and mcl-stations PR 14 did): build, push to git.macula.io/macula-services/mcl-mail:<X.Y.Z>, cosign sign --key with -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's signer-keys.pub. Setup per repo: release-repo-secrets.sh macula-services/mcl-mail and steps/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.

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.pub` with 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 runs `SIGNATURES=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's `release` job in `.github/workflows/test.yml`, as macula-portal PR 13 and mcl-stations PR 14 did): build, push to `git.macula.io/macula-services/mcl-mail:<X.Y.Z>`, `cosign sign --key` with `-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's `signer-keys.pub`. Setup per repo: `release-repo-secrets.sh macula-services/mcl-mail` and `steps/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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
5 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-mail#6
No description provided.