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

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:seal-broker into main 2026-11-24 14:58:38 +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 #267, Beanstalk MagicBeanDev/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
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
a0e0db039b
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
Member

Possibly related, for context:

  • PR MagicBeanDev/Longshot#2429 WIP: ci: seal.key from the seal broker for main and v* tags only; the website's PR code off the deploy runner β€” Companion security change to broker-based signing in Longshot CI.
  • PR MagicBeanDev/Beanstalk#146 WIP: ci: seal.key from the seal broker, for runs of main and v* tags only β€” Matching broker-based signing workflow and actionlint support.
  • PR #241 ci: the release's version and publish run only on the server's runner, the release key sealed with a key only it has β€” Prior runner-mounted sealed-key setup this PR replaces.
Possibly related, for context: - PR MagicBeanDev/Longshot#2429 WIP: ci: seal.key from the seal broker for main and v* tags only; the website's PR code off the deploy runner β€” Companion security change to broker-based signing in Longshot CI. - PR MagicBeanDev/Beanstalk#146 WIP: ci: seal.key from the seal broker, for runs of main and v* tags only β€” Matching broker-based signing workflow and actionlint support. - PR #241 ci: the release's version and publish run only on the server's runner, the release key sealed with a key only it has β€” Prior runner-mounted sealed-key setup this PR replaces.
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:35 +00:00
HumanBean deleted branch seal-broker 2026-11-24 14:58:38 +00:00
Sign in to join this conversation.
No reviewers
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
MagicBeanDev/LongshotLauncher!267
No description provided.