IDIP sign-in page wears NO brand kit on a freshly founded community — the bridge reads the kit once at start, five minutes before founding writes it #1705

Closed
opened 2026-09-21 20:25:21 +00:00 by ben · 3 comments
Owner

What Ben saw

https://whakatohea-demo.idss.nz → id.<apex>/login: the Mātou-preset sage colour, a "W" letter-mark, and "Nau mai — sign in to whakatohea-demo.idss.nz". The community's kit (accent #4f4f4f, secondary #8a0007, its wordmark, greeting "Nau mai. Welcome.", name "WHAKATŌHEA DEMO") appears nowhere. The founding deploy log claims: brand kit applied to every bound surface (portal, sign-in, dashboard, catalogue services).

Cause (read on the gateway)

  • idss-idp entered active at 19:54:10Z. internal/idp/config.go:244 loadBrand(IDSS_IDP_BRAND_FILE) runs ONCE in config load; an absent file falls back to the matou preset with the name derived from the issuer host — exactly what is on screen.
  • /srv/idss/config/idss/brand-kit.json was written at 19:59 (the founding brand step). Nothing restarts or signals the bridge afterwards. The file is present and readable by the idss-idp user — it has simply never been read.
  • Same hole later: a kit re-saved from the control panel (Settings → Brand kit) will not reach the sign-in page either.
  • Separate, same surface: the kit's Logo.Source is the relative brand/whakatohea-logo.jpeg with Bytes: null, and /srv/idss/config/brand/ does not exist on the gateway — so even after a re-read the logo likely falls to the letter-mark. Find where founding lands the logo bytes for the bridge and make the path resolvable.

