IDIP sign-in page brand: live self-verify probe + brand-reach/#1688 drive assertions (#1705 follow-up) #1708

Closed
opened 2026-09-21 20:40:39 +00:00 by matou-build-agent · 2 comments

The idss-idp bridge now late-binds brand-kit.json at render time and inlines the community logo, so id.<apex>/login wears the community brand kit on a freshly founded community (#1705, fixes 1 & 2). Two verification items from #1705 remain — they need a LIVE founded community and so were out of scope for the seam slice:

Fix 3 (live): the founding brand step verifies the sign-in page before claiming it

internal/founding/deploy.go currently logs that the kanidm IdP skin was compiled and that the IDIP page late-binds the kit, but it does not FETCH id.<apex>/login and assert the accent token + community name (brand-reach style) before the row goes green. Add a post-deploy self-verify probe (alongside the existing public-entry TLS probe, deploy.go ~783) that fetches the sign-in page and checks the community accent + name, and the same verify for the control panel's Settings → Brand kit apply. The log/row must not claim the sign-in page unless the fetch confirmed it.

Fix 4 (live drives): assert the kit on /login

  • Brand-reach drive (#1277) gains the IDIP sign-in page (id.<apex>/login) as a checked surface (name in the served page + the kit accent).
  • The IDIP prove-it drive (#1688) asserts the kit on /login after founding (accent + community name + logo, not the matou preset).

Found while fixing #1705 (the IDIP sign-in page wore no brand kit). The code fix landed; this ticket tracks the live proof.

The idss-idp bridge now late-binds `brand-kit.json` at render time and inlines the community logo, so `id.<apex>/login` wears the community brand kit on a freshly founded community (#1705, fixes 1 & 2). Two verification items from #1705 remain — they need a LIVE founded community and so were out of scope for the seam slice: ## Fix 3 (live): the founding brand step verifies the sign-in page before claiming it `internal/founding/deploy.go` currently logs that the kanidm IdP skin was compiled and that the IDIP page late-binds the kit, but it does not FETCH `id.<apex>/login` and assert the accent token + community name (brand-reach style) before the row goes green. Add a post-deploy self-verify probe (alongside the existing public-entry TLS probe, deploy.go ~783) that fetches the sign-in page and checks the community accent + name, and the same verify for the control panel's Settings → Brand kit apply. The log/row must not claim the sign-in page unless the fetch confirmed it. ## Fix 4 (live drives): assert the kit on /login - Brand-reach drive (#1277) gains the IDIP sign-in page (`id.<apex>/login`) as a checked surface (name in the served page + the kit accent). - The IDIP prove-it drive (#1688) asserts the kit on `/login` after founding (accent + community name + logo, not the matou preset). Found while fixing #1705 (the IDIP sign-in page wore no brand kit). The code fix landed; this ticket tracks the live proof.
Author
Member

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

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

close-report for #1708 — status success

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

envelope
{
  "issue": 1708,
  "status": "success",
  "commits": [
    "d79ec2e6"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_dev.go",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "app/tests/e2e/fixtures/idip.ts",
    "app/tests/e2e/provision-brands.live.spec.ts",
    "control-plane/cmd/control-plane/brandapply_signinverify_test.go",
    "control-plane/cmd/control-plane/compose.go",
    "control-plane/cmd/control-plane/main.go",
    "internal/brandprobe/brandprobe.go",
    "internal/brandprobe/brandprobe_test.go",
    "internal/doorprobe/prober.go",
    "internal/doorprobe/prober_test.go",
    "internal/founding/deploy.go",
    "internal/founding/deploy_signinverify_internal_test.go",
    "internal/founding/orchestrator.go",
    "internal/founding/testing/fakes.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/brandprobe/ ./internal/doorprobe/ ./internal/founding/ ./internal/controlapi/ ./control-plane/... ./app/helper/cmd/helper/",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vue-tsc -p app/tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vitest run tests/e2e/fixtures/idip.test.ts tests/e2e/fixtures/brandreach.test.ts tests/unit/foundingHandOffIdip.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm exec eslint app/tests/e2e/fixtures/idip.ts app/tests/e2e/provision-brands.live.spec.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Fix 3 (live) founding: the founding brand step fetches id.<apex>/login and asserts the community accent + name before claiming the sign-in page": "internal/founding/deploy.go verifySignInBrand (new founding.SignInBrandProbe seam) runs after the public-door TLS probe on the IDIP path; the brand row claims the sign-in page only when the served bytes carry the community name + accent (internal/brandprobe.MissingSignInMarks), else logs an honest not-confirmed. Proven by internal/founding/deploy_signinverify_internal_test.go TestVerifySignInBrand_* and internal/brandprobe tests.",
    "Fix 3 (live) control panel: the same verify for Settings -> Brand kit apply": "control-plane/cmd/control-plane/compose.go configRepoSettings.ApplyBrandKit runs the same fetch after its deploy and appends id.<apex>/login to the coverage report Unreached when the page does not wear the new kit. Proven by control-plane TestBrandApply_SignInVerify* / TestBrandApply_NoSignInProbeLeavesReportUnchanged.",
    "The log/row must not claim the sign-in page unless the fetch confirmed it": "The claim log line is gated on brandprobe.MissingSignInMarks == empty AND a 2xx fetch; a dead/unwired/unbranded read logs not-confirmed and never claims (ADR 0100). Production wires the real reach internal/doorprobe.FetchSignInPage (TestFetchSignInPage_*).",
    "Fix 4: Brand-reach drive (#1277) gains the sign-in page (id.<apex>/login) as a checked surface (name + kit accent)": "app/tests/e2e/provision-brands.live.spec.ts new signin-wears-kit leg asserts the sign-in page wears KIT_NAME + KIT_ACCENT once, via the first live service door's /login using the proven assertBrandedLogin mechanism.",
    "Fix 4: the IDIP prove-it drive (#1688) asserts the kit on /login after founding (accent + community name + logo, not the matou preset)": "app/tests/e2e/fixtures/idip.ts assertBrandedBridgeLogin now also asserts the community's own inlined logo (--oc-logo-full data URL), not the matou-preset letter-mark, alongside the existing name + best-effort accent checks. vue-tsc + idip/brandreach vitest green."
  },
  "summary": "The founding brand step and the control-panel brand apply self-verify the IDIP sign-in page (id.<apex>/login) before claiming it, and the IDIP prove-it and brand-reach drives assert the community kit on /login.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1708 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1708, "status": "success", "commits": [ "d79ec2e6" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_dev.go", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "app/tests/e2e/fixtures/idip.ts", "app/tests/e2e/provision-brands.live.spec.ts", "control-plane/cmd/control-plane/brandapply_signinverify_test.go", "control-plane/cmd/control-plane/compose.go", "control-plane/cmd/control-plane/main.go", "internal/brandprobe/brandprobe.go", "internal/brandprobe/brandprobe_test.go", "internal/doorprobe/prober.go", "internal/doorprobe/prober_test.go", "internal/founding/deploy.go", "internal/founding/deploy_signinverify_internal_test.go", "internal/founding/orchestrator.go", "internal/founding/testing/fakes.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go test ./internal/brandprobe/ ./internal/doorprobe/ ./internal/founding/ ./internal/controlapi/ ./control-plane/... ./app/helper/cmd/helper/", "exit_code": 0 }, { "command": "pnpm exec vue-tsc -p app/tsconfig.json --noEmit", "exit_code": 0 }, { "command": "pnpm exec vitest run tests/e2e/fixtures/idip.test.ts tests/e2e/fixtures/brandreach.test.ts tests/unit/foundingHandOffIdip.test.ts", "exit_code": 0 }, { "command": "pnpm exec eslint app/tests/e2e/fixtures/idip.ts app/tests/e2e/provision-brands.live.spec.ts", "exit_code": 0 } ], "criteria": { "Fix 3 (live) founding: the founding brand step fetches id.<apex>/login and asserts the community accent + name before claiming the sign-in page": "internal/founding/deploy.go verifySignInBrand (new founding.SignInBrandProbe seam) runs after the public-door TLS probe on the IDIP path; the brand row claims the sign-in page only when the served bytes carry the community name + accent (internal/brandprobe.MissingSignInMarks), else logs an honest not-confirmed. Proven by internal/founding/deploy_signinverify_internal_test.go TestVerifySignInBrand_* and internal/brandprobe tests.", "Fix 3 (live) control panel: the same verify for Settings -> Brand kit apply": "control-plane/cmd/control-plane/compose.go configRepoSettings.ApplyBrandKit runs the same fetch after its deploy and appends id.<apex>/login to the coverage report Unreached when the page does not wear the new kit. Proven by control-plane TestBrandApply_SignInVerify* / TestBrandApply_NoSignInProbeLeavesReportUnchanged.", "The log/row must not claim the sign-in page unless the fetch confirmed it": "The claim log line is gated on brandprobe.MissingSignInMarks == empty AND a 2xx fetch; a dead/unwired/unbranded read logs not-confirmed and never claims (ADR 0100). Production wires the real reach internal/doorprobe.FetchSignInPage (TestFetchSignInPage_*).", "Fix 4: Brand-reach drive (#1277) gains the sign-in page (id.<apex>/login) as a checked surface (name + kit accent)": "app/tests/e2e/provision-brands.live.spec.ts new signin-wears-kit leg asserts the sign-in page wears KIT_NAME + KIT_ACCENT once, via the first live service door's /login using the proven assertBrandedLogin mechanism.", "Fix 4: the IDIP prove-it drive (#1688) asserts the kit on /login after founding (accent + community name + logo, not the matou preset)": "app/tests/e2e/fixtures/idip.ts assertBrandedBridgeLogin now also asserts the community's own inlined logo (--oc-logo-full data URL), not the matou-preset letter-mark, alongside the existing name + best-effort accent checks. vue-tsc + idip/brandreach vitest green." }, "summary": "The founding brand step and the control-panel brand apply self-verify the IDIP sign-in page (id.<apex>/login) before claiming it, and the IDIP prove-it and brand-reach drives assert the community kit on /login.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1708
No description provided.