IDIP sign-out is impossible: the bridge accepts NO post_logout_redirect_uri, so the gate's /authz/signout always dies on invalid_request and the IdP session survives #1713
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1713
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
Whakatōhea Demo (rented + IDIP).
GET https://<apex>/authz/signout(the gate's real sign-out — and what the panel's button calls once #1712 lands) → 302 tohttps://id.<apex>/end_session?client_id=gate-oidc&post_logout_redirect_uri=https%3A%2F%2F<apex>%2F→ the bridge answers raw JSON:Cause
internal/idp/client.go:34:func (c *client) PostLogoutRedirectURIs() []string { return nil }— hard-coded empty for every client, and the renderedidss-idp-clients.jsoncarries no such field. The gate ALWAYS sends one (internal/controlapi/oidcprovider.go:257-267). So on IDIP the end-session leg can never succeed, for the gate or for any service that does RP-initiated logout (Nextcloud user_oidc, Paperless, …).Consequence — security
The operator or a member cannot end their IdP session. If the gate clears its own cookie before redirecting, the next visit to the apex silently signs them straight back in off the surviving bridge session; on a shared computer the next person is them. Check and state in the close-report which of the two it is (cookie cleared or not) — and whether the bridge session is actually destroyed when the URI IS valid.
Fix
clients.jsongainspost_logout_redirect_urisper client;internal/clan/idssidp.gorenders them from the same facts asredirect_uris(gate:https://<apex>/; each service: its door origin / its documented logout return), andclient.PostLogoutRedirectURIs()returns them. Exact-match only.end_sessionwith no/invalid URI still ENDS the session and lands on the bridge's own branded "You are signed out" page — a bad redirect must never keep a session alive, and never answers raw JSON to a browser.Sign-in trust surface →
ready-for-human: proposed default ruling = items 1–3 as written.Why human
One-way-ish door on a member-facing trust surface (which return addresses the sign-in service will redirect to, and what sign-out guarantees). Proposed default above.
Relates to #1712 (the button), #1711. Found on the hand re-founding of Whakatōhea Demo 2026-09-21, build source
5b910ef3.RULED by Ben 2026-09-21 — the proposed default stands, build items 1–3 as written
idss-idp-clients.jsoncarriespost_logout_redirect_uris, rendered ininternal/clan/idssidp.gofrom the same facts as itsredirect_uris(gate:https://<apex>/; each service: its door origin / documented logout return). Exact-match only;client.PostLogoutRedirectURIs()returns them.end_sessionwith a missing or non-matching URI still ends the bridge session and lands on the bridge's own branded "You are signed out" page (kit-worn, like /login). Never raw JSON to a browser; a bad redirect never keeps a session alive.Sign-in trust surface — ruled by Ben directly, not under ADR 0174. Relabelled
ready-for-agent.swarm-claim host=matou-dev-server-01 run=29782
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1713 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
# Donestaleness re-check — duplicate work, and the orphan commit poisons localmaininto a SyncError #1717