daemon: anchor catalogue apps to the catalogue publisher pin (companion to app-store#25)#324
Merged
Conversation
Companion to app-store#25 (which repoints VerifyTrustAnchor at the catalogue). The daemon now loads the per-app publisher pins from the release-signed catalogue and feeds them to the app-store supervisor, which confirms each non-sideloaded app's manifest publisher matches its pin before spawning. No static list, no env. - internal/catalogue: fetch + signature-verify (catalogtrust) the catalogue and serve id -> publisher pins; periodic refresh + disk cache so a transient catalogue outage on restart doesn't fail-close every app. Unit-tested (-race): verify gate, tamper/missing-sig rejection, cache fallback, fail-closed. - cmd/daemon: build the provider, wire Config.CataloguePublisher, refresh loop. - cmd/pilotctl: add the `publisher` field to the catalogue entry schema. - catalogue/catalogue.json: pin every app's publisher (cosift, sixtyfour, wallet, smolmachines) and re-sign. - go.mod: bump app-store to the #25 (catalogue-pin) commit. e2e (fresh node, real re-signed catalogue): 4 pins loaded; smol installs, spawns (publisher == pin), boots a microVM (exit 0). Negative: a mismatched pin makes the daemon refuse to spawn ("publisher ... does not match the catalogue pin"). Depends on pilot-protocol/app-store#25; must release together. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
TeoSlayer
previously approved these changes
Jun 23, 2026
Replaces the pre-merge branch pseudo-version with the released v1.0.2 tag (app-store cecb842, the #25 repoint merge), so the dep is immutable and branch-deletion-proof.
TeoSlayer
approved these changes
Jun 23, 2026
TeoSlayer
approved these changes
Jun 23, 2026
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.
Anchor catalogue apps to the catalogue publisher pin
Companion to pilot-protocol/app-store#25 (which repoints
VerifyTrustAnchorat the catalogue). Together they replace the broken per-publisher allow-list with
a real catalogue-anchored trust check — no static list, no
PILOT_TRUSTED_PUBLISHERS.What this adds
internal/catalogue— fetches + signature-verifies the catalogue (samecatalogtrustgate pilotctl uses) and servesid → publisherpins. Periodicrefresh + disk cache so a transient catalogue outage on restart doesn't
fail-close every app; with neither catalogue nor cache, apps fail closed.
cmd/daemon— builds the provider and wiresappstore.Config.CataloguePublisher.cmd/pilotctl—publisherfield on the catalogue entry schema.catalogue/catalogue.json— pins every app (cosift/sixtyfour/wallet/smol),re-signed with the catalogue key.
Tested
internal/catalogueunit tests (-race): verify gate, tampered/missing-sigrejection, cache fallback, fail-closed-when-empty.
smol installs → daemon spawns it (publisher == pin) → microVM
exit 0.(
publisher … does not match the catalogue pin for io.pilot.smolmachines).Release coupling
Bumps
app-storeto the #25 commit. #25 + this must release together — #25fail-closes without these pins; old daemons ignore the new
publisherfield.🤖 Generated with Claude Code