App sign-in names the wrong service — a member opening Files is asked to approve "the dashboard" #1687

Closed
opened 2026-09-21 15:09:45 +00:00 by ben · 2 comments
Owner

What happens

A member opens Files in a browser, is sent to the community's sign-in site, and scans the code with their app. The app's approve card — and the ask on the wire — name the service as "the dashboard". They were opening Files.

Seen live on debug IDIP fires 15–21 (latest 20260921T140338Z, cdadd5fa): artifacts/signin-qr.json and artifacts/wallet-signs-in.json both carry "service": "the dashboard" for a hop that began at https://files.<apex>/login and ended at https://files.<apex>/apps/dashboard/.

Why it matters

DDR 0246 decision 3: the service is named FIRST on the approve card — it is how a member knows what they are approving. A card that says "the dashboard" while the member is opening Files teaches them to approve asks that do not match what they did, which is exactly the habit a phishing ask needs.

Likely cause (unconfirmed — confirm before fixing)

internal/idp/appdoor.go serviceDisplayName(req.applicationID) maps the OIDC client id to a name: the gate's client → "the dashboard", the Files client → "Files". A browser with no session that opens Files is most likely caught by the front door's gate first, so the auth request that reaches the sign-in site belongs to the GATE's client, and the service the member actually wanted survives only in the gate's return address (rd). If so, every gated service reads "the dashboard".

Acceptance

  • The ask's service (and the deep link's svc) names the service the member set out to open — Files for a hop begun at Files, the control panel for one begun at the apex.
  • An unknown service still falls back honestly (never an invented name).
  • A seam test starts a hop the way a gated service does and reads the name off the ask.
  • The IDIP journey's signin-qr leg asserts ask.service for its Files hop (today it records it and asserts nothing).
  • Copy follows the glossary: "control panel", not "dashboard", in anything a member or operator reads.

Notes

Display copy is a two-way door (DDR 0246). What the door VERIFIES is not touched by this ticket. Filed from wayfinder map #1293.

## What happens A member opens **Files** in a browser, is sent to the community's sign-in site, and scans the code with their app. The app's approve card — and the ask on the wire — name the service as **"the dashboard"**. They were opening Files. Seen live on debug IDIP fires 15–21 (latest `20260921T140338Z`, `cdadd5fa`): `artifacts/signin-qr.json` and `artifacts/wallet-signs-in.json` both carry `"service": "the dashboard"` for a hop that began at `https://files.<apex>/login` and ended at `https://files.<apex>/apps/dashboard/`. ## Why it matters DDR 0246 decision 3: the service is named FIRST on the approve card — it is how a member knows what they are approving. A card that says "the dashboard" while the member is opening Files teaches them to approve asks that do not match what they did, which is exactly the habit a phishing ask needs. ## Likely cause (unconfirmed — confirm before fixing) `internal/idp/appdoor.go` `serviceDisplayName(req.applicationID)` maps the OIDC **client id** to a name: the gate's client → "the dashboard", the Files client → "Files". A browser with no session that opens Files is most likely caught by the front door's gate first, so the auth request that reaches the sign-in site belongs to the GATE's client, and the service the member actually wanted survives only in the gate's return address (`rd`). If so, every gated service reads "the dashboard". ## Acceptance - [ ] The ask's `service` (and the deep link's `svc`) names the service the member set out to open — Files for a hop begun at Files, the control panel for one begun at the apex. - [ ] An unknown service still falls back honestly (never an invented name). - [ ] A seam test starts a hop the way a gated service does and reads the name off the ask. - [ ] The IDIP journey's `signin-qr` leg asserts `ask.service` for its Files hop (today it records it and asserts nothing). - [ ] Copy follows the glossary: "control panel", not "dashboard", in anything a member or operator reads. ## Notes Display copy is a two-way door (DDR 0246). What the door VERIFIES is not touched by this ticket. Filed from wayfinder map #1293.

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

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

close-report for #1687 — status success

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

