Grill: the apex cutover — the Portal takes the apex root, the panel goes to admin.<apex> only, with an exact redirect; the app and the harness retarget #1341

Closed
opened 2026-09-09 03:59:21 +00:00 by ben · 2 comments
Owner

Parent

The Portal map (#1336)

Question

Ruling 7 is a one-way door; rule its exact shape from the cutover inventory: (a) the redirect rule — which old apex paths redirect to admin.<apex> (the panel's tab list) and which are the Portal's own (/, /mail, /join, /authz/*, /get, /brand/*); (b) the served bundle — one bundle with a portal entry chosen by host/path, or two builds; how the brand doorway and the same-origin API hold for both hosts; (c) the private path — what admin.<apex> means there (DDR 0172's CA-pinned app window) and whether the private apex serves the Portal or keeps the plain forward; (d) the app's "Open your dashboard" (S12), Operator home, and deep links retarget to hostnames.Dashboard; (e) the harness — the drive legs that open the panel at the apex retarget, and the drive that proves the cutover (a member at the apex sees the Portal, an operator's old bookmark lands on the panel); (f) rollout — whether the cutover ships before or with the Portal home (a Portal-less apex that redirects is a valid first step?). Output: rulings on the map; the one-way door is stated as such in the eventual DDR.

Sharpened by the cutover research (#1338)

  • The apex and admin.<apex> are one host-blind origin; the operator API (/api/v1/members, /fleet, /provision/* …) has no in-handler auth and is OPEN at the ungated apex today. Item (a) must also rule the apex API posture: an allow-list of member/agent/Portal routes proxied at the apex (/api/v1/enroll/*, /api/v1/fleet/report, /api/mail, /authz/*, /get, /brand/*, the Portal's own reads) with everything else answered only on admin.<apex> behind the gate — vs wholesale proxy as today.
  • Item (c): a 308 to admin.<apex>{uri} rendered without the host-side forward port is unreachable on the private path — carry the port (DDR 0165's reachable shape) or skip the redirect on the private render.
  • / is Overview's path too: a root bookmark lands on the Portal by construction, so the operator's control-panel door on the home is load-bearing, not a nicety.
  • The kanidm invite link is host-less (internal/member/invite.go) and would resolve under admin.<apex> once the roster lives there — mint it absolute on hostnames.Portal.
## Parent [The Portal map (#1336)](https://git.matou.nz/Matou/idss/issues/1336) ## Question Ruling 7 is a one-way door; rule its exact shape from the cutover inventory: (a) the redirect rule — which old apex paths redirect to `admin.<apex>` (the panel's tab list) and which are the Portal's own (`/`, `/mail`, `/join`, `/authz/*`, `/get`, `/brand/*`); (b) the served bundle — one bundle with a `portal` entry chosen by host/path, or two builds; how the brand doorway and the same-origin API hold for both hosts; (c) the private path — what `admin.<apex>` means there (DDR 0172's CA-pinned app window) and whether the private apex serves the Portal or keeps the plain forward; (d) the app's "Open your dashboard" (S12), Operator home, and deep links retarget to `hostnames.Dashboard`; (e) the harness — the drive legs that open the panel at the apex retarget, and the drive that proves the cutover (a member at the apex sees the Portal, an operator's old bookmark lands on the panel); (f) rollout — whether the cutover ships before or with the Portal home (a Portal-less apex that redirects is a valid first step?). Output: rulings on the map; the one-way door is stated as such in the eventual DDR. ## Sharpened by the cutover research (#1338) - The apex and `admin.<apex>` are one host-blind origin; the operator API (`/api/v1/members`, `/fleet`, `/provision/*` …) has no in-handler auth and is OPEN at the ungated apex today. Item (a) must also rule the **apex API posture**: an allow-list of member/agent/Portal routes proxied at the apex (`/api/v1/enroll/*`, `/api/v1/fleet/report`, `/api/mail`, `/authz/*`, `/get`, `/brand/*`, the Portal's own reads) with everything else answered only on `admin.<apex>` behind the gate — vs wholesale proxy as today. - Item (c): a `308` to `admin.<apex>{uri}` rendered without the host-side forward port is unreachable on the private path — carry the port (DDR 0165's reachable shape) or skip the redirect on the private render. - `/` is Overview's path too: a root bookmark lands on the Portal by construction, so the operator's control-panel door on the home is load-bearing, not a nicety. - The kanidm invite link is host-less (`internal/member/invite.go`) and would resolve under `admin.<apex>` once the roster lives there — mint it absolute on `hostnames.Portal`.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: Applying no-triage. This is a /wayfinder workflow ticket (part of the Portal map #1336 family), not a triage-surface bug/enhancement. Triage automation must skip it so it stays owned by /wayfinder (grilling → decisions → child specs), exactly as the entire #1293 wayfinder map family already does.

Why it is a two-way door: it is a single revertible label change (remove no-triage to return it to the triage surface), touches no code, and widens no posture. It is not on the one-way-door list — no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend.

What proves it: the established convention on this tracker — every open ticket of the prior wayfinder map (#1293 and children #1297–#1304) carries no-triage; this batch (#1336–#1342) was simply filed before the marker was applied. docs/agents/issue-tracker.md ("Wayfinding operations") defines these as /wayfinder-managed, and triage-labels.md defines no-triage as "triage automation must skip this issue."

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** Applying `no-triage`. This is a `/wayfinder` workflow ticket (part of the Portal map #1336 family), not a triage-surface bug/enhancement. Triage automation must skip it so it stays owned by `/wayfinder` (grilling → decisions → child specs), exactly as the entire #1293 wayfinder map family already does. **Why it is a two-way door:** it is a single revertible label change (remove `no-triage` to return it to the triage surface), touches no code, and widens no posture. It is not on the one-way-door list — no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend. **What proves it:** the established convention on this tracker — every open ticket of the prior wayfinder map (#1293 and children #1297–#1304) carries `no-triage`; this batch (#1336–#1342) was simply filed before the marker was applied. `docs/agents/issue-tracker.md` ("Wayfinding operations") defines these as `/wayfinder`-managed, and `triage-labels.md` defines `no-triage` as "triage automation must skip this issue."
Author
Owner

Resolution — 2026-09-09 (apex API posture + IDIP scope confirmed by Ben; the rest agent defaults in auto mode at Ben's instruction, ADR 0174 — veto anytime)

  1. Redirect rule — exact, closed: the panel's tab list /overview /fleet /services /members /backups /settings (+ /* under each) → 308 https://admin.<apex>{uri}, rendered as one @panel matcher inside renderPortalRoute BEFORE the proxy, byte-pinned by the render tests. Nothing else redirects: / is the Portal (an operator's root bookmark lands on the Portal by construction — the Control panel door is load-bearing); unknown apex paths are the Portal's own 404, never a catch-all redirect. (Agent default under ADR 0174 — veto anytime.)
  2. Apex API posture = an allow-list at the apex (Ben, security posture): the apex route forwards only /api/v1/enroll/{redeem,pair,requests/*} + /api/v1/fleet/report (device faces, browserless), /api/v1/join/* + /haere-mai/* + /idip/join/* (join), /api/v1/mail/* (member mail), /api/v1/me + /api/v1/me/doors (the Portal's reads), /api/v1/healthz, /authz/*, /brand/*, /get, /mesh/*, and the bundle's assets; every other /api/v1/* path on the apex answers 404. The operator API is reachable only on admin.<apex> behind the gate. Caddy-only, byte-pinned — the #512 debt closes here. The harness assumption "the portal API is not cookie-gated" (droplet journey) is retargeted to admin.<apex> with the cookie in the same spec.
  3. Served bundle: ONE bundle; the entry boots by HOST (main.ts: host == apex → the portal entry; else the operator SPA) — a member at admin.<apex>/ who is an operator still gets the panel. Brand doorway and same-origin API hold on both hosts. (Agent default under ADR 0174 — veto anytime.)
  4. Private path: the private render SKIPS the @panel redirect (no bookmarks to honour; the host-side forward port is unknown to Caddy); the private apex serves the Portal through the same helper. Reach (the apex resolves only inside the CA-pinned app window, DDR 0165/0172 story 2 — unbuilt) is a stated limit the cutover neither fixes nor worsens. (Agent default under ADR 0174 — veto anytime.)
  5. The app and the seat: S12 "Open your dashboard", Operator home's dashboard button and every deep link open hostnames.Dashboard(apex); the seat/hand-off carries BOTH addresses (portal = hostnames.Portal, dashboard = hostnames.Dashboard, portful on the private path). The IDIP S12 hand-off, when built, opens the dashboard door too. (Agent default under ADR 0174 — veto anytime.)
  6. Harness: one panelAddress fixture replaces the ~80 portal-address-as-panel sites; a new cutover leg proves the split (a member at / sees the Portal; an operator's /fleet bookmark → 308 → the panel; /api/v1/members at the apex → 404); payload re-warm + reseed-publish.yml before the proving drive (served bits vs main). (Agent default under ADR 0174 — veto anytime.)
  7. Rollout: the cutover ships WITH the Portal's signed-out face + /me + sign-out as the first slice (a redirecting apex that serves nothing is worse than today); the home and doors follow in the DAG. The eventual DDR states the one-way door. (Agent default under ADR 0174 — veto anytime.)
  8. Small fixes riding the spec: RefusalBrand{PortalURL: hostnames.Portal} (#1345); the kanidm invite link minted absolute on hostnames.Portal (internal/member/invite.go); the first-run subtitle's portal URL. www.<apex> / unrouted labels → out of scope (noted on the map). (Agent default under ADR 0174 — veto anytime.)
## Resolution — 2026-09-09 (apex API posture + IDIP scope confirmed by Ben; the rest agent defaults in auto mode at Ben's instruction, ADR 0174 — veto anytime) 1. **Redirect rule — exact, closed:** the panel's tab list `/overview /fleet /services /members /backups /settings` (+ `/*` under each) → `308 https://admin.<apex>{uri}`, rendered as one `@panel` matcher inside `renderPortalRoute` BEFORE the proxy, byte-pinned by the render tests. Nothing else redirects: `/` is the Portal (an operator's root bookmark lands on the Portal by construction — the Control panel door is load-bearing); unknown apex paths are the Portal's own 404, never a catch-all redirect. *(Agent default under ADR 0174 — veto anytime.)* 2. **Apex API posture = an allow-list at the apex** *(Ben, security posture)*: the apex route forwards only `/api/v1/enroll/{redeem,pair,requests/*}` + `/api/v1/fleet/report` (device faces, browserless), `/api/v1/join/*` + `/haere-mai/*` + `/idip/join/*` (join), `/api/v1/mail/*` (member mail), `/api/v1/me` + `/api/v1/me/doors` (the Portal's reads), `/api/v1/healthz`, `/authz/*`, `/brand/*`, `/get`, `/mesh/*`, and the bundle's assets; every other `/api/v1/*` path on the apex answers 404. The operator API is reachable only on `admin.<apex>` behind the gate. Caddy-only, byte-pinned — the #512 debt closes here. The harness assumption "the portal API is not cookie-gated" (droplet journey) is retargeted to `admin.<apex>` with the cookie in the same spec. 3. **Served bundle:** ONE bundle; the entry boots by HOST (`main.ts`: host == apex → the `portal` entry; else the operator SPA) — a member at `admin.<apex>/` who is an operator still gets the panel. Brand doorway and same-origin API hold on both hosts. *(Agent default under ADR 0174 — veto anytime.)* 4. **Private path:** the private render SKIPS the `@panel` redirect (no bookmarks to honour; the host-side forward port is unknown to Caddy); the private apex serves the Portal through the same helper. Reach (the apex resolves only inside the CA-pinned app window, DDR 0165/0172 story 2 — unbuilt) is a stated limit the cutover neither fixes nor worsens. *(Agent default under ADR 0174 — veto anytime.)* 5. **The app and the seat:** S12 "Open your dashboard", Operator home's dashboard button and every deep link open `hostnames.Dashboard(apex)`; the seat/hand-off carries BOTH addresses (portal = `hostnames.Portal`, dashboard = `hostnames.Dashboard`, portful on the private path). The IDIP S12 hand-off, when built, opens the dashboard door too. *(Agent default under ADR 0174 — veto anytime.)* 6. **Harness:** one `panelAddress` fixture replaces the ~80 portal-address-as-panel sites; a new cutover leg proves the split (a member at `/` sees the Portal; an operator's `/fleet` bookmark → 308 → the panel; `/api/v1/members` at the apex → 404); payload re-warm + `reseed-publish.yml` before the proving drive (served bits vs main). *(Agent default under ADR 0174 — veto anytime.)* 7. **Rollout:** the cutover ships WITH the Portal's signed-out face + `/me` + sign-out as the first slice (a redirecting apex that serves nothing is worse than today); the home and doors follow in the DAG. The eventual DDR states the one-way door. *(Agent default under ADR 0174 — veto anytime.)* 8. **Small fixes riding the spec:** `RefusalBrand{PortalURL: hostnames.Portal}` (#1345); the kanidm invite link minted absolute on `hostnames.Portal` (`internal/member/invite.go`); the first-run subtitle's portal URL. `www.<apex>` / unrouted labels → out of scope (noted on the map). *(Agent default under ADR 0174 — veto anytime.)*
ben closed this issue 2026-09-09 17:37:18 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1341
No description provided.