IDIP gate never sees credentials issued to an app-approved (presented) member — restricted services stay hidden after a panel issuance #2031

Closed
opened 2026-09-30 17:03:40 +00:00 by ben · 3 comments
Owner

What happened

On Whakatōhea Demo (2026-09-30) a steward issued Emiliana (ECmHlukToBzkeA50N9Z5GPy-AXZVymQF7WJwz43DtLX-, emi.tairea) the Administrator and Researcher credentials from the control panel. The panel showed both as issued, but her members Portal showed none of the restricted services: Calendar and Surveys (restricted to committee:administrator) and Data collections (restricted to committee:researcher).

Cause

For a member the gate knows only as a presented holder (app-approved, ADR 0235 d.6, #1887), the gate reads the held-credential set from the presented row: keria.GateRoster.presentedStanding returns p.Committees (internal/keria/gateroster.go:120). The app door fills that row from the one credential shown at sign-in, which is Membership (internal/idp/appdoor.go:517, Committees: id.Claims.Komitis).

Credentials issued afterwards are separate ACDCs. The bridge hands them to the credential directory (ADR 0291, from=seat-backfill), and nothing in the gate reads that directory. So Standing answers held = [], and IdipGateDecider.decide refuses every restricted service with "restricted — holds no opening credential". GET /api/v1/me/doors omits the doors.

Live evidence (box /var/lib/idss/keria/roster.json + idss-control-plane journal):

  • 16:44:12Z / 16:44:45Z: credential directory: credential recorded for ENaaUg_8… and EEQqje4… (holder ECmHluk…): the issuance landed.
  • 16:46:18Z: idip roster: presented holder recorded for the same AID. The row was rewritten, and committees is still null.
  • administrators (presented Administrator, ADR 0289) does not list her. That list is written only when a holder presents Administrator at the panel door.

Only anchored-roster members (RosterEntry.Held, written by AnchorCredentialIssuance) ever carry credentials to the gate. On an IDIP community every app-approved member is presented-only, so no credential issued from the panel opens a restricted service for them.

Fix (Ben, 2026-09-30: build it)

The gate's held set for a presented holder is the credential directory's live credentials for that AID: their definition slugs, each checked against the witnessed ledger on the read, the same liveness ADR 0291's directory already applies. Consequences:

  • a revocation still closes the door on the holder's next request (ADR 0222);
  • Administrator held this way also opens restricted services (ADR 0286 d.3), because credschema.HoldsAdministrator(held, …) then sees it;
  • an unreachable ledger or directory is UNKNOWN: refuse, never allow (ADR 0100).

Not chosen: folding every held credential into the presented row at sign-in. That goes stale for any issuance or revocation between sign-ins.

Acceptance criteria

  • A presented-only member who holds a live researcher credential in the credential directory is allowed at a service restricted to committee:researcher, and the door appears in GET /api/v1/me/doors.
  • The same member, with that credential revoked on the ledger, is refused on the next request.
  • A presented-only member holding a live Administrator in the directory is allowed at an Administrator-restricted service.
  • A directory or ledger read error answers UNKNOWN (error), never allow.
  • Anchored-roster members behave exactly as before.
  • GOTCHAS entry + STATUS line.

Demo hand-state to undo once this is live

Calendar, Surveys and Data collections were opened to all members by hand (config repo commit eecb22c; the restricted matrix is kept at tag before-open-all-2026-09-30). Restore that matrix after the fix reaches the demo, then check Emiliana's Portal.

## What happened On Whakatōhea Demo (2026-09-30) a steward issued **Emiliana** (`ECmHlukToBzkeA50N9Z5GPy-AXZVymQF7WJwz43DtLX-`, `emi.tairea`) the **Administrator** and **Researcher** credentials from the control panel. The panel showed both as issued, but her members Portal showed none of the restricted services: Calendar and Surveys (restricted to `committee:administrator`) and Data collections (restricted to `committee:researcher`). ## Cause For a member the gate knows only as a **presented holder** (app-approved, ADR 0235 d.6, #1887), the gate reads the held-credential set from the presented row: `keria.GateRoster.presentedStanding` returns `p.Committees` (`internal/keria/gateroster.go:120`). The app door fills that row from the **one** credential shown at sign-in, which is Membership (`internal/idp/appdoor.go:517`, `Committees: id.Claims.Komitis`). Credentials issued afterwards are separate ACDCs. The bridge hands them to the **credential directory** (ADR 0291, `from=seat-backfill`), and **nothing in the gate reads that directory**. So `Standing` answers `held = []`, and `IdipGateDecider.decide` refuses every restricted service with "restricted — holds no opening credential". `GET /api/v1/me/doors` omits the doors. Live evidence (box `/var/lib/idss/keria/roster.json` + `idss-control-plane` journal): - 16:44:12Z / 16:44:45Z: `credential directory: credential recorded` for `ENaaUg_8…` and `EEQqje4…` (holder ECmHluk…): **the issuance landed**. - 16:46:18Z: `idip roster: presented holder recorded` for the same AID. The row was rewritten, and `committees` is still `null`. - `administrators` (presented Administrator, ADR 0289) does not list her. That list is written only when a holder presents Administrator at the **panel** door. Only anchored-roster members (`RosterEntry.Held`, written by `AnchorCredentialIssuance`) ever carry credentials to the gate. On an IDIP community every app-approved member is presented-only, so **no credential issued from the panel opens a restricted service for them**. ## Fix (Ben, 2026-09-30: build it) The gate's held set for a presented holder is the **credential directory's** live credentials for that AID: their definition slugs, each checked against the witnessed ledger on the read, the same liveness ADR 0291's directory already applies. Consequences: - a revocation still closes the door on the holder's next request (ADR 0222); - Administrator held this way also opens restricted services (ADR 0286 d.3), because `credschema.HoldsAdministrator(held, …)` then sees it; - an unreachable ledger or directory is UNKNOWN: refuse, never allow (ADR 0100). Not chosen: folding every held credential into the presented row at sign-in. That goes stale for any issuance or revocation between sign-ins. ## Acceptance criteria - [ ] A presented-only member who holds a live `researcher` credential in the credential directory is **allowed** at a service restricted to `committee:researcher`, and the door appears in `GET /api/v1/me/doors`. - [ ] The same member, with that credential **revoked** on the ledger, is refused on the next request. - [ ] A presented-only member holding a live Administrator in the directory is allowed at an Administrator-restricted service. - [ ] A directory or ledger read error answers UNKNOWN (error), never allow. - [ ] Anchored-roster members behave exactly as before. - [ ] GOTCHAS entry + STATUS line. ## Demo hand-state to undo once this is live Calendar, Surveys and Data collections were opened to all members by hand (config repo commit `eecb22c`; the restricted matrix is kept at tag `before-open-all-2026-09-30`). Restore that matrix after the fix reaches the demo, then check Emiliana's Portal.
ben self-assigned this 2026-09-30 17:03:56 +00:00
Author
Owner

Built on session/gate-reads-credential-directory → PR #2033 (a8c5db35). Tests green (keria, directory, controlapi, control-plane). Running HeldBy over the demo's real directory.json returns Emiliana's administrator + researcher copies. Still owed: merge, the release reaches the demo, restore the matrix from config tag before-open-all-2026-09-30, then check her Portal live.

Built on `session/gate-reads-credential-directory` → PR #2033 (a8c5db35). Tests green (keria, directory, controlapi, control-plane). Running `HeldBy` over the demo's real `directory.json` returns Emiliana's administrator + researcher copies. Still owed: merge, the release reaches the demo, restore the matrix from config tag `before-open-all-2026-09-30`, then check her Portal live.
Author
Owner

PR #2033 MERGED → main eb674e1c (Ben, 2026-09-30). The GOTCHAS entry is #387 because main took #386 first. Still owed: a release carrying eb674e1c reaches the demo, restore the matrix from config tag before-open-all-2026-09-30, check Emiliana's Portal live, then close.

PR #2033 MERGED → main eb674e1c (Ben, 2026-09-30). The GOTCHAS entry is #387 because main took #386 first. Still owed: a release carrying eb674e1c reaches the demo, restore the matrix from config tag `before-open-all-2026-09-30`, check Emiliana's Portal live, then close.
Author
Owner

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.
ben 2026-10-21 21:54:07 +00:00
  • closed this issue
  • removed the
    no-triage
    label
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#2031
No description provided.