Repository navigation
Conversation
An update signed with another key than the installed mod's is still refused, unless the mod carries key-handover.json: steps, each signed by the key it leaves, that lead from the installed key to the release's. Signing handover adds a step, handover-check verifies a chain. The engine then installs it, says the key moved, and only the new key updates it from then on; automatic staging accepts a catalogue entry whose "key_from" names the installed key. catalog.py add takes the new key from such a zip (recording "key_from"), check --base allows the change only with it, and check --download verifies the handover. A key change is never an auto-merged bump. This is what lets each Open-HMG mod have its own key (docs/mod-repos.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox
added a commit
that referenced
this pull request
Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
Open
VysseCodes
reviewed
Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 of 67 tasks
…dover Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e release) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Lets a mod move to a new author key without owners removing it, so each mod (starting with Open-HMG's) can have its own key instead of the shared
7251ce71-….How it works
key-handover.jsonat the top of the mod folder holds{"format": 1, "steps": [{"id", "from", "from_key", "to", "signature"}]}. Each signature is the leaving key's ECDSA overHMG-API key handover / id / from / to.Signing handover <mod> <old key> <new key.pub>adds a step, andSigning handover-check <mod> <installed uuid>verifies a chain.Packages.check) still refuses an update signed with another key, unless the steps lead from the installed key to the release's key, each signed by the key it leaves and naming this mod id. It then says the key moved, and from then on only the new key updates the mod. Steps chain (old → new → newer), so a car that skipped a release follows. The file is an ordinary file of the mod, so the new key's signature covers it too."key_from"names the installed key. That field is a hint only: the install checks the handover itself.catalog.py addtakes the new key when the zip hands the old one over, lists it inmaps/authors.jsonand records"key_from".check --baseallows a key change only with"key_from".check --downloadverifies the zip's handover from every key in"key_from".Docs
docs/mod-repos.mdgains "Later: each mod its own key". It is the plan forwireless-carplay-aa,adb,adbdandnemesis-shortcut: VysseCodes makes each key, commits the handover, swapsMOD_KEYand raises"hmgapi"to the release that reads handovers. Phone Turn-by-Turn starts with its own key.mkmodpkg.shnote.The catch: a head unit on an older HMG-API refuses the new key's update, whatever the file says. Each moved mod's
"hmgapi"floor names the release that first reads handovers, so the catalogue tells those owners to update HMG-API first.Tested (off-car)
signing-test.sh(+14 checks): a handover, the old key handing over twice refused, a chain and from its middle, a forged step (another key's signature, claiming the real key) refused, another mod's handover refused.packages-test.sh(+10 checks): a new key without a handover refused, a handover from a key that isn't the installed one refused, a handed-over install (the release-updates path), the old key refused after the move, and the new key's next release.tools/catalog-test.sh(+13 checks):addwith and without a handover,"key_from"and the new author listed,check --basewith and without"key_from",check --downloadverifying the handover and refusing a zip without one.core/runtime/catalog-test.sh,engine-test.sh,safety-test.sh,homewifi-test.sh,tools/sdk-test.sh.On #457 (
catalog/auto-update), which is on #423.🤖 Generated with Claude Code