Idea: a nightly-only signing key, and the stable key kept offline #419
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher#419
Loading…
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?
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.jsonholds a single key, which the launcher trusts for every channel and for its own updates (Longshot'sscripts/release_keys.jsonis the same key). The release job signs and publishes a nightly within minutes of every merge tomain, 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.vX.Y.Zonly 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.Worth deciding at the same time: who can merge to
mainwithout a second approval, and who can start the release workflow by hand.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.