portal: the apex wears IDSS, not the community — the brand read is 404'd by the cutover allowlist (both paths) #1410

Closed
opened 2026-09-12 04:17:29 +00:00 by ben · 16 comments
Owner

Brand drift, ruled by Ben 2026-09-11 off the private-path drive's own screenshot.

The Portal at the apex wears the product's name, IDSS, instead of the
community's. The community's accent colour is applied, which is what makes it
read as a styling near-miss rather than the data fault it is.

Symptom

Live evidence: private-path drive 20260912T030805Z (GREEN, 14 legs, on
origin/main d64e3ac5), artifact artifacts/portal/private-pt-s0.png. The
freshly founded community is "E2E Drive". Its signed-out apex face (PT-S0)
renders the monogram I and the name IDSS — teal accent correct, name
wrong.

Cause — a collision between #1365 and #1369, not a hardcoded wordmark

IDSS is not hardcoded into the header. It is the deliberate neutral fallback:

  • dashboard/src/lib/portal.ts:107 —
    export const NEUTRAL_PORTAL_BRAND: PortalBrand = { community: 'IDSS', greeting: '' };
    documented as "a resting / unreachable control plane — never a fabricated
    community name". That is correct behaviour for a fault.
  • dashboard/src/lib/api/portalClient.ts:33 reads the brand from
    BRAND_PATH = '/api/v1/settings/brand-kit', and at :150 returns
    { ...NEUTRAL_PORTAL_BRAND } on !res.ok.
  • internal/clan/frontdoor.go — apexAllowList (ADR 0233 §2) admits exactly
    nine /api/v1/* paths at the apex (me, me/doors, healthz, join/*,
    mail/*, enroll/*, fleet/report). /api/v1/settings/brand-kit is not
    among them
    , and renderPortalRoute then emits
    @api path /api/v1/* → respond @api 404.

So the Portal's brand read 404s at the apex on every founded community, falls
back to neutral, and the door stops saying whose it is.

This inverts PortalBrandHeader.vue's own stated contract — "Even a door says
whose it is (DDR 0007/0073): … the name and greeting are the brand kit's own
voice"
— and the allowlist's own stated intent, which says it carries "the join
doors, and the Portal's own supporting routes". The brand read is one of the
Portal's supporting routes; it was simply never added when the cutover landed.

Scope: BOTH paths, not just private

apexAllowList is shared. renderPortalRoute is called from renderCaddy
(public, :412) and renderPrivateCaddy (private, :865); the only difference
between the two renders is the panelRedirect block. Every community's Portal
wears IDSS at its apex.

The accent survives because the compiled brand artifacts render the shell offline
(renderPortalRoute's closing comment) — only the name and greeting come from
the API, which is exactly the split the screenshot shows.

Why it survived both test tiers

  • dashboard/tests/unit/portalEntry.test.ts:153 stubs
    /api/v1/settings/brand-kit with a 200, so the unit test proves the happy path
    and structurally cannot observe the apex 404.
  • app/tests/e2e/fixtures/cutover.ts asserts the apex does not redirect and
    that the operator API is 404 — it never asserts the rendered community name.

Served bits vs. the bits under test, again.

Prefer a narrow public read over widening the allowlist:

  1. Serve GET /api/v1/portal/brand returning only {name, greeting} — which is
    exactly PortalBrand (portal.ts:98-102), and exactly what
    portalClient.ts:155 already maps.
  2. Add that path to apexAllowList; re-point BRAND_PATH.
  3. Keep NEUTRAL_PORTAL_BRAND as the fallback for a genuine fault — it is right,
    it was just being hit unconditionally.

Alternative considered and not recommended: allowlisting
/api/v1/settings/brand-kit itself. It is a one-line change, but it hands an
anonymous stranger the entire BrandKitDraft (internal/controlapi/settings.go:69
— logo_data / logo_circle_data blobs and logo_source config references), and
it puts an operator /settings/ path back on the apex the cutover just cleared.
Nothing in the draft is secret, so this is a judgement call rather than a
security hole — if the implementer takes this route, say why in the commit.

Acceptance criteria

  1. A founded community's signed-out apex face (PT-S0) renders its own name,
    not IDSS, on the public path and the private path.
  2. The greeting renders when the brand kit sets one.
  3. NEUTRAL_PORTAL_BRAND still renders when the brand read genuinely faults
    (resting / unreachable control plane) — proven by a test that faults the read.
  4. The operator API stays 404 at the apex: no /api/v1/settings/* path becomes
    reachable there (or, if the allowlist route is taken, the exposure is stated
    and pinned).
  5. A regression guard at both tiers, since the happy-path stub is what hid
    this: a frontdoor_test.go pin that the Portal's brand route is in
    apexAllowList, and a live assertion of the rendered community name in
    app/tests/e2e/fixtures/cutover.ts so a drive catches it next time.
  6. docs/GOTCHAS.md gets the entry in the same commit (ADR 0160): a Portal face
    that renders the neutral brand is a 404'd brand read, not a styling bug.

Pointers

  • ADR 0233 (the cutover), DDR 0232 (the Portal), DDR 0007 / 0073 ("even a door
    says whose it is")
  • #1365 (portal entry faces — built the header), #1369 (the cutover — built the
    allowlist). This is the seam between them.
  • Drive evidence on bens-mac-04:
    ~/idss/test-results/private-path/20260912T030805Z/artifacts/portal/private-pt-s0.png
**Brand drift, ruled by Ben 2026-09-11 off the private-path drive's own screenshot.** The Portal at the apex wears the **product's** name, `IDSS`, instead of the community's. The community's accent colour *is* applied, which is what makes it read as a styling near-miss rather than the data fault it is. ## Symptom Live evidence: private-path drive `20260912T030805Z` (GREEN, 14 legs, on `origin/main` `d64e3ac5`), artifact `artifacts/portal/private-pt-s0.png`. The freshly founded community is **"E2E Drive"**. Its signed-out apex face (PT-S0) renders the monogram `I` and the name **`IDSS`** — teal accent correct, name wrong. ## Cause — a collision between #1365 and #1369, not a hardcoded wordmark `IDSS` is not hardcoded into the header. It is the deliberate *neutral fallback*: - `dashboard/src/lib/portal.ts:107` — `export const NEUTRAL_PORTAL_BRAND: PortalBrand = { community: 'IDSS', greeting: '' };` documented as "a resting / unreachable control plane — never a fabricated community name". That is correct behaviour **for a fault**. - `dashboard/src/lib/api/portalClient.ts:33` reads the brand from `BRAND_PATH = '/api/v1/settings/brand-kit'`, and at `:150` returns `{ ...NEUTRAL_PORTAL_BRAND }` on `!res.ok`. - `internal/clan/frontdoor.go` — `apexAllowList` (ADR 0233 §2) admits exactly nine `/api/v1/*` paths at the apex (`me`, `me/doors`, `healthz`, `join/*`, `mail/*`, `enroll/*`, `fleet/report`). **`/api/v1/settings/brand-kit` is not among them**, and `renderPortalRoute` then emits `@api path /api/v1/*` → `respond @api 404`. So the Portal's brand read 404s at the apex on every founded community, falls back to neutral, and the door stops saying whose it is. This inverts `PortalBrandHeader.vue`'s own stated contract — *"Even a door says whose it is (DDR 0007/0073): … the name and greeting are the brand kit's own voice"* — and the allowlist's own stated intent, which says it carries "the join doors, **and the Portal's own supporting routes**". The brand read is one of the Portal's supporting routes; it was simply never added when the cutover landed. ## Scope: BOTH paths, not just private `apexAllowList` is shared. `renderPortalRoute` is called from `renderCaddy` (public, `:412`) and `renderPrivateCaddy` (private, `:865`); the only difference between the two renders is the `panelRedirect` block. Every community's Portal wears `IDSS` at its apex. The accent survives because the compiled brand artifacts render the shell offline (`renderPortalRoute`'s closing comment) — only the *name and greeting* come from the API, which is exactly the split the screenshot shows. ## Why it survived both test tiers - `dashboard/tests/unit/portalEntry.test.ts:153` **stubs** `/api/v1/settings/brand-kit` with a 200, so the unit test proves the happy path and structurally cannot observe the apex 404. - `app/tests/e2e/fixtures/cutover.ts` asserts the apex does *not* redirect and that the operator API is 404 — it never asserts the rendered community name. Served bits vs. the bits under test, again. ## Recommended fix Prefer a **narrow public read** over widening the allowlist: 1. Serve `GET /api/v1/portal/brand` returning only `{name, greeting}` — which is exactly `PortalBrand` (`portal.ts:98-102`), and exactly what `portalClient.ts:155` already maps. 2. Add that path to `apexAllowList`; re-point `BRAND_PATH`. 3. Keep `NEUTRAL_PORTAL_BRAND` as the fallback for a genuine fault — it is right, it was just being hit unconditionally. **Alternative considered and not recommended:** allowlisting `/api/v1/settings/brand-kit` itself. It is a one-line change, but it hands an anonymous stranger the entire `BrandKitDraft` (`internal/controlapi/settings.go:69` — `logo_data` / `logo_circle_data` blobs and `logo_source` config references), and it puts an operator `/settings/` path back on the apex the cutover just cleared. Nothing in the draft is secret, so this is a judgement call rather than a security hole — if the implementer takes this route, say why in the commit. ## Acceptance criteria 1. A founded community's signed-out apex face (PT-S0) renders **its own name**, not `IDSS`, on the public path and the private path. 2. The greeting renders when the brand kit sets one. 3. `NEUTRAL_PORTAL_BRAND` still renders when the brand read genuinely faults (resting / unreachable control plane) — proven by a test that faults the read. 4. The operator API stays 404 at the apex: no `/api/v1/settings/*` path becomes reachable there (or, if the allowlist route is taken, the exposure is stated and pinned). 5. **A regression guard at both tiers**, since the happy-path stub is what hid this: a `frontdoor_test.go` pin that the Portal's brand route is in `apexAllowList`, and a live assertion of the rendered community name in `app/tests/e2e/fixtures/cutover.ts` so a drive catches it next time. 6. `docs/GOTCHAS.md` gets the entry in the same commit (ADR 0160): *a Portal face that renders the neutral brand is a 404'd brand read, not a styling bug.* ## Pointers - ADR 0233 (the cutover), DDR 0232 (the Portal), DDR 0007 / 0073 ("even a door says whose it is") - #1365 (portal entry faces — built the header), #1369 (the cutover — built the allowlist). This is the seam between them. - Drive evidence on `bens-mac-04`: `~/idss/test-results/private-path/20260912T030805Z/artifacts/portal/private-pt-s0.png`

swarm-claim host=bens-mac-04 run=22225
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22225 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22235
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22235 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22235
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22235 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22240
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22240 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22240
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22240 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22249
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22249 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22249
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22249 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22260
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22260 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22262
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22262 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22262
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22262 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22280
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22280 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22287
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22287 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22291
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22291 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22297
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=22297 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22287
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22287 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1410 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1410,
  "status": "success",
  "commits": [
    "22d805ca"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/cutover.ts",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/portalClient.ts",
    "dashboard/tests/unit/portalEntry.test.ts",
    "docs/GOTCHAS.md",
    "internal/clan/frontdoor.go",
    "internal/clan/frontdoor_test.go",
    "internal/controlapi/settings.go",
    "internal/controlapi/settings_integration_test.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/controlapi/ ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./... && (cd broker && go build ./... && go vet ./... && go test ./...)",
      "exit_code": 0
    },
    {
      "command": "node scripts/generate-client.mjs --check (openapi-spec)",
      "exit_code": 0
    },
    {
      "command": "vitest run tests/unit/portalEntry.test.ts (dashboard, 30 passed)",
      "exit_code": 0
    },
    {
      "command": "vitest run (packages/openapi-spec, 8 passed)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json (dashboard + app)",
      "exit_code": 0
    },
    {
      "command": "eslint . (repo)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "1 — founded community's signed-out apex (PT-S0) renders its OWN name, not IDSS, on public AND private paths": "New GET /api/v1/portal/brand (internal/controlapi/settings.go) added to apexAllowList (internal/clan/frontdoor.go, shared by renderCaddy + renderPrivateCaddy); portalClient.ts BRAND_PATH re-pointed to it. frontdoor_test.go pins the route allow-listed on both renders; portalEntry.test.ts asserts the rendered community name is the community's, never 'IDSS'.",
    "2 — the greeting renders when the brand kit sets one": "PortalBrandWire returns {name, greeting}; portalClient maps greeting; portalEntry.test.ts PT-S0 test asserts the greeting renders (existing greeting assertions retained; BRAND stub carries greeting).",
    "3 — NEUTRAL_PORTAL_BRAND still renders on a genuine fault, proven by a test that faults the read": "portalEntry.test.ts 'wears the neutral brand ONLY when the brand read genuinely faults' faults the read (500) → community-name shows 'IDSS', greeting absent; settings_integration_test.go TestSettingsHandler_PortalBrandFaultIs500 pins the 500 server-side.",
    "4 — operator API stays 404 at the apex; no /api/v1/settings/* becomes reachable (exposure stated + pinned)": "The narrow read /api/v1/portal/brand carries ONLY name+greeting (never BrandKitDraft logo blobs/logo_source); frontdoor_test.go pins NO /api/v1/settings/ path is allow-listed; settings_integration_test.go TestSettingsHandler_PortalBrandReturnsOnlyNameAndGreeting pins exactly {name,greeting} on the wire.",
    "5 — regression guard at both tiers": "frontdoor_test.go pins the brand route is allow-listed (unit tier); app/tests/e2e/fixtures/cutover.ts assertApexWearsCommunityName asserts the live rendered community name (never neutral) on both public and private paths (drive tier).",
    "6 — docs/GOTCHAS.md entry in the same commit": "GOTCHAS #227 added in commit 22d805ca: 'A Portal face that renders the NEUTRAL brand is a 404'd brand read, not a styling bug.'"
  },
  "summary": "The signed-out Portal apex reads its community name over a new narrow allow-listed /api/v1/portal/brand instead of the un-allow-listed /settings/brand-kit, so a founded community's door wears its own name (not the neutral 'IDSS') on both paths, with regression guards at both tiers.",
  "blockers": []
}
**close-report** for #1410 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1410, "status": "success", "commits": [ "22d805ca" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/cutover.ts", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/portalClient.ts", "dashboard/tests/unit/portalEntry.test.ts", "docs/GOTCHAS.md", "internal/clan/frontdoor.go", "internal/clan/frontdoor_test.go", "internal/controlapi/settings.go", "internal/controlapi/settings_integration_test.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/controlapi/ ./internal/clan/", "exit_code": 0 }, { "command": "go build -tags dev ./... && (cd broker && go build ./... && go vet ./... && go test ./...)", "exit_code": 0 }, { "command": "node scripts/generate-client.mjs --check (openapi-spec)", "exit_code": 0 }, { "command": "vitest run tests/unit/portalEntry.test.ts (dashboard, 30 passed)", "exit_code": 0 }, { "command": "vitest run (packages/openapi-spec, 8 passed)", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json (dashboard + app)", "exit_code": 0 }, { "command": "eslint . (repo)", "exit_code": 0 } ], "criteria": { "1 — founded community's signed-out apex (PT-S0) renders its OWN name, not IDSS, on public AND private paths": "New GET /api/v1/portal/brand (internal/controlapi/settings.go) added to apexAllowList (internal/clan/frontdoor.go, shared by renderCaddy + renderPrivateCaddy); portalClient.ts BRAND_PATH re-pointed to it. frontdoor_test.go pins the route allow-listed on both renders; portalEntry.test.ts asserts the rendered community name is the community's, never 'IDSS'.", "2 — the greeting renders when the brand kit sets one": "PortalBrandWire returns {name, greeting}; portalClient maps greeting; portalEntry.test.ts PT-S0 test asserts the greeting renders (existing greeting assertions retained; BRAND stub carries greeting).", "3 — NEUTRAL_PORTAL_BRAND still renders on a genuine fault, proven by a test that faults the read": "portalEntry.test.ts 'wears the neutral brand ONLY when the brand read genuinely faults' faults the read (500) → community-name shows 'IDSS', greeting absent; settings_integration_test.go TestSettingsHandler_PortalBrandFaultIs500 pins the 500 server-side.", "4 — operator API stays 404 at the apex; no /api/v1/settings/* becomes reachable (exposure stated + pinned)": "The narrow read /api/v1/portal/brand carries ONLY name+greeting (never BrandKitDraft logo blobs/logo_source); frontdoor_test.go pins NO /api/v1/settings/ path is allow-listed; settings_integration_test.go TestSettingsHandler_PortalBrandReturnsOnlyNameAndGreeting pins exactly {name,greeting} on the wire.", "5 — regression guard at both tiers": "frontdoor_test.go pins the brand route is allow-listed (unit tier); app/tests/e2e/fixtures/cutover.ts assertApexWearsCommunityName asserts the live rendered community name (never neutral) on both public and private paths (drive tier).", "6 — docs/GOTCHAS.md entry in the same commit": "GOTCHAS #227 added in commit 22d805ca: 'A Portal face that renders the NEUTRAL brand is a 404'd brand read, not a styling bug.'" }, "summary": "The signed-out Portal apex reads its community name over a new narrow allow-listed /api/v1/portal/brand instead of the un-allow-listed /settings/brand-kit, so a founded community's door wears its own name (not the neutral 'IDSS') on both paths, with regression guards at both tiers.", "blockers": [] } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1410
No description provided.