The KERIA data dir IS the identity: backup, restore, and the rescue rung for 'witnesses have the KEL, agent is gone' #738

Closed
opened 2026-08-24 01:36:11 +00:00 by ben · 1 comment
Owner

Parent

Map: IDIP as a core identity alternative to kanidm (#725)

Question

#728 found the community's KERIA data directory (LMDB) is the community identity — lose it and the group AID, registry and every issued ACDC's TEL are unrecoverable from the operator app alone, though witnesses still hold receipted KELs. With #727's state-path facts: rule what the backup engine (ADR 0102–0107 families) snapshots, how often, consistency (LMDB snapshot while KERIA runs?), what restore looks like on a rebuilt gateway (same passcode → same bran → agent re-derives?), and whether 'witnesses have the KEL, agent gone' is a rescue rung (ADR 0088) or a documented dead end. Output: ADR + a row in the backup families table.

## Parent Map: [IDIP as a core identity alternative to kanidm](https://git.matou.nz/Matou/idss/issues/725) (#725) ## Question #728 found the community's KERIA data directory (LMDB) is the community identity — lose it and the group AID, registry and every issued ACDC's TEL are unrecoverable from the operator app alone, though witnesses still hold receipted KELs. With #727's state-path facts: rule what the backup engine (ADR 0102–0107 families) snapshots, how often, consistency (LMDB snapshot while KERIA runs?), what restore looks like on a rebuilt gateway (same passcode → same bran → agent re-derives?), and whether 'witnesses have the KEL, agent gone' is a rescue rung (ADR 0088) or a documented dead end. Output: ADR + a row in the backup families table.
ben self-assigned this 2026-08-24 18:15:19 +00:00
Author
Owner

Resolution (Ben, grilled 2026-08-24)

Landed as ADR 0201 (docs/adr/0201-idip-identity-dataset-backup-restore-and-the-no-backup-rung.md, commit d82c74a):

  1. Dataset (ADR 0080/0104 shape): declared by the keria adapter's port — the whole keripy root + the witness's state dirs (member keys are client-side, not in it); quiesce-then-copy (LMDB single-writer; the seconds-long sign-in blip is honest in the ledger, ADR 0083); snapshotted in the same window as the members roster — a roster/TEL mismatch would make IsIssued lie to the bridge, and the shared window also kills the stale-restore duplicity trap.
  2. Restore rung: identity dataset + roster restore as one act (ADR 0082); members reconnect with passcodes; what's lost since the snapshot is named — joiners since are re-invited (fresh issuance, ADR 0198), the roster diff prints the list.
  3. No-backup rung: signify keys derive deterministically from passcodes, so identities re-derive on a fresh KERIA (same keys + witness config ⇒ same AID) — identities survive; the registry does not: re-create it and a steward bulk-reissues memberships. Honest wording: "identities recovered; memberships reissued by a steward." Determinism is a named build-time verification (ADR 0195's re-key class).

Both rungs slot into ADR 0195's ladder between "recover from phrase" and "both lost".

## Resolution (Ben, grilled 2026-08-24) Landed as **ADR 0201** (`docs/adr/0201-idip-identity-dataset-backup-restore-and-the-no-backup-rung.md`, commit `d82c74a`): 1. **Dataset (ADR 0080/0104 shape):** declared by the keria adapter's port — the whole keripy root + the witness's state dirs (member keys are client-side, not in it); quiesce-then-copy (LMDB single-writer; the seconds-long sign-in blip is honest in the ledger, ADR 0083); snapshotted **in the same window as the members roster** — a roster/TEL mismatch would make `IsIssued` lie to the bridge, and the shared window also kills the stale-restore duplicity trap. 2. **Restore rung:** identity dataset + roster restore as one act (ADR 0082); members reconnect with passcodes; what's lost since the snapshot is **named** — joiners since are re-invited (fresh issuance, ADR 0198), the roster diff prints the list. 3. **No-backup rung:** signify keys derive deterministically from passcodes, so identities re-derive on a fresh KERIA (same keys + witness config ⇒ same AID) — **identities survive; the registry does not**: re-create it and a steward bulk-reissues memberships. Honest wording: "identities recovered; memberships reissued by a steward." Determinism is a named build-time verification (ADR 0195's re-key class). Both rungs slot into ADR 0195's ladder between "recover from phrase" and "both lost".
ben closed this issue 2026-08-24 18:21:43 +00:00
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.

Reference
Matou/idss#738
No description provided.