ci: seal.key from the seal broker, for runs of main and v* tags only #146

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:seal-broker into main 2026-11-24 14:58:55 +00:00
Owner

Why

Do not merge before the seal broker runs on the server (MagicBeanDev/Infra PR: MagicBeanDev/Infra#7). Once merged, Sign and publish gets seal.key from the broker. Without the broker it fails.

A label only routes a job. Anyone who can push a branch, or open a pull request with its own copy of the workflows, could add a job with runs-on: deploy, mount /magicbean-secrets, and open RELEASE_SIGNING_KEY_SEALED. forgejo-runner can't filter jobs by ref, so the key moves to a broker that checks the ID token Forgejo signs for the job. The broker hands it only to a push to main or a v* tag.

What changed

  • Sign and publish: no /magicbean-secrets volume, and enable-openid-connect: true on that job only.
  • A new step, seal.key, from the seal broker, sets SEAL_KEY for the signing steps. It fetches the ID token and calls https://magicbean-seal-broker:8443/seal-key with the key pinned (SEAL_BROKER_PIN).
  • Docs and comments updated to match. In Beanstalk, actionlint.yaml also accepts enable-openid-connect.

Companion PRs: Longshot MagicBeanDev/Longshot#2429, LongshotLauncher MagicBeanDev/LongshotLauncher#267, Beanstalk #146, Infra MagicBeanDev/Infra#7.

Testing

CI only, nothing the game runs. Not run yet, since the broker isn't deployed. To check after merging: the next nightly's Sign and publish signs as before.

Risks

  • Merged before the broker runs, or without SEAL_BROKER_PIN: releases fail at the new step. A revert is enough.
  • It rests on Forgejo protecting main (no direct push) and the v* tags (a protected-tag rule).

Must happen first

  1. The seal broker is up on the server (Infra PR, commit 2).
  2. The organization variable SEAL_BROKER_PIN is set.
  3. Branch protection on main and a protected-tag rule for v* in this repository.

🤖 Generated with Claude Code

## Why **Do not merge before the seal broker runs on the server** (MagicBeanDev/Infra PR: https://git.magicbean.dev/MagicBeanDev/Infra/pulls/7). Once merged, *Sign and publish* gets seal.key from the broker. Without the broker it fails. A label only routes a job. Anyone who can push a branch, or open a pull request with its own copy of the workflows, could add a job with `runs-on: deploy`, mount `/magicbean-secrets`, and open `RELEASE_SIGNING_KEY_SEALED`. forgejo-runner can't filter jobs by ref, so the key moves to a broker that checks the ID token Forgejo signs for the job. The broker hands it only to a push to main or a `v*` tag. ## What changed - *Sign and publish*: no `/magicbean-secrets` volume, and `enable-openid-connect: true` on that job only. - A new step, *seal.key, from the seal broker*, sets `SEAL_KEY` for the signing steps. It fetches the ID token and calls `https://magicbean-seal-broker:8443/seal-key` with the key pinned (`SEAL_BROKER_PIN`). - Docs and comments updated to match. In Beanstalk, `actionlint.yaml` also accepts `enable-openid-connect`. Companion PRs: Longshot https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2429, LongshotLauncher https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/267, Beanstalk https://git.magicbean.dev/MagicBeanDev/Beanstalk/pulls/146, Infra https://git.magicbean.dev/MagicBeanDev/Infra/pulls/7. ## Testing CI only, nothing the game runs. Not run yet, since the broker isn't deployed. To check after merging: the next nightly's *Sign and publish* signs as before. ## Risks - Merged before the broker runs, or without `SEAL_BROKER_PIN`: releases fail at the new step. A revert is enough. - It rests on Forgejo protecting `main` (no direct push) and the `v*` tags (a protected-tag rule). ## Must happen first 1. The seal broker is up on the server (Infra PR, commit 2). 2. The organization variable `SEAL_BROKER_PIN` is set. 3. Branch protection on `main` and a protected-tag rule for `v*` in this repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: seal.key from the seal broker, for runs of main and v* tags only
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator image (pull_request) Successful in 20s
CI / Coordinator tests (pull_request) Failing after 1m29s
CI / Agent build and checks (pull_request) Successful in 1m29s
1c3841c9e9
A label only routes a job, so a workflow on any branch (or a pull request's own copy) could ask
for runs-on: deploy, mount /magicbean-secrets and open the release signing key. Publish now gets
seal.key from the seal broker on the server (MagicBeanDev/Infra), which checks the ID token
Forgejo signs for the job (enable-openid-connect on that job only, SEAL_BROKER_PIN): only a push
to main or a v* tag gets it. No volume mounted any more.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
HumanBean changed title from WIP: ci: seal.key from the seal broker, for runs of main and v* tags only to ci: seal.key from the seal broker, for runs of main and v* tags only 2026-11-24 14:58:50 +00:00
Sign in to join this conversation.
No reviewers
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
MagicBeanDev/Beanstalk!146
No description provided.