Managed fleets design: 1a points at its approved spec; managed boxes use the fleet secrets key door (#457)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+22
−19
docs/superpowers/specs/2026-10-28-managed-fleets-design.md+22 −19
CI passed — run details
diff --git a/docs/superpowers/specs/2026-10-28-managed-fleets-design.md b/docs/superpowers/specs/2026-10-28-managed-fleets-design.md| index 6aa15c63b..4989b061b 100644 |
| --- a/docs/superpowers/specs/2026-10-28-managed-fleets-design.md |
| +++ b/docs/superpowers/specs/2026-10-28-managed-fleets-design.md |
| @@ -107,25 +107,18 @@ Each phase is useful on its own and gets its own plan. |
| ### Phase 1: fleet apps work without an operator |
| Three blockers that stop *any* fleet, managed or not, being |
| -self-service today. Phase 1 is visible first (stopping rule 6): the |
| -Rails sample on the dev fleet box serves at its public URL with no |
| -hand-written route. |
| - |
| -**1a. Public routes for fleet-placed apps.** Today the box the router |
| -reaches (the hub edge, which holds fleet tunnels) never has a route row |
| -for a fleet-placed app: platform-box reconcile refuses fleet records |
| -from both sides (`inScope`, `internal/provision/reconcile.go:487-499`) |
| -and the console never writes route rows. Every fleet instance needs a |
| -hand row. Fix: the hub edge holds a *forwarding* row for each |
| -fleet-placed record whose fleet it carries tunnels for, pointing at the |
| -fleet and the box running the instance (`fleetProxy`, |
| -`internal/edge/edge.go:3059`). The tenancy boundary `inScope` protects |
| -stays: a platform box never *runs* a fleet record, and a fleet box never |
| -picks up a platform record. A forwarding row is written only when the |
| -fleet's owner record names the same account as the app's record. |
| -Custom domains and certificates for fleet apps follow from the row. |
| -Covers native and rootfs apps alike. Coordinate with the rootfs session |
| -(#366 Task 11 needs this). |
| +self-service today. 1a is the visible first slice (stopping rule 6): |
| +the sample app on the dev fleet box serves at its public URL with no |
| +hand-written route. 1b and 1c follow it. |
| + |
| +**1a. Public routes for fleet-placed apps.** Pulled out as its own |
| +spec and APPROVED by Paul 2026-10-30: |
| +`docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md` rev 4 |
| +on `design-fleet-public-routes` (06b4d79e), owned by another session. |
| +The hub (the console's box) writes a `forward` row for each |
| +fleet-placed record whose fleet the account owns, and `fleetProxy` |
| +serves it. This design depends on it and does not repeat it. Managed |
| +fleets need nothing from 1a beyond what that spec gives BYO fleets. |
| **1b. Box choice within a fleet.** A fleet of three boxes must put each |
| instance on exactly one box, spread instances across the boxes, keep |
| @@ -229,6 +222,16 @@ box fetches the binary through the store door (`bootstrap/carlos`) and |
| verifies it as platform boxes do. Port #183's first-boot hardening |
| (parameter allowlists, IMDS gate, shredding cloud-init copies). |
| +**The fleet's secrets key.** Each fleet has its own secrets key, and |
| +the deployment's key never reaches a fleet box |
| +(`docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md`, |
| +merged ea01d831, in v0.31.0). For a managed fleet the provisioner |
| +mints the key on the first box and registers its public half through |
| +the same door `carlos fleets secrets-key` uses, so the owner never |
| +handles it (that spec's §8). The private key reaches the fleet's later |
| +boxes without passing through the console in plain form; how is the |
| +builder's call. No parallel key path. |
| + |
| **Born examined.** The hostname history (nearest-region-without-claims |
| spec) refuses data-kind creates on a fleet it has not examined, and |
| refuses new boxes on a fleet it has (`fleetGrowthRefusal`, N9). Both |