control panel: Sign out does nothing (IDIP) — the button navigates to the bare IdP origin instead of the gate's /authz/signout #1712

Closed
opened 2026-09-21 21:02:56 +00:00 by ben · 2 comments
Owner

What happened

Whakatōhea Demo (rented + IDIP). Ben pressed Sign out in the control panel's side panel: nothing happens, he stays signed in. No sign-out request reaches the gateway (front-door log: none).

Cause

dashboard/src/entry/served.ts:185-187 wires sign-out as navigateTo(resolved.idpOrigin) — i.e. https://id.<apex> — and only when details.apexDomain resolved; otherwise the effect is absent and DashboardNavigator.signOut() just console.warns (dashboardNavigator.ts:234-244). Either branch is a dead button here:

  • the comment says "the kanidm session is ended where it lives (DDR 0155)" — written for Kanidm's own UI at the IdP origin. On IDIP https://id.<apex>/ answers 404; and even on Kanidm, landing on the IdP's home page ends nothing on the gate.
  • the real sign-out already exists and works: GET /authz/signout on the apex (internal/controlapi/signin.go:59,124) clears the gate's session cookie AND redirects to the IdP's discovered end_session_endpoint (verified live: 302 → https://id.<apex>/end_session?client_id=gate-oidc&post_logout_redirect_uri=https://<apex>/). Nothing in the panel calls it.

Fix

  • The served panel's sign-out effect is always present and always navigateTo('/authz/signout') (same-origin, both identity paths, no apex lookup needed). Delete the idpOrigin plumbing if nothing else uses it.
  • A button that cannot act must never be silent: the no-effect branch shows a visible notice, not a console line (ADR 0100).
  • Tests: unit — sign-out navigates to /authz/signout; drive — the operator role leg signs out from the panel chrome and the next visit to the apex asks for credentials again (both the Kanidm journey and the IDIP prove-it drive #1688). The manual testing guide §9.13 expects exactly this.

Security note: until this lands an operator on a shared computer cannot end their session from the UI.

Found on the hand re-founding of Whakatōhea Demo 2026-09-21, build source 5b910ef3.

## What happened Whakatōhea Demo (rented + IDIP). Ben pressed **Sign out** in the control panel's side panel: nothing happens, he stays signed in. No sign-out request reaches the gateway (front-door log: none). ## Cause `dashboard/src/entry/served.ts:185-187` wires sign-out as `navigateTo(resolved.idpOrigin)` — i.e. `https://id.<apex>` — and only when `details.apexDomain` resolved; otherwise the effect is absent and `DashboardNavigator.signOut()` just `console.warn`s (`dashboardNavigator.ts:234-244`). Either branch is a dead button here: - the comment says "the kanidm session is ended where it lives (DDR 0155)" — written for Kanidm's own UI at the IdP origin. On IDIP `https://id.<apex>/` answers **404**; and even on Kanidm, landing on the IdP's home page ends nothing on the gate. - the real sign-out already exists and works: `GET /authz/signout` on the apex (`internal/controlapi/signin.go:59,124`) clears the gate's session cookie AND redirects to the IdP's discovered `end_session_endpoint` (verified live: 302 → `https://id.<apex>/end_session?client_id=gate-oidc&post_logout_redirect_uri=https://<apex>/`). Nothing in the panel calls it. ## Fix - The served panel's sign-out effect is always present and always `navigateTo('/authz/signout')` (same-origin, both identity paths, no apex lookup needed). Delete the `idpOrigin` plumbing if nothing else uses it. - A button that cannot act must never be silent: the no-effect branch shows a visible notice, not a console line (ADR 0100). - Tests: unit — sign-out navigates to `/authz/signout`; drive — the operator role leg signs out from the panel chrome and the next visit to the apex asks for credentials again (both the Kanidm journey and the IDIP prove-it drive #1688). The manual testing guide §9.13 expects exactly this. Security note: until this lands an operator on a shared computer cannot end their session from the UI. Found on the hand re-founding of Whakatōhea Demo 2026-09-21, build source `5b910ef3`.

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

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

close-report for #1712 — status success

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

envelope
{
  "issue": 1712,
  "status": "success",
  "commits": [
    "52abf77117ca4fb37e680128126f2673db1aaa8f"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/entry/served.ts",
    "dashboard/src/lib/dashboardNavigator.ts",
    "dashboard/src/lib/navigation.ts",
    "dashboard/tests/unit/chromeIndicatorsLive.test.ts",
    "dashboard/tests/unit/dashboardComposition.test.ts",
    "dashboard/tests/unit/dashboardNetworkMount.test.ts",
    "dashboard/tests/unit/mountProvisioningUpdates.test.ts",
    "dashboard/tests/unit/navigatorDialog.test.ts",
    "dashboard/tests/unit/quasarBoot.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "dashboard/tests/unit/surfaceFaultFrame.test.ts",
    "docs/operator-app/manual-testing-guide.md"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Sign out reaches the gate (a request is made), not a silent no-op": "dashboard/src/entry/served.ts always wires signOut: () => navigateTo('/authz/signout'); DashboardNavigatorEffects.signOut is now required and the navigator's console.warn fallback is deleted (dashboard/src/lib/dashboardNavigator.ts)",
    "Same-origin /authz/signout is used on both identity paths (Kanidm and IDIP), no apex/idpOrigin lookup": "serveEntry.test.ts asserts both the public-apex and the private path navigate to '/authz/signout'; idpOrigin plumbing removed from resolveCommunity",
    "A button that cannot act must never be silent (ADR 0100)": "signOut made required so no effect-less branch remains; the button always acts — verified by the required-type change and the passing suite",
    "Manual testing guide §9.13 reflects the /authz/signout behaviour": "docs/operator-app/manual-testing-guide.md row 9.13 reworded"
  },
  "summary": "The control panel's Sign out now navigates to the gate's same-origin /authz/signout on both identity paths, replacing the dead bare-IdP-origin wiring.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1712 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1712, "status": "success", "commits": [ "52abf77117ca4fb37e680128126f2673db1aaa8f" ], "changed_files": [ "STATUS.md", "dashboard/src/entry/served.ts", "dashboard/src/lib/dashboardNavigator.ts", "dashboard/src/lib/navigation.ts", "dashboard/tests/unit/chromeIndicatorsLive.test.ts", "dashboard/tests/unit/dashboardComposition.test.ts", "dashboard/tests/unit/dashboardNetworkMount.test.ts", "dashboard/tests/unit/mountProvisioningUpdates.test.ts", "dashboard/tests/unit/navigatorDialog.test.ts", "dashboard/tests/unit/quasarBoot.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "dashboard/tests/unit/surfaceFaultFrame.test.ts", "docs/operator-app/manual-testing-guide.md" ], "tests": [ { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json", "exit_code": 0 } ], "criteria": { "Sign out reaches the gate (a request is made), not a silent no-op": "dashboard/src/entry/served.ts always wires signOut: () => navigateTo('/authz/signout'); DashboardNavigatorEffects.signOut is now required and the navigator's console.warn fallback is deleted (dashboard/src/lib/dashboardNavigator.ts)", "Same-origin /authz/signout is used on both identity paths (Kanidm and IDIP), no apex/idpOrigin lookup": "serveEntry.test.ts asserts both the public-apex and the private path navigate to '/authz/signout'; idpOrigin plumbing removed from resolveCommunity", "A button that cannot act must never be silent (ADR 0100)": "signOut made required so no effect-less branch remains; the button always acts — verified by the required-type change and the passing suite", "Manual testing guide §9.13 reflects the /authz/signout behaviour": "docs/operator-app/manual-testing-guide.md row 9.13 reworded" }, "summary": "The control panel's Sign out now navigates to the gate's same-origin /authz/signout on both identity paths, replacing the dead bare-IdP-origin wiring.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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#1712
No description provided.