Skip to content

Commit d7963b7

Browse files
AlexgodorojaAlex Godorojaclaude
authored
daemon: drop PILOT_TRUSTED_PUBLISHERS wiring (catalogue is the trust anchor) (#320)
daemon: drop PILOT_TRUSTED_PUBLISHERS wiring; bump app-store (trust anchor removed) The per-publisher trust anchor is removed in app-store (the release-signed catalogue is the source of truth). So the env-var wiring added in #318 is no longer needed — a fresh node installs and runs catalogue apps with zero config. - remove the PILOT_TRUSTED_PUBLISHERS env block + the now-unused manifest import - bump github.com/pilot-protocol/app-store to the trust-anchor-removal commit - keep PILOT_APPSTORE_ROOT honoring Depends on pilot-protocol/app-store#25; re-pin go.mod to the merged app-store commit before this lands. Verified: a fresh node with NO env installs io.pilot.smolmachines from the real catalogue and boots a microVM. Co-authored-by: Alex Godoroja <alex@vulturelabs.io> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7422e26 commit d7963b7

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

cmd/daemon/main.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
// L11 plugin imports — cmd/daemon (L12) is the only place these
2626
// are allowed. The daemon proper imports only pkg/coreapi
2727
// interfaces.
28-
"github.com/pilot-protocol/app-store/pkg/manifest"
2928
"github.com/pilot-protocol/app-store/plugin/appstore"
3029
"github.com/pilot-protocol/dataexchange"
3130
"github.com/pilot-protocol/eventstream"
@@ -350,19 +349,6 @@ func main() {
350349
if r := os.Getenv("PILOT_APPSTORE_ROOT"); r != "" {
351350
appstoreInstallRoot = r
352351
}
353-
// Trust anchor (G4′): the supervisor refuses to spawn a non-sideloaded app
354-
// whose publisher is not on manifest.TrustedPublishers. Nothing populated it
355-
// before, so enforcement skipped every catalogue app. Wire it from
356-
// PILOT_TRUSTED_PUBLISHERS (comma-separated ed25519:<b64> ids) — in
357-
// production this list is the reviewed publisher registry.
358-
if tp := strings.TrimSpace(os.Getenv("PILOT_TRUSTED_PUBLISHERS")); tp != "" {
359-
for _, p := range strings.Split(tp, ",") {
360-
if p = strings.TrimSpace(p); p != "" {
361-
manifest.TrustedPublishers = append(manifest.TrustedPublishers, p)
362-
}
363-
}
364-
log.Printf("appstore: %d trusted publisher(s) loaded from PILOT_TRUSTED_PUBLISHERS", len(manifest.TrustedPublishers))
365-
}
366352
// The app-usage telemetry emitter shares the daemon's identity file
367353
// and telemetry URL. When consent is off (empty URL) the client is
368354
// a permanent no-op — no goroutines, no dials, no buffering.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.25.11
44

55
require (
66
github.com/coder/websocket v1.8.15
7-
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622180016-07b4170265dc
7+
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622235003-2f290c314a42
88
github.com/pilot-protocol/beacon v0.2.6
99
github.com/pilot-protocol/common v0.5.5
1010
github.com/pilot-protocol/dataexchange v0.2.1-beta.1.0.20260615113607-fac933edea98

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/coder/websocket v1.8.15 h1:6B2JPeOGlpff2Uz6vOEH1Vzpi0iUz20A+lPVhPHtNU
44
github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=
55
github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM=
66
github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
7-
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622180016-07b4170265dc h1:Ze7h3rEPMhFaAyjNH9riySBs8HEeeoB3wODwtoLQ4Eo=
8-
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622180016-07b4170265dc/go.mod h1:leZPtX43gE2JB7xeljexXri81g6qhdZfYExLtzI+bhg=
7+
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622235003-2f290c314a42 h1:5Yns67RaNxd2xwVJj7VY2+vXzo9zTbMgPM+CXgwiW1M=
8+
github.com/pilot-protocol/app-store v1.0.1-beta.1.0.20260622235003-2f290c314a42/go.mod h1:leZPtX43gE2JB7xeljexXri81g6qhdZfYExLtzI+bhg=
99
github.com/pilot-protocol/beacon v0.2.6 h1:grxwaVyPRUT0W6coyjYfNkO0rpzOIrwrKn94S21DuVE=
1010
github.com/pilot-protocol/beacon v0.2.6/go.mod h1:I/UhEv097g1z/qtAVDZbEhf3R5tzM0Dp71vGHah52A4=
1111
github.com/pilot-protocol/common v0.5.5 h1:mnv3q84alVaotGD+Qxfo4ECFEquqsUwrI3mjKIGUKFY=

0 commit comments

Comments
 (0)