Research: the apex cutover inventory — everything that opens the control panel at the bare apex today #1338
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
The Portal map (#1336)
Question
The Portal takes the apex root and the operator SPA moves to
admin.<apex>only, with a redirect (charting ruling 7). Inventory every consumer of the apex-as-panel so the spec can retarget them and nothing goes dark:renderPortalRoute/renderAdminRoute/ the private front door (internal/clan/frontdoor.go),hostnames.Portalvshostnames.Dashboardcallers,controlapi.WithDashboardand the SPA's catch-allGET /(internal/controlapi/dashboard.go), the/getinstall path,/brand/*,/join,/mail,/authz/*,/api/*— which stay on the apex, which move.app/), Operator home's dashboard link (ADR 0019), any deep links (open-recovery-readiness, DDR 0101), the dashboard navigator's URL ↔ tab wiring (dashboard/src/entry/served.ts,tabRouting.ts)..sandcastle/,tests/,e2efor the apex URL /admin.usage); the reseed/publish chain that pins served bits (GOTCHAS: served bits vs main).admin.<apex>served and gated today on both paths (spec #511 stories landed?), and what the DA-S2 refusal's "the community portal" door currently points at.Deliver: a table of consumers → today's target → post-cutover target → change needed, and the redirect rule. Write to a
research/portal-apex-cutoverbranch underdocs/research/2026-09-08-portal-apex-cutover.md; link from this ticket.Research landed — branch
research/portal-apex-cutover, commit54048ed9(not pushed):docs/research/2026-09-08-portal-apex-cutover.md— 24-row consumer table (today → post-cutover → change needed, every cellpath:line), the exact redirect rule, per-path differences, 13 numbered gaps, and a touch-list for the spec.Findings (≤25 lines):
admin.<apex>are the SAME host-blind control plane. Caddy proxies both to loopback (frontdoor.go:400-401), the Go mux has no host matching (dashboard.go:39), the SPA picks its surface by path only (main.ts:32-39). The only difference isforward_authon the admin route (:445-475); the apex route is ungated by design (:557-575, #512). The cutover = splitting one origin into two hosts with different owners./api/v1/members,/fleet,/provision/*… have no in-handler auth; only IDIP steward/mail/logs/catalogue read a session. Ruling 7's "/api/*stays" must decide the apex API posture (allow-list + gate vs. wholesale) or the panel's data stays open after its pages move. Gap 1, the one that matters.hostnames.Portalhas zero callers;hostnames.Dashboardis reached only viaDashboardReachableon the private path (seat.go:101,handoff.go:366). S12 openshttps://<apex>after the credential lands (enrolment.go:336-341←handoff.go:355,portalAddress:723-733); Operator home's button falls back tocommunity.portalUrl, which the seat never fills (seatSource.ts:34-49) — a no-op on the public path today.tabRouting.ts:17-27):/overview /fleet /services /members /backups /settings(+/*under each) →308 https://admin.<apex>{uri}, rendered inrenderPortalRouteBEFORE the proxy, both renders. Portal-owned, never redirected:/,/haere-mai/*,/idip/join/*,/mail,/authz/*,/get,/brand/*, assets./is ALSO Overview's path (pathForTab→/) — a root bookmark lands on the Portal by construction; the Portal's operator face needs a control-panel door./join(it is/haere-mai/<token>kanidm,/idip/join/<token>IDIP) and no/.well-knownon the apex (that isid.<apex>).https://<apex>/api/v1/enroll/*+/api/v1/fleet/reportwith no browser (wiring_prod.go:150-165);/getpinsIDSS_COMMUNITY_ORIGINto the apex Host. These prefixes must keep proxying untouched.admin.<apex>IS gated on both paths and the OIDC round trip is real (IDIP drive proves it). Unbuilt: the CA-pinned app window (story 2 — the app hands the OS browseradmin.<slug>.idss.internal:<port>, unresolvable off-harness), sign-out (no/authz/signout; chrome jumps toid.<apex>), signed-in label, DA-S3 frames.RefusalBrand(main.go:1428) so the door is/onadmin.<apex>→ gate → refusal again (refusal.go:156-159). Fix =PortalURL: hostnames.Portal(apex)./mailat the apex is dead:WithMemberMail(…, nil)trusts the identity header the apex route strips (main.go:1487,frontdoor.go:570). #1342's rehomed claim inherits this.admin.<apex>:<port>(provision.ts:79-87). Public-path journeys (droplet/idip/selfhosted/device + fixtures idip/provision/deviceProvision) read S12'sportal-addressand use it as the PANEL base — ~80 sites, onepanelAddressfixture fixes them. Served bits: the dashboard bundle + control plane are seeded from the APP PAYLOAD (supply.go:214-258), the agent from get.idss.nz — a cutover drive needs a payload re-warm +reseed-publish.yml.308toadmin.<apex>{uri}rendered without the host-side forward port is unreachable; carry the port or skip the redirect on the private render.invite.go:256) and will resolve underadmin.<apex>once the roster lives there — mint it absolute onhostnames.Portal.Not pushed; branch is in the agent worktree. Ready for #1341.
Resolution
Findings on
research/portal-apex-cutover@54048ed9→docs/research/2026-09-08-portal-apex-cutover.md(land on main when reviewed). Gist:admin.<apex>are the SAME host-blind control plane: Caddy proxies both to loopback, the Go mux has no host matching, the SPA picks its surface by path. The only difference isforward_authon the admin route. The cutover splits one origin into two hosts with different owners./api/v1/members,/fleet,/provision/*have no in-handler auth). "/api/*stays" must decide the apex API posture (allow-list + gate vs wholesale) or the panel's data stays open after its pages move.hostnames.Portalhas zero callers; S12 openshttps://<apex>; Operator home's button falls back to aportalUrlthe seat never fills (a no-op on the public path)./overview /fleet /services /members /backups /settings(+ subpaths) →308 https://admin.<apex>{uri}, rendered inrenderPortalRoutebefore the proxy. Portal-owned, never redirected:/,/haere-mai/*,/idip/join/*,/mail,/authz/*,/get,/brand/*, assets./is ALSO Overview's path — a root bookmark lands on the Portal by construction./join(kanidm =/haere-mai/<token>, IDIP =/idip/join/<token>); no/.well-knownon the apex.https://<apex>/api/v1/enroll/*+/api/v1/fleet/reportbrowserless;/getpins the origin to the apex host — these prefixes keep proxying untouched.admin.<apex>IS gated on both paths, OIDC round trip real. Unbuilt: the CA-pinned app window, sign-out, the signed-in label, the DA-S3 frames. DA-S2's "Go to " door loops (noRefusalBrandin production →/onadmin.<apex>→ gate → refusal) — filed as a defect.admin.<apex>:<port>; public-path journeys use S12'sportal-addressas the panel base (~80 sites, onepanelAddressfixture fixes them). A cutover drive needs a payload re-warm +reseed-publish.yml.308toadmin.<apex>{uri}without the host-side forward port is unreachable — carry the port or skip the redirect on the private render.admin.<apex>once the roster lives there — mint it absolute onhostnames.Portal.Unblocks the apex cutover grill.
/on admin.<apex> #1345