Research: the session substrate and the per-member door answer the Portal can consume today, on both paths and both tiers #1337
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1337
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?
Parent
The Portal map (#1336)
Question
What can the Portal actually stand on today? Inventory from source (control-plane composition root
control-plane/cmd/control-plane/main.go,internal/controlapi—authgate.go, the/authz/signin+/authz/callbacksubstrate,mail.go,member_join*.go;internal/clan/frontdoor.go;internal/member,internal/memberorbit, the IDIP roster decider ADR 0222 #1155;dashboard/src/entry/*.ts,lib/api/*):/authz/signin, therdcarriage, the cookie on the apex) is wired: public path, private path (ADR 0149/0150 — noforward_auth; is the gate OIDC secret / session substrate present in the VM guest?), rented vs own-VPS. What "resting" means for a member arriving at the apex on each. Does the same cookie serve the apex ANDadmin.<apex>(DDR 0172's sign-out = gate clear + kanidm end)?forward_authfrom the member orchestrator. IDIP tier: what session a browser member holds today (the twelve-words door, keriauth), what the roster-backed gate decider answers, and what #1293's doorkeeper sign-in (#1302) will hand the Portal — read that map's research findings (research/doorkeeper-hosting-and-vouchingbranch, ADR 0226/DDR 0228) so the Portal's assumption "a session exists after the door" is stated in the tier's real terms.internal/provision/portal.go,PublishedLink), the access matrix (ADR 0078,internal/member), regression bug #1229 (empty access matrix) state, the IDIP tier's credential-keyed access (ADR 0222), and the private path's un-enforced matrix (DDR 0173 stated limit). State exactly what is fact (the gate would admit) vs intent (the matrix says) on each path/tier./mailconsumes today (HttpMemberMailClient,/api/mail) and whether its session posture is the same leg as (1).Deliver: a table (path × tier → session leg, door, per-member access answer, gaps) plus the list of gaps a Portal spec must close or state as limits. Write to a
research/portal-session-substratebranch underdocs/research/2026-09-08-portal-session-substrate.md; link from this ticket.Research landed — branch
research/portal-session-substrate, commit8e61f324(unpushed, in the agent worktree; branched fromorigin/mainc0da2f36). Doc:docs/research/2026-09-08-portal-session-substrate.md(table path × tier, gaps,/mail, every claim citedpath:line).Table gist (path × tier):
GET /authz/signin→ IdP →/authz/callbackmintsidss_session(stateless HMAC{sub, exp}, 12 h,Domain=<apex>;session.go:142-153), wired wheneverIDSS_COMMUNITY_APEX+IDSS_GATE_OIDC_SECRETare exported (main.go:1363) — the private path exports both (<slug>.idss.internal,vmguest.go:1876-1882) and trusts the guest kanidm CA (#1240). One cookie serves the apex ANDadmin.<apex>.sub= kanidmpreferred_username/ the AID on IDIP (oidcprovider.go:107-115).GET /login(internal/idp/signin.go). The #1302 doorkeeper door still ends in the bridge's OIDC callback (doorkeeper research §2.5) → same cookie; the Portal's "a session exists after the door" holds in the tier's real terms. On the private path the door is reachable only inside the CA-pinned app window (DDR 0165). IDIP-on-private is rendered, never driven.Orchestrator.GateDecision(komiti.go:567-626) /IdipGateDecider(idip_gate.go:107-179, live roster Standing + held credential slugs) on the public path; nothing on private service routes (ADR 0150).GET /api/v1/members/{id}/detailaccess[]is intent-only, ungated on the apex, omits un-rowed (open) services and the operator exception (detail.go:288-312). IDIP: every/api/v1/idipread is steward-gated;Standing(aid)has no HTTP projection. #1229 is CLOSED (31545803) but only fixed the per-credential steward view. The portal ledger (portal.go) is write-only —Links()has no route.X-Idss-Identity(frontdoor.go:557-573); the whole operator API answers anyone there (#512 posture the harness relies on).Gaps a Portal spec must close or state as limits:
GateDecision, not the bare cookie resolver (a suspended member's cookie stays valid up to 12 h).GateDecision; computable, unexposed)./authz/signout,ClearSessionCookieuncalled, dashboard Sign out = jump toid.<apex>, refusal page's Sign out =/./mailis unreachable for a member today:WithMemberMail(c.mailPortal, nil)(main.go:1486-1488) →HeaderSessionResolver; the apex strips the header → 401 always;admin.<apex>admits operators only. Fix shape = passgateResolver./api/v1/idipat all ("my credentials" has no source but the wallet).FirstLogin) is observed only insidegateVerify(authgate.go:243) — never on the ungated apex./mailon IDIP is wrong even after (4): address =<AID>@<apex>,Claimgates through the kanidm orchestrator (resting on IDIP).signin.go:107-109).Resolution
Findings on
research/portal-session-substrate@8e61f324→docs/research/2026-09-08-portal-session-substrate.md(land on main when reviewed, like #725's). Gist:/authz/signin→ IdP →/authz/callbackmints theidss_sessioncookie (stateless HMAC{sub,exp}, 12 h,Domain=<apex>), wired wheneverIDSS_COMMUNITY_APEX+IDSS_GATE_OIDC_SECRETexist — the private path exports both. One cookie spans the apex andadmin.<apex>.sub= kanidmpreferred_username/ the AID on IDIP.GET /login; #1302's doorkeeper door still ends at the bridge's OIDC callback → the same cookie, so "a session exists after the door" holds in the tier's real terms. Private path: the door is reachable only inside the CA-pinned app window (DDR 0165); IDIP-on-private is rendered, never driven.GateDecision/IdipGateDecider); nothing gates private service routes (ADR 0150).members/{id}/detail.access[]is intent-only, ungated, and omits un-rowed (open) services + the operator exception; every IDIP read is steward-gated; #1229 is CLOSED but fixed only the steward view; the portal ledger'sLinks()has no route (write-only).X-Idss-Identity— the operator API answers anyone there.12 gaps the Portal spec must close or state as limits (doc §4), the load-bearing ones: no who-am-I/am-I-live route (the bare cookie stays valid ≤12 h after a suspend); no per-member doors route; sign-out unbuilt (no
/authz/signout);/mailis unreachable for any member today (header resolver on a route that strips the header → always 401; fix = pass the gate resolver) — filed as a defect; ledger never shrinks; no display name in the cookie; an IDIP plain member has no route at all; no session-expiry frame.Unblocks the two faces grill and the my-services grill.