Skip to content

docs(core): ADR 0056, end-to-end keys on the 1Password and Bitwarden model - #4506

Merged
datlechin merged 4 commits into
mainfrom
docs/core-adr-0056-standard-e2e
Nov 25, 2026
Merged

datlechin merged 4 commits into
mainfrom
docs/core-adr-0056-standard-e2e

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Adds ADR 0056, which supersedes 0053 with the 1Password and Bitwarden model the maintainer chose on 2026-11-25:
    • an identity key derived from the 256-bit recovery key certifies each version of the account's X25519 and Ed25519 keys, which every approved device holds;
    • per-device X25519 and Ed25519 keys; DSK is the DPoP key the server checks (D8);
    • personal, history and team keys are AES-256-GCM scope keys, reached only through HPKE wraps signed by the wrapper (RFC 9180 §9.1.1);
    • a new device joins by five words behind a hash commitment and inherits the approver's pins;
    • removing a device needs the recovery key (D7) and rotates the account keys and every scope key; teammates follow silently;
    • teammates pin identity keys on first use, compare six fingerprint words, and get an alert on any unendorsed change;
    • an owner or admin confirms each member in the app; only a holder of a team key's previous version signs the next;
    • a reset waits 7 days; no admin-assisted approval, since it needs escrow;
    • wire objects, server checks, vectors, and the alternatives: 0053's design, MLS, a Matrix-style device list.
  • Rewrites core/docs/security/sync-threat-model.md for this model, with the accepted first-contact trade-off.
  • Marks 0053 Superseded by 0056 and adds the 0056 row to the index.
  • 0051, 0052 and 0054 still describe 0053's mechanisms; their lanes change them.

Test plan

  • scripts/check-banned-words.sh on both files: clean.
  • Codex review, a Codex security pass and a Codex verification review on the diff. Fixed in this PR:
    • the approver's DEK and DSK are in the comparison, approval wraps are signed by its DSK, and own-device pins come only from the words, so a stolen account key cannot stand in for the approver;
    • a rotation keeps only devices the rotating device compared with; recovery keeps none;
    • envelope checks follow the pull's revision order, so offline catch-up across a rotation works;
    • recovery reads the personal key objects before approval, so it can carry old keys into the new rings;
    • any holder republishes key objects after a restore, checked at the av they name;
    • a recovery-key cancel names the reset it cancels.
  • Gate G0 reviews the ADR and the threat model before any key code.

@datlechin
datlechin merged commit e2c9a12 into main Nov 25, 2026
2 checks passed
@datlechin
datlechin deleted the docs/core-adr-0056-standard-e2e branch November 27, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant