GeezerVison is showing github.com — id: encrypted identity backup — seed-phrase export/restore + passphrase-wrapped server backup · Issue #2381 · developing-today/code
id: encrypted identity backup — seed-phrase export/restore + passphrase-wrapped server backup #2381DescriptionFollow-up from the key-recovery investigation on #2060 (doc: doc/2026-10-29T11-28-18Z_investigation_key_recovery_hosted/, §4/§7 and §11). Parent epic: #2056.
Ordering (triaged 2026-11-03)
Slices per the investigation's §11; this issue is the umbrella for the export/server-backup/rotation remainder, not one implementation task:
Problem
If the only ID key is lost and no device survives, there is no recovery path that keeps the server from holding keys. The investigation recommends encrypted backups where the server holds ciphertext only.
Proposal
- Seed-phrase (BIP39-style) export/restore of the identity secret in the
id CLI — zero server involvement; doubles as the hosted-edition exit ramp.
- Passphrase-wrapped backup stored server-side (hosted edition): memory-hard KDF, and a rate-limited blinded unwrap (OPRF-style) so the server can throttle guessing without learning the passphrase or the key.
- A backup-restored key is flagged until a keyset rotation retires it (restore may follow theft).
Acceptance
-
id CLI can export a seed phrase and restore an identity from it, with tests.
- Server backup format + unwrap throttling designed and documented; server never sees plaintext key material at any step.
- Restore flow forces/prompts rotation of the restored key.
Activitydeveloping-today commented on Oct 29, 2026 developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · triaged — live, not started; ordering recorded, one overlap guarded
- Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
- Session / ID:
ses_e5e5db7d11cffeh9uGRhQN1hIJ; queue task 7937 (triage)
- Found via: atomic queue claim (coverage pass, code slices 3+)
Verdict: still live; nothing implemented at main 048da81f1. Triaged as an umbrella, not a single implementation task — the three proposals have different prerequisites, and one of them overlaps an existing open issue.
Fresh evidence:
- No seed-phrase/mnemonic code:
grep -rn "mnemonic\|seed.phrase\|seed_phrase" pkgs/id/src pkgs/id/crates → no matches.
- No backup format or server-side blob:
grep -rln "backup" in pkgs/id/src hits only world_doctor.rs, repl/input.rs, currency_poc/tests.rs, web/routes.rs, cli.rs — none is identity backup. Identity key is still the raw file KEY_FILE = ".iroh-key" (pkgs/id/src/lib.rs:314).
- No OPRF/blinded unwrap anywhere:
grep -rli "oprf\|blinded" over pkgs/id/ and doc/ → no matches. That half needs a design decision before code.
- Overlap: id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 ("key export/import — passphrase-wrapped identity key envelope", key-recovery slice 1) is open and queued, and already owns the Argon2id versioned-envelope work. Building that here would duplicate it.
- Body defect fixed: the issue pointed at
investigations/key-recovery.md, which does not exist; the real document is doc/2026-10-29T11-28-18Z_investigation_key_recovery_hosted/. The ordering block above is now in the body.
Ordering / blocked-by:
- id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 lands the envelope + KDF module (prerequisite).
- Seed-phrase export/restore — unique to id: encrypted identity backup — seed-phrase export/restore + passphrase-wrapped server backup #2381, builds on id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279.
- Server backup blob + blinded unwrap throttle — design-first (new format + OPRF decision), ciphertext-only server storage; needs the hosted storage surface.
- Restore-forces-rotation flag — blocked on id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380 (keyset/authorization log).
Adjacent but not this issue: #2382 (guardian social recovery), #2804 (issuer key rotation).
Next action in the system: dispatch the seed-phrase slice once #2279 merges; open a design issue for the server-backup/OPRF half rather than implementation.
dezren39 commented on Nov 3, 2026 🤖 Agent note · filed the split design issue
Split filed: #5033 — id: design: server-side identity backup blob + rate-limited blinded unwrap (from #2381) — owns the design-first server-side half per the triage ordering. Seed-phrase export/restore stays on #2381 as its unique remainder, dispatchable after #2279.
dezren39 commented on Nov 13, 2026 Agent note (lane code-d, task 15307): merging PR #9036 auto-closed this umbrella issue via a closing keyword in the PR body. Reopened by this lane per the task packet: the seed-phrase slice is done, but the OPRF server-backup slice and the restore-forces-rotation flag (gated on issue #2380) remain open work on this issue. dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#9036, #11744) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
By: Claude, 2026-11-22 flow review.
Generated by Claude Code dezren39 commented on Nov 23, 2026 agent-note:v1
state: triaged (already complete)
Fresh verification 2026-11-23: issue #2381 was OPEN; current main is 9904c3a. All acceptance for this umbrella is implemented or resolved:
#2380 remains OPEN for its broader device enrollment, encryption wiring, and migration work; that does not leave #2381's restore-warning acceptance outstanding. Closing this umbrella as complete. dezren39 commented on Nov 23, 2026 Acceptance is implemented on current main. Evidence is in triage comment 7105404178: #9036 seed phrase export/restore merged; #5033 design and #7360 implementation closed/landed; #11744 restore marker merged; current main 9904c3a contains backup.rs and restored_key.rs. #2380 remains open for separate keyset work.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|