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.
Design a per-fleet secrets key (rootfs Task 11 blocker)
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
- claude agent, operated by paul@keymail.dev pushed 2b547d2ac Merge origin/main (bf4df27d, #114) into design-fleet-secrets-key
- claude agent, operated by paul@keymail.dev pushed aec042d44 ci: re-run (the gate on 7488a8d6 timed out at 30m with no output, the #359 runner pattern)
- claude agent, operated by paul@keymail.dev pushed 7488a8d61 Merge origin/main (a8b52609) into design-fleet-secrets-key
- claude agent, operated by paul@keymail.dev pushed 73f849148 ci: re-run (edge flake TestProbedLocalUpstreamWaitsForReadmission, port re-bind race; this branch does not touch internal/edge)
- claude agent, operated by paul@keymail.dev pushed 4a1c666bd ci: re-run (the gate on 92068cff timed out at 30m with no output, the #359 runner pattern)
- claude agent, operated by paul@keymail.dev pushed 92068cffd Fleet secrets key census: re-seal envelope . after the direct-mode copy rows (34926419), same code Astra R2 approved; no unit change
- claude agent, operated by paul@keymail.dev pushed bfca513d9 Fleet secrets key: Astra branch review R2 READY (findings file)
- claude agent, operated by paul@keymail.dev pushed 9d8c8c76e Fleet secrets key: Astra branch review R1 findings and the R2 brief
- claude agent, operated by paul@keymail.dev pushed 349264196 Direct secrets set: own copy rows for the two new refusals (branch review R1)
- claude agent, operated by paul@keymail.dev pushed d87d2011f Census for the direct-mode deployment key check (branch review R1)
- claude agent, operated by paul@keymail.dev pushed e53c854ad Direct secrets set seals only to the published deployment key (branch review R1)
- claude agent, operated by paul@keymail.dev pushed 75f1dfa92 Census for the branch review R1 fixes: the fingerprint reservation and runFrom's deferred unlock
- claude agent, operated by paul@keymail.dev pushed 5113d0576 Fleet secrets key spec: correct the request costs in §7 (branch review R1)
- claude agent, operated by paul@keymail.dev pushed 3b93618a5 Plan storage: deny a keyless fleet app's healthy store without a key (branch review R1)
- claude agent, operated by paul@keymail.dev pushed 8868a1236 Seed copy: release the account lock when store provisioning panics (branch review R1)
- claude agent, operated by paul@keymail.dev pushed 0ca4cc2f1 Fleet secrets key guard: Sealer fields only in named methods, writes only in NewSealer, and a walk for wholly excluded packages (branch review R1)
- claude agent, operated by paul@keymail.dev pushed e723c94ae Fleet secrets key: reserve every registered fingerprint to its fleet for good (branch review R1, I1)
- claude agent, operated by paul@keymail.dev pushed 4df47cd89 Fleet secrets key: CI fixes for the closed-door count and the pass-failure lint
- claude agent, operated by paul@keymail.dev pushed 6271d4ca7 Fleet secrets key: whole-branch and census review brief, round 1
- claude agent, operated by paul@keymail.dev pushed 25f7e82aa Census inventory for the fleet secrets key: new fleet owner key append site, nine re-pins, root-read overlay
- claude agent, operated by paul@keymail.dev pushed 44bc9cd46 Fleet secrets key copy: unescape the backticks the Luna rewrites carried into six deck rows and the docs (render as code, not literal backticks); no wording change
- claude agent, operated by paul@keymail.dev pushed 8c5193d21 Fleet box witnesses and docs for the fleet secrets key (Task 10)
- claude agent, operated by paul@keymail.dev pushed 6553646ff The capped REASON shows only for a fleet box of the caller's own fleet and never on an awake row or from a platform box (Task 9 fix round 1)
- claude agent, operated by paul@keymail.dev pushed 652447492 instances list shows a box's config refusal as the REASON with its fix, on the caller's own row matched by host, from platform and own-fleet boxes, with a capped report (Task 9)
- claude agent, operated by paul@keymail.dev pushed 1b90be19c Direct-bucket secrets set refuses an account that owns a fleet and any registered fleet key (Task 8)
- claude agent, operated by paul@keymail.dev pushed 97ae289cc An absent sealed_to is not stale for the platform: staleForTarget reads it as sealed to the deployment key, so an app moves back to the platform with its older values (Task 7 ruling)
- claude agent, operated by paul@keymail.dev pushed 924d47f1e apps place and apps create --place refuse an app whose sealed values its new boxes cannot open (staleForTarget, FSK-C47), place and a placed create run under the account lock, and env fork takes the account lock before the app lock (Task 7)
- claude agent, operated by paul@keymail.dev pushed 4abe5168f Task 6b fix round 1: the guard names Sealer field uses and sealWith outside their owners, and the background walks fail the job on any seal key error but an absent key
- claude agent, operated by paul@keymail.dev pushed 72fde1a95 Relay, plan storage and the scan recovery doors seal to the app's own key, and the guard pins every seal to sealKeyFor (Task 6b)
- claude agent, operated by paul@keymail.dev pushed bdb892067 Console-minted credentials seal to the app's own key (Task 6a): the store, mail, scan callback, webhook rotation, instance store and team environment mail seal sites take an appconfig.Sealer from sealKeyFor, so a fleet app's credential is sealed to its fleet's key (SealedTo set, v2) and an app on a keyless fleet is refused before any backend call (FSK-C44, FSK-C45)