Expand description
The album roster attestation — the one membership fact a key-free server can verify.
§What the server cannot see, and what this gives it instead
Membership of a shared album is decided inside the MLS group, and every control message
that adds or removes a member is AEAD-protected under a group key the server never holds.
crypto::authority can classify a commit chain as behind, ahead or forked from a server’s
view of it, but it cannot tell the server who is in the group. So the server has no
roster — and without one it cannot answer “may this account read this album’s blobs”, which
is why the blob route and the album write routes have been owner-only.
The SignedAlbumRoster is the album owner’s statement of the roster, signed by one of
the owner account’s devices. The server verifies it against the owner’s published
DeviceDirectory — the same trust anchor, and the same check
SignedUpgradeIntent::verify runs
for the upgrade ceremony — and then holds it as a transport control: who may fetch which
bytes. It is not a confidentiality control. A former member who kept the AMK for an
epoch can still decrypt what they already downloaded; what the roster does is stop the
server handing them anything further, exactly as design/federation.md says an unshare cuts
read access to the historical photos at the transport level.
§A full document, versioned, and the owner is implicit
The roster is the whole member list every time, with a strictly monotonic
AlbumRoster::roster_version — the same shape as the device directory’s
directory_version (invariant 23). One monotonic field gives idempotency, replay-safety and
ordering at once, and it needs no per-grant ids and no separate revocation artefact:
removal is absence at a higher version. The owner account is never listed, because the
owner’s access is the album record’s owner_id fact and a roster that could omit the owner
would be a roster that could lock the owner out.
§Why this lives here and not in the server crate
A client signs it. The DSK that signs a roster is on a device, so the type must be
constructible and signable without the server crate — which is the rule crypto::upgrade
records for the upgrade intent, for the same reason: a structure defined at both ends is one
added field away from a signature that stops verifying.
Structs§
- Album
Roster - The signed-over content of a roster attestation. Every field is covered by the attesting
device’s DSK hybrid signature in the enclosing
SignedAlbumRoster. - Roster
Member - One member of an album, as the roster names them.
- Signed
Album Roster - An
AlbumRosterplus the attesting device’s DSK hybrid signature over it.
Enums§
- Member
Role - What a member may do with the album’s contents, as far as the server is concerned.
- Membership
Error - What went wrong encoding or verifying an album roster.