Skip to main content

Module upgrade

Module upgrade 

Source
Expand description

The album-upgrade ceremony’s wire vocabulary — the parts both ends need and neither end needs MLS for.

SSoT: Versioning — Album Upgrade Ceremony.

§Why this is not in crypto::authority

It was, and it was unreachable. openmls_authority is behind the mls feature, and a key-free server does not enable it — it holds no group state and cannot read an MLS message. But the server owns four of the ceremony’s steps: the deadline is evaluated on its trusted clock, the 409 on a stale upload session is its refusal, the drain count is its answer, and the lineage travels in a manifest it stores. All four need these three types, and none of them needs a group.

So the types that are pure data plus a signature check live here, ungated, and openmls_authority re-exports them. The custody receipt is shared the same way, for the same reason: a structure defined at both ends is one added field away from a signature that stops verifying, so there is one definition and both ends read it.

What stays behind the feature is everything that touches a group: the AlbumTombstone commit, its receive-side verification, the quiescence state an MLS client persists, and the frozen_state_hash pre-image, which is computed over the MLS-derived member list.

§What the server can decide from here, and what it cannot

It can verify SignedUpgradeIntent against the account’s published DeviceDirectory — the same trust anchor the roster uses — so a quiescence it records is one an admin device really asked for. It can evaluate UpgradeIntent::is_expired against its own clock, which is the whole point of the deadline being a duration: a skewed member clock can neither extend nor shorten the window.

It cannot verify the frozen_state_hash, and must never try. That hash is each member’s independent statement about its own view of the album, and a server that adjudicated it would be the single point the ceremony’s “hostile member sabotage” defence exists to avoid.

Structs§

SignedUpgradeIntent
An UpgradeIntent plus the proposing admin device’s DSK hybrid signature over it. Rides the group’s application-message channel (self-describing as the MlsAppPayload::Upgrade variant).
UpgradeIntent
The signed-over content of an upgrade proposal (versioning.md step 1). Every field is covered by the proposer’s DSK hybrid signature in the enclosing SignedUpgradeIntent.
UpgradeLineage
The upgraded_from continuity pointer the fork’s manifests carry — the normative link between the old album and its fork (never the MLS group name, which is an internal detail).

Enums§

UpgradeError
What went wrong reading or verifying an upgrade intent.

Constants§

DEFAULT_UPGRADE_DEADLINE
The default upgrade deadline (7 days), as a [jiff::SignedDuration] the caller can pass to OpenMlsAuthority::propose_upgrade.