Fix

  1. The bridge late-binds its brand: re-read the kit on a short cache / mtime check at render time (the file already says the app-door facts use "the same late-bind the brand source" — make that true for the page itself). No restart needed, ever.
  2. The logo resolves: bytes inlined into the kit the bridge reads, or a path the bridge user can open.
  3. The founding brand step and the panel's brand apply verify the sign-in page before claiming it: fetch id.<apex>/login and check the accent token + community name (brand-reach style). The log line must not say "applied to … sign-in" unless it was.
  4. Brand-reach drive (#1277) gains the IDIP sign-in page as a surface; the IDIP prove-it drive (#1688) asserts the kit on /login after founding.

Repair on the demo

systemctl restart idss-idp on the gateway picks up colours, name and greeting (Ben's hands).

Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build idss_0.1.0_amd64.deb sha256 ecff1f99…6e87febc, source 5b910ef3.

## What Ben saw `https://whakatohea-demo.idss.nz` → `id.<apex>/login`: the Mātou-preset sage colour, a "W" letter-mark, and "Nau mai — sign in to whakatohea-demo.idss.nz". The community's kit (accent `#4f4f4f`, secondary `#8a0007`, its wordmark, greeting "Nau mai. Welcome.", name "WHAKATŌHEA DEMO") appears nowhere. The founding deploy log claims: *brand kit applied to every bound surface (portal, sign-in, dashboard, catalogue services)*. ## Cause (read on the gateway) - `idss-idp` entered active at **19:54:10Z**. `internal/idp/config.go:244` `loadBrand(IDSS_IDP_BRAND_FILE)` runs ONCE in config load; an absent file falls back to the matou preset with the name derived from the issuer host — exactly what is on screen. - `/srv/idss/config/idss/brand-kit.json` was written at **19:59** (the founding *brand* step). Nothing restarts or signals the bridge afterwards. The file is present and readable by the `idss-idp` user — it has simply never been read. - Same hole later: a kit re-saved from the control panel (Settings → Brand kit) will not reach the sign-in page either. - Separate, same surface: the kit's `Logo.Source` is the relative `brand/whakatohea-logo.jpeg` with `Bytes: null`, and `/srv/idss/config/brand/` does not exist on the gateway — so even after a re-read the logo likely falls to the letter-mark. Find where founding lands the logo bytes for the bridge and make the path resolvable. ## Fix 1. The bridge late-binds its brand: re-read the kit on a short cache / mtime check at render time (the file already says the app-door facts use "the same late-bind the brand source" — make that true for the page itself). No restart needed, ever. 2. The logo resolves: bytes inlined into the kit the bridge reads, or a path the bridge user can open. 3. The founding *brand* step and the panel's brand apply **verify** the sign-in page before claiming it: fetch `id.<apex>/login` and check the accent token + community name (brand-reach style). The log line must not say "applied to … sign-in" unless it was. 4. Brand-reach drive (#1277) gains the IDIP sign-in page as a surface; the IDIP prove-it drive (#1688) asserts the kit on `/login` after founding. ## Repair on the demo `systemctl restart idss-idp` on the gateway picks up colours, name and greeting (Ben's hands). Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build `idss_0.1.0_amd64.deb` sha256 `ecff1f99…6e87febc`, source `5b910ef3`.

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

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

close-report for #1705 — status success

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

envelope
{
  "issue": 1705,
  "status": "success",
  "commits": [
    "340f357d7ab8869d1418cf0d4efec0021da5e261"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/brandkit/kit.go",
    "internal/founding/deploy.go",
    "internal/founding/draft.go",
    "internal/founding/logo_test.go",
    "internal/idp/brand.go",
    "internal/idp/config.go",
    "internal/idp/deviceapprove.go",
    "internal/idp/provider.go",
    "internal/idp/signin.go",
    "internal/idp/brand_latebind_seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/... ./internal/founding/... ./internal/brandkit/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Fix 1 — the bridge late-binds its brand: re-read the kit on a short cache / mtime check at render time, no restart": "internal/idp/brand.go brandSource re-reads brand-kit.json on a stat (mtime+size) gate per render; login/deviceApproval hold it; Config.BrandFile carries the path. Proven by TestBrandSource_LateBindsKitWrittenAfterStart (fallback before founding writes, community kit on the next render) and TestBrandSource_ReReadsPanelResave (a panel re-save is picked up).",
    "Fix 1b — a kit re-saved from the control panel reaches the sign-in page too": "Same brandSource stat gate fires on any in-place re-write; TestBrandSource_ReReadsPanelResave.",
    "Fix 2 — the logo resolves: bytes inlined into the kit the bridge reads": "internal/idp/brand.go logoDataURL inlines LogoCircle.Bytes / source Logo.Bytes as an RFC 2397 data URL bound to --oc-logo-full (the var the page reads); internal/founding/draft.go brandKit(false) decodes the source LogoData onto Logo.Bytes. Proven by TestSignInPage_LogoBytesInlinedAsDataURL, TestSignInPage_NoBytesKeepsLetterMark, TestBrandKit_SourceLogoBytesLandOnPersistedProjection.",
    "Fix 3 — the founding brand step's log must not claim 'applied to … sign-in' unless it was": "internal/founding/deploy.go: the compile step now names only the compiled surfaces (portal, kanidm IdP skin, dashboard, catalogue); a line at the community-header write names the IDIP sign-in page late-binding the kit. The live fetch-and-check probe of id.<apex>/login is deferred to #1708 (needs a live founded community).",
    "Fix 4 — brand-reach (#1277) + IDIP prove-it (#1688) drives assert the kit on /login": "Deferred to #1708 — live e2e drive assertions that need a real founded community; not unit-provable in this seam slice."
  },
  "summary": "The IDIP sign-in (and device) page late-binds brand-kit.json at render time and inlines the community logo, so a freshly founded community wears its own accent, name, greeting and logo with no restart; the founding log no longer over-claims the sign-in page.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1705 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1705, "status": "success", "commits": [ "340f357d7ab8869d1418cf0d4efec0021da5e261" ], "changed_files": [ "STATUS.md", "internal/brandkit/kit.go", "internal/founding/deploy.go", "internal/founding/draft.go", "internal/founding/logo_test.go", "internal/idp/brand.go", "internal/idp/config.go", "internal/idp/deviceapprove.go", "internal/idp/provider.go", "internal/idp/signin.go", "internal/idp/brand_latebind_seam_test.go" ], "tests": [ { "command": "go test ./internal/idp/... ./internal/founding/... ./internal/brandkit/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "gofmt -l internal/", "exit_code": 0 } ], "criteria": { "Fix 1 — the bridge late-binds its brand: re-read the kit on a short cache / mtime check at render time, no restart": "internal/idp/brand.go brandSource re-reads brand-kit.json on a stat (mtime+size) gate per render; login/deviceApproval hold it; Config.BrandFile carries the path. Proven by TestBrandSource_LateBindsKitWrittenAfterStart (fallback before founding writes, community kit on the next render) and TestBrandSource_ReReadsPanelResave (a panel re-save is picked up).", "Fix 1b — a kit re-saved from the control panel reaches the sign-in page too": "Same brandSource stat gate fires on any in-place re-write; TestBrandSource_ReReadsPanelResave.", "Fix 2 — the logo resolves: bytes inlined into the kit the bridge reads": "internal/idp/brand.go logoDataURL inlines LogoCircle.Bytes / source Logo.Bytes as an RFC 2397 data URL bound to --oc-logo-full (the var the page reads); internal/founding/draft.go brandKit(false) decodes the source LogoData onto Logo.Bytes. Proven by TestSignInPage_LogoBytesInlinedAsDataURL, TestSignInPage_NoBytesKeepsLetterMark, TestBrandKit_SourceLogoBytesLandOnPersistedProjection.", "Fix 3 — the founding brand step's log must not claim 'applied to … sign-in' unless it was": "internal/founding/deploy.go: the compile step now names only the compiled surfaces (portal, kanidm IdP skin, dashboard, catalogue); a line at the community-header write names the IDIP sign-in page late-binding the kit. The live fetch-and-check probe of id.<apex>/login is deferred to #1708 (needs a live founded community).", "Fix 4 — brand-reach (#1277) + IDIP prove-it (#1688) drives assert the kit on /login": "Deferred to #1708 — live e2e drive assertions that need a real founded community; not unit-provable in this seam slice." }, "summary": "The IDIP sign-in (and device) page late-binds brand-kit.json at render time and inlines the community logo, so a freshly founded community wears its own accent, name, greeting and logo with no restart; the founding log no longer over-claims the sign-in page.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Author
Owner

Demo: systemctl restart idss-idp at 20:35Z — the page now carries the kit's name, greeting and both colours (verified by fetching /login). Logo still the letter-mark: no --oc-logo-full is emitted because the kit's Logo.Source path does not exist on the gateway — the second half of this ticket, confirmed.

**Demo:** `systemctl restart idss-idp` at 20:35Z — the page now carries the kit's name, greeting and both colours (verified by fetching `/login`). Logo still the letter-mark: no `--oc-logo-full` is emitted because the kit's `Logo.Source` path does not exist on the gateway — the second half of this ticket, confirmed.
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#1705
No description provided.