envelope
{
  "issue": 1687,
  "status": "success",
  "commits": [
    "a3513a265ece179c59814dbcd8007ff5eb90a759"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/journey.idip.spec.ts",
    "internal/controlapi/oidcprovider.go",
    "internal/controlapi/oidcprovider_test.go",
    "internal/controlapi/signin.go",
    "internal/controlapi/signin_test.go",
    "internal/idp/appdoor.go",
    "internal/idp/appdoor_seam_test.go",
    "internal/idp/config.go",
    "internal/idp/provider.go",
    "internal/idp/requests.go",
    "internal/idp/storage.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go vet ./internal/idp/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./internal/idp/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The ask's service (and the deep link's svc) names the service the member set out to open — Files for a hop begun at Files, the control panel for one begun at the apex": "internal/idp/appdoor.go gatedServiceName maps the forwarded return destination: apex host -> 'the control panel', files.<apex> -> 'Files'; internal/controlapi/signin.go forwards the validated rd as login_hint. Proven by TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination (service AND deep-link svc), commit a3513a26.",
    "An unknown service still falls back honestly (never an invented name)": "gatedServiceName default branch returns the destination host itself; the 'an unnamed gated service falls back to its host' subtest of TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination asserts chat.<apex> stays its host.",
    "A seam test starts a hop the way a gated service does and reads the name off the ask": "TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination in internal/idp/appdoor_seam_test.go drives a real gate-oidc /authorize hop carrying login_hint through op end to end, then reads d.Service off the minted ask.",
    "The IDIP journey's signin-qr leg asserts ask.service for its Files hop (today it records it and asserts nothing)": "app/tests/e2e/journey.idip.spec.ts signin-qr leg now expects ask.service === 'Files'.",
    "Copy follows the glossary: control panel, not dashboard, in anything a member or operator reads": "serviceDisplayName's gate name changed from 'the dashboard' to 'the control panel' (ADR 0247); TestSeam_AppDoor_ChallengeDescribesTheAsk and the apex-hop subtest pin it."
  },
  "summary": "The app sign-in ask names the service the member set out to open (Files for a Files hop, the control panel for an apex hop) by having the gate forward the return destination as login_hint and the bridge name the service off it.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1687 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1687, "status": "success", "commits": [ "a3513a265ece179c59814dbcd8007ff5eb90a759" ], "changed_files": [ "STATUS.md", "app/tests/e2e/journey.idip.spec.ts", "internal/controlapi/oidcprovider.go", "internal/controlapi/oidcprovider_test.go", "internal/controlapi/signin.go", "internal/controlapi/signin_test.go", "internal/idp/appdoor.go", "internal/idp/appdoor_seam_test.go", "internal/idp/config.go", "internal/idp/provider.go", "internal/idp/requests.go", "internal/idp/storage.go" ], "tests": [ { "command": "nix develop .#go-ci --command go vet ./internal/idp/ ./internal/controlapi/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./internal/idp/ ./internal/controlapi/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 } ], "criteria": { "The ask's service (and the deep link's svc) names the service the member set out to open — Files for a hop begun at Files, the control panel for one begun at the apex": "internal/idp/appdoor.go gatedServiceName maps the forwarded return destination: apex host -> 'the control panel', files.<apex> -> 'Files'; internal/controlapi/signin.go forwards the validated rd as login_hint. Proven by TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination (service AND deep-link svc), commit a3513a26.", "An unknown service still falls back honestly (never an invented name)": "gatedServiceName default branch returns the destination host itself; the 'an unnamed gated service falls back to its host' subtest of TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination asserts chat.<apex> stays its host.", "A seam test starts a hop the way a gated service does and reads the name off the ask": "TestSeam_AppDoor_NamesTheServiceFromTheReturnDestination in internal/idp/appdoor_seam_test.go drives a real gate-oidc /authorize hop carrying login_hint through op end to end, then reads d.Service off the minted ask.", "The IDIP journey's signin-qr leg asserts ask.service for its Files hop (today it records it and asserts nothing)": "app/tests/e2e/journey.idip.spec.ts signin-qr leg now expects ask.service === 'Files'.", "Copy follows the glossary: control panel, not dashboard, in anything a member or operator reads": "serviceDisplayName's gate name changed from 'the dashboard' to 'the control panel' (ADR 0247); TestSeam_AppDoor_ChallengeDescribesTheAsk and the apex-hop subtest pin it." }, "summary": "The app sign-in ask names the service the member set out to open (Files for a Files hop, the control panel for an apex hop) by having the gate forward the return destination as login_hint and the bridge name the service off it.", "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#1687
No description provided.