Repository navigation
feat: support update-signing key rotation - #201
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/86-update-key-rotation
branch
from
September 27, 2026 22:18
1f5480a to
d5184f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The update-signing key can now be rotated without breaking automatic updates (#86).
UpdateTrustholds a set of public keys (PublicKeysPem, max 4). Today it contains only the existing key (fingerprint8b841b19…c64f3e8), so current behavior is unchanged.ManifestVerifieraccepts a manifest if any trusted key verifies the signature; keys that aren't ECDSA P-256 (curve OID check) or fail to import are never used; empty/oversized key sets, and signatures that aren't 64 bytes, are refused.GitHubReleaseUpdateService: if no trusted key verifies the newest release, it checks up to 3 older releases (all still newer than the installed version) and offers the newest one it can verify — the transition release signed with the old key that already ships the new one. Only "unknown key" skips a release; tampered manifests or version mismatches still fail the whole check. Never a downgrade.build/New-ReleaseManifest.ps1verifies the CI signature against all keys inUpdateTrust.csand prints the fingerprint that signed.docs/decisions/0006with the maintainer procedure: generating a key (PowerShell), recommended backup key (public key pre-published, private kept offline), planned rotation (transition release → switch secret → remove old key), leaked key and lost key.0005,security-model.mdandAGENTS.mdpoint to it. No private key is generated or committed.Tests (CI)
Manifest_signed_by_either_trusted_key_is_accepted_and_any_other_key_is_refused(acceptance criterion; also P-384 key and empty set refused).After_a_key_rotation_an_old_copy_takes_the_newest_release_it_can_verify_and_never_an_older_one(stepping stone + no downgrade).Official_keys_are_distinct_p256_keys_and_still_include_the_one_every_installed_copy_trusts(replaces the single-key test; tripwire against dropping the original key by accident).Manual / maintainer
Closes #86
🤖 Generated with Claude Code