MLS Group Membership
UnauditedDieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Album membership is MLS (RFC 9420) over OpenMLS with the X-Wing ciphersuite 0x004D (Cryptographic Primitives — MLS Ciphersuite). OpenMlsAuthority (capsule-core/src/crypto/authority/openmls_authority/) implements AlbumAuthority (Key Management — Write Authority Interface); ReferenceAuthority is the deterministic fixture.
- A private codepoint is fine because interop is a non-goal. A ratified suite is a re-pin via the upgrade ceremony (Versioning — Album Upgrade Ceremony) and
crypto_suite_id(Cryptographic Primitives — Versioning Identifiers). - ChaCha20-Poly1305 (Cryptographic Primitives — MLS Control AEAD) protects only control traffic. User data uses AES-GCM (Cryptographic Primitives — Bulk AEAD).
- PQ authentication lives at the identity layer. LeafNodes are Ed25519-only, so identity certificates sign the MLS key with both halves of the hybrid signature (Cryptographic Primitives — Signature Scheme). Peers MUST verify both before admitting a leaf. The leaf key itself is a software key, since no secure element signs Ed25519 (Key Management — Device Keys).
- Blocking a user removes all their devices in one
Commit, so one epoch bump.
Membership Operations
Section titled “Membership Operations”Every ceremony is idempotent (Validation Invariants — Idempotency Invariants). Who may commit which ceremony, and who may send which key delivery, is owned by Key Management — Key Delivery and Who May Send It; members reject a commit that breaks it.
Add user Bob to album
Section titled “Add user Bob to album”The owner commits it.
- Fetch Bob’s KeyPackages from the device directory (Key Management — Device Directory).
Add+Commitwith all of his devices as leaves.- Bob exports the new epoch’s AMK from his
Welcome. The committer sends him the older AMKs the album’s history policy (History Delivery for New Joiners) allows, and, if Bob is a writer, the epoch’s write-tier key.
Remove user Charlie
Section titled “Remove user Charlie”The owner commits it.
Remove+Commitfor all of Charlie’s devices. The new MLS epoch excludes him.- Every remaining member exports the new epoch’s AMK, which Charlie cannot compute. The committer mints the epoch’s write-tier key and seals it to the remaining writers. All later uploads use the new epoch.
- Charlie keeps the AMKs he held: past access cannot be undone.
Add new device for existing member
Section titled “Add new device for existing member”If Alice is the owner or a writer, one of her existing devices commits the new leaf; if she is a reader, her device proposes it and an owner or writer commits. The new device exports the current AMK from its Welcome, and the committer’s history bundle carries every older AMK Alice is entitled to. First-device enrollment is in Device Enrollment.
Remove lost device
Section titled “Remove lost device”One of the user’s remaining devices commits the Remove (or, for a reader, proposes it for an owner or writer to commit). As with a user removal, the epoch MUST advance, because the lost device’s keys are presumed compromised. A lost device held the account master key, so the account-level response is Key Management — Master-Key Compromise.
History Delivery for New Joiners
Section titled “History Delivery for New Joiners”A member that processed an epoch’s commit, or joined at it, exports that epoch’s AMK itself (Key Management — Where an AMK Comes From). Everything else rides four MLS application messages, canonical CBOR, whose sender rules are in Key Management — Key Delivery and Who May Send It:
AlbumKeyDistribution { amk_version, amk_bytes }: a receipt for the current epoch, compared against the receiver’s own export.WriteTierDistribution { amk_version, write_tier_seed }: the epoch’s write-tier private half, sealed to each writer.AlbumHistoryBundle: a joiner’s prior epochs, each with its AMK and attested write-tier public key, never a private half.- A signed upgrade intent (Versioning — Album Upgrade Ceremony), processed by the upgrade path and refused by key delivery.
Key management owns the AMK (Key Management — Album Master Keys (AMKs)) and encryption consumes it (Asset and Metadata Encryption — Asset Key Derivation).
history_policyis fixed per album, not per add. It is set at creation:Full(every AMK since v1, the default for shared albums) orCapped(n)(only recent epochs; older assets show placeholders). A user’s readable range therefore never depends on who added them. Changing the policy requires an album upgrade ceremony (Versioning — Album Upgrade Ceremony).- Epoch ceiling on join. The joiner takes the highest
amk_versionattested by the Welcome’s commit chain as its monotonic ceiling and rejects any manifest claiming a higher epoch, so it never trusts the server’s counter (Key Management — Write Authorization).
Comments and Reactions
Section titled “Comments and Reactions”Members of an album may comment on an asset or on the album and react to an asset. Each is end-to-end encrypted, authenticated by MLS and invisible to the server.
AlbumActivity { activity_id: UUIDv7, target: Album | Asset(asset_id), kind: Comment { text: String /* ≤ 4096 bytes */ } | Reaction { emoji: String /* one grapheme */ }, replaces: Option<activity_id>, // an edit, by the original author only removes: Option<activity_id>, // a delete, by the author or the album owner _unknown: Map,}- Sent as an MLS application message of the current epoch, so the sender is authenticated by the group and only current members can read it. Any member, reader or writer, may send one.
- Kept as a sealed record. The sender also posts the same record sealed under the epoch’s AMK, in the metadata-blob format (Asset and Metadata Encryption — Metadata Blob Wire Format), so a new device or a joiner reads past activity within the album’s
history_policy(History Delivery for New Joiners), and a removed member reads none from later epochs. - Order. Activity is ordered by epoch, then by the sender’s sequence within it, then by
activity_id. Edits and deletes are later records, so replay is idempotent. - Moderation. The owner may remove any comment; a removal hides it on every member’s device. Reporting to the server operator follows Moderation.
- Alerts are local. A member’s device raises a local alert after it syncs new activity (Notifications — Alert Classes); no server composes or relays one.
- Not on share links. A share-link viewer has no group membership and can neither read nor write activity.
Forward Secrecy & Post-Compromise Security
Section titled “Forward Secrecy & Post-Compromise Security”At-rest ciphertext persists, so true forward secrecy does not apply to it. Each epoch bump guarantees that compromising the current epoch reveals nothing about past epochs and that removed members cannot read future epochs. Forward secrecy for data in transit comes from TLS 1.3 (Network Resilience — Transport Security). Lost commits, divergence and re-keying are in MLS Resilience.
Known Gaps
Section titled “Known Gaps”- Album activity is not implemented: no
AlbumActivitymessage, record or alert exists.
Validation
Section titled “Validation”- Round trip: add user, add device, remove user, remove device and AMK rotation, with all members’ views agreeing after each commit.
- Welcome:
Fulldelivers every prior AMK and decrypts every prior asset;Capped(n)delivers exactly the last n. - Policy consistency: the same user added through different devices or in different orders receives an identical AMK range.
- Epoch ceiling: a manifest claiming an epoch above the chain’s attested ceiling is rejected.
- Idempotency: a replayed commit is rejected and leaves state unchanged.
- Joiner trust: a history bundle or write-tier delivery from any leaf other than the Welcome’s GroupInfo signer is rejected, even when it arrives first.
- Identity binding: a LeafNode key without an ML-DSA identity signature is rejected.
- Concurrent commits (smoke): parallel proposers converge without splitting the group.
End-to-end cases are in the E2E case index.