Skip to content

Updater: trust the owner's release keys (#689) - #769

Merged
Skeyelab merged 2 commits into
mainfrom
689-release-keys
Nov 23, 2026
Merged

Skeyelab merged 2 commits into
mainfrom
689-release-keys

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

Part of #689

The updater now trusts the owner's two release keys. These are the public halves only, copied from the owner's firmware-release public-key output:

  • primary 26739c2c075965fd9a99330f97c3b09a28d11f85c1fa4d81bd5495cb67c1a5f8
  • backup 2e972a79fd40b287a151166dcdc723d07e84afe9ffc933fb211c670873c07cbe

Tests

  • New test, written red first: theAppTrustsTheOwnersPrimaryAndBackupKeys. It holds both keys as printed, so a changed or dropped key fails.
  • Two tests relied on the app trusting no key. They now test an impostor: a release that names "primary" but isn't signed by the owner's key. The fetch refuses it (.badSignature), and the offer says the signature doesn't check out and offers the built-in firmware.
  • The existing format test (everyListedReleaseKeyIsAWellFormedPrimaryOrBackupKey) passes with the keys in.

No key files were read or touched. docs/FIRMWARE-RELEASE-SIGNING.md records that the step is done.

Next: #714 (690-wifi-update) merges main and puts the same pair in the panel's release_keys.h. Its test_release_keys.py checks that the two lists match.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1

Skeyelab and others added 2 commits November 23, 2026 00:29
…ic halves (#689)

Red first: a test holding the two public keys as the owner's output printed
them. The two tests that relied on no trusted key now check an impostor key
named primary: refused, its signature doesn't check out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
@Skeyelab Skeyelab added this to the Firmware updater app milestone Nov 23, 2026
@Skeyelab
Skeyelab enabled auto-merge November 23, 2026 05:29
@Skeyelab
Skeyelab added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 907f8b0 Nov 23, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant