Title: id: design: server-side identity backup blob + rate-limited blinded unwrap (from #2381) · Issue #5033 · developing-today/code · GitHub
Open Graph Title: id: design: server-side identity backup blob + rate-limited blinded unwrap (from #2381) · Issue #5033 · developing-today/code
X Title: id: design: server-side identity backup blob + rate-limited blinded unwrap (from #2381) · Issue #5033 · developing-today/code
Description: Split from #2381 (encrypted identity backup) as the design-first half. The local envelope half is #2279; the seed-phrase half stays on #2381. Problem #2381 proposes a passphrase-wrapped identity backup stored server-side, with a memory-h...
Open Graph Description: Split from #2381 (encrypted identity backup) as the design-first half. The local envelope half is #2279; the seed-phrase half stays on #2381. Problem #2381 proposes a passphrase-wrapped identity ba...
X Description: Split from #2381 (encrypted identity backup) as the design-first half. The local envelope half is #2279; the seed-phrase half stays on #2381. Problem #2381 proposes a passphrase-wrapped identity ba...
Opengraph URL: https://github.com/developing-today/code/issues/5033
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id: design: server-side identity backup blob + rate-limited blinded unwrap (from #2381)","articleBody":"Split from #2381 (encrypted identity backup) as the design-first half. The local envelope half is #2279; the seed-phrase half stays on #2381.\n\n## Problem\n#2381 proposes a passphrase-wrapped identity backup stored server-side, with a memory-hard KDF and a rate-limited *blinded* unwrap (OPRF-style) so the server can throttle guessing without learning the passphrase or the key. Nothing of that exists at main `048da81f1`:\n\n- No backup blob format anywhere in `pkgs/id/src` (`grep -rln \"backup\"` hits only `world_doctor.rs`, `repl/input.rs`, `currency_poc/tests.rs`, `web/routes.rs`, `cli.rs`).\n- No OPRF or blinded-unwrap primitive anywhere in `pkgs/id/` or `doc/` (`grep -rli \"oprf\\|blinded\"` → no matches).\n- The identity key is still the raw file `KEY_FILE = \".iroh-key\"` (`pkgs/id/src/lib.rs:314`).\n\nImplementing this without a recorded decision would invent a wire format, a server-side key-custody posture and an unwrap-throttling protocol in one PR.\n\n## What this design must settle\n1. **Blob format** — AEAD + KDF versioned envelope (reuse #2279's header shape rather than defining a second one), keyed by identity-public-key hash; server stores ciphertext bytes only.\n2. **Server-side custody posture** — restate that the server never holds plaintext or passphrases, and what it does hold (ciphertext, size, access timestamps). #2060's trust constraint still forbids custodial keys.\n3. **Unwrap throttling** — whether an OPRF-style blinded unwrap is adopted, which curve/construction, and how throttle state is keyed so it reveals nothing. If OPRF is rejected, record the cheaper alternative (e.g. per-identity attempt budget over the existing fixed-window limiter shape from #2333) with its guessing-cost analysis.\n4. **Storage surface** — which hosted storage the blob lives in, retention, and deletion on key revocation.\n5. **Restore-forces-rotation** — the flag's representation, which is #2380's keyset substrate.\n\n## Acceptance\n- [ ] A decision is recorded on this issue for items 1–5, or each is explicitly deferred with rationale.\n- [ ] The server-never-sees-plaintext claim has a concrete protocol sketch (who computes what) that a reviewer can falsify.\n- [ ] Follow-up implementation issues are filed from the decision, or the decision is to decline the server-side backup entirely.\n\n## Out of scope\n- Local envelope export/import (#2279), seed-phrase export/restore (#2381), guardian/social recovery (#2382), issuer key rotation (#2804).\n\n## Sources\n`doc/2026-10-29T11-28-18Z_investigation_key_recovery_hosted/` §4, §7, §11 slice 2; #2060 (closed); #2279; #2380; `pkgs/id/src/lib.rs:314`.\n\n\n## Acceptance criteria\n\n- A design is recorded settling: the backup blob format (AEAD + KDF versioned envelope, reusing #2279's header shape), the blinded-unwrap (OPRF-style) protocol, server-side rate limiting / throttling, and the server key-custody posture.\n- The design names what the server learns and cannot learn (passphrase, key, blob contents) for each protocol step.\n- An implementation issue is filed and linked as a native relation in the same pass the design lands (protocol §11 — a design with no implementation link is not finished work).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-03T16:48:18Z","url":"https://github.com/developing-today/code/issues/5033"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a3e3e35f-0000-744f-380d-99a5b8dd81a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2A4:26A1D6:9342F5:BE2931:6B062FB8 |
| html-safe-nonce | 72135f94af79e27249ea75b907470bb36130c2fdfe84f6c250841def411efe18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE0OjI2QTFENjo5MzQyRjU6QkUyOTMxOjZCMDYyRkI4IiwidmlzaXRvcl9pZCI6IjUzMjA1MzQ4MjI5ODM0NDY0NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6cc71166e1cfbec6548fd594a783c0fcc77bc89e1de241044f5ae54866276c61 |
| hovercard-subject-tag | issue:6187130197 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b1de42987e234aa9c2329878b2026c89bc76d1edee8895ae40de978f125bb4c/developing-today/code/issues/5033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b1de42987e234aa9c2329878b2026c89bc76d1edee8895ae40de978f125bb4c/developing-today/code/issues/5033 |
| og:image:alt | Split from #2381 (encrypted identity backup) as the design-first half. The local envelope half is #2279; the seed-phrase half stays on #2381. Problem #2381 proposes a passphrase-wrapped identity ba... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width