Idea: a nightly-only signing key, and the stable key kept offline #419

Closed
opened 2026-12-05 17:22:16 +00:00 by llun · 1 comment
Member

The idea

Give nightlies a signing key of their own, which the launcher accepts only for nightly tags, and keep the key that signs stable releases offline, used by hand when a stable is cut.

Why

Today one key signs everything: assets/keys/release_keys.json holds a single key, which the launcher trusts for every channel and for its own updates (Longshot's scripts/release_keys.json is the same key). The release job signs and publishes a nightly within minutes of every merge to main, with no person in between, and nightly launchers update themselves to it.

So one bad merge, or one stolen maintainer account, can reach every nightly player in minutes, and that signature would also be accepted for a stable. With two keys, a nightly can never pass as a stable, and the stable key isn't sitting on a runner.

Found while checking the download chain for #379 (nothing wrong was found there).

What it needs

  • release_keys.json (launcher and Longshot): a key per channel, or a channel field per key.
  • The launcher: a nightly tag checked only against nightly keys, a vX.Y.Z only against stable keys; self-updates the same.
  • release.py (Tooling) and MagicBeanAdmin/Release: sign with the channel's key; the stable key offline, the nightly key on the trusted runner.
  • Rotation for players: a launcher that knows both new keys has to ship, signed with the current key, before the old key stops being accepted (RELEASING.md, Rotate the key).

Worth deciding at the same time: who can merge to main without a second approval, and who can start the release workflow by hand.

### The idea Give nightlies a signing key of their own, which the launcher accepts **only for nightly tags**, and keep the key that signs stable releases offline, used by hand when a stable is cut. ### Why Today one key signs everything: `assets/keys/release_keys.json` holds a single key, which the launcher trusts for every channel and for its own updates (Longshot's `scripts/release_keys.json` is the same key). The release job signs and publishes a nightly within minutes of every merge to `main`, with no person in between, and nightly launchers update themselves to it. So one bad merge, or one stolen maintainer account, can reach every nightly player in minutes, and that signature would also be accepted for a stable. With two keys, a nightly can never pass as a stable, and the stable key isn't sitting on a runner. Found while checking the download chain for #379 (nothing wrong was found there). ### What it needs - `release_keys.json` (launcher and Longshot): a key per channel, or a channel field per key. - The launcher: a nightly tag checked only against nightly keys, a `vX.Y.Z` only against stable keys; self-updates the same. - `release.py` (Tooling) and MagicBeanAdmin/Release: sign with the channel's key; the stable key offline, the nightly key on the trusted runner. - Rotation for players: a launcher that knows both new keys has to ship, signed with the current key, before the old key stops being accepted (RELEASING.md, *Rotate the key*). Worth deciding at the same time: who can merge to `main` without a second approval, and who can start the release workflow by hand.
Member

This looks like the same problem as MagicBeanDev/Longshot#46 (Idea: Authenticode signing for the Windows builder and launcher, separate from signed release manifests), so I'm closing this one to keep the discussion in one place.

Both propose separate signing trust by release channel: nightlies must use a nightly-only key while stable releases use a stable key kept offline, with launcher verification enforcing the boundary. Longshot #46 already states this exact signing design; this issue extends it operationally to launcher self-updates and rotation.

If it's different, reopen it and say how.


For maintainers

Longshot #46 describes channel-separated keys and says launcher channel validation is part of the signed-release design. Its comments say implementation later changed to one P-256 key over SHA256SUMS; this new issue is therefore useful as a renewed proposal for channel-specific keys and governance.


Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.

This looks like the same problem as MagicBeanDev/Longshot#46 (Idea: Authenticode signing for the Windows builder and launcher, separate from signed release manifests), so I'm closing this one to keep the discussion in one place. Both propose separate signing trust by release channel: nightlies must use a nightly-only key while stable releases use a stable key kept offline, with launcher verification enforcing the boundary. Longshot #46 already states this exact signing design; this issue extends it operationally to launcher self-updates and rotation. If it's different, reopen it and say how. --- **For maintainers** Longshot #46 describes channel-separated keys and says launcher channel validation is part of the signed-release design. Its comments say implementation later changed to one P-256 key over SHA256SUMS; this new issue is therefore useful as a renewed proposal for channel-specific keys and governance. --- <sub>Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.</sub>
BeanBot 2026-12-05 17:22:41 +00:00
Sign in to join this conversation.
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#419
No description provided.