carlos / platform Public

design-fleet-secrets-key

Fleet secrets key (#366): each fleet gets its own sealing key, so a fleet-placed app's secrets and console-minted credentials open on the fleet's own boxes and nowhere else (Paul, 2026-10-29; the deployment key never goes on a customer box). The owner runs carlos secrets genkey, puts CARLOSSECRETSKEY in each box's host.env and registers the public half with carlos fleets secrets-key (bare key or --file, parsed locally; carlos secrets fingerprint reads a host.env without printing the key). The console's PUT /api/cli/fleets/{account}/{fleet}/secrets-key is owner-only, computes the fingerprint itself, refuses the deployment's key, a key another fleet holds (409) and a replacement while any app on the fleet holds a sealed value; every registered fingerprint is reserved to its fleet for good (fleetsecretskeyfps, and an append-only secretskeyfps on the bucket owner record admitted by the hostops classifier as an If-Match append only). sealKeyFor is the one choice of seal key (the fleet's own key, checked to be the account's, or the deployment key; a keyless or foreign fleet is a refusal, never a fallback), pinned by a guard test over every Sealer use. Var gains sealedto; the config PUT refuses a mismatch; store, mail, scan, webhook, instance store, team environment, relay and plan-storage seal sites take their Sealer from it, and a keyless-fleet app is refused before any backend call. apps place and apps create --place refuse an app whose sealed values the new boxes cannot open (absent sealed_to reads as the deployment key). Direct-mode secrets set seals only to the console-published deployment key and refuses accounts with fleets. fleets ls gains SECRETS KEY and STALE; instances list shows a fleet box's config refusal as the REASON with its fix, own fleet only. No box change. Reviews: spec Astra R1-R3, plan Astra R1-R3, per-task Opus reviews on the security tasks, whole branch Astra R1 NOT READY (2 P1: key reuse after replacement, direct-mode race; Paul ruled direct mode must prove the deployment key) then R2 READY; census fleet-secrets-key approved by Astra on #280, re-sealed unchanged on main bf4df27d. Copy FSK-C01..C72 approved by delegation (Luna). Not released. Unblocks rootfs Plan 4 Task 11.

Human

Design a per-fleet secrets key (rootfs Task 11 blocker)

Commits 49
Discussions 0 0 open
Tasks 4/7 done

Discussions

  • No discussions on this branch yet.

Tasks 4/7 done

  • Spec rev 1 + builder check Done
  • Astra review (max 3 rounds) Done
  • Paul approves the spec Done
  • Plan (writing-plans) + review Done
  • Build + whole-branch review + census Started

Activity