mimi.havenmessenger.com status

Generated when this hub was deployed, from the interop repository at ffb52bf681db.

Revision

Running
ffb52bf681db6c4a47f80745c0c2dc1dfb60a185
Deployed
2026-11-24T23:48:10Z
Directory
https://mimi.havenmessenger.com/.well-known/mimi-protocol-directory

What changed

No previous deployment is recorded here; the changelog's unreleased entries:

Conformance

Per section of the drafts below, what this repository implements and what it does not build yet. Hand-maintained from the code; a row that says "not built yet" names the entry in DIVERGENCES.md that explains it. A deployment's own choices (which ciphersuites it accepts, who identifierQuery finds) are settings, described in mimihubd/README.md, not rows here.

Status words. Implemented: the code does it, with tests. Partly: the code does part of it; the row says which part. Not built yet: the code does not do it. Client: the requirement falls on a client; the library supplies the mechanism and a client calls it.

Drafts

Draft Revision
draft-ietf-mimi-protocol-07
draft-ietf-mimi-content-10 (reads and writes -09 peers, DIV-17)
draft-ietf-mimi-room-policy-04
draft-ietf-mls-extensions-10 (AppDataUpdate)
draft-ietf-mls-virtual-clients-01

Transport and directory (protocol-07 §4.1, §5.1)

ID § Requirement Status Where
T14.1Inter-provider requests over HTTPSImplementedmimihubd/src/tls.rs: the peer listener serves TLS only
T24.1Target provider in HostPartlyNot compared with this hub's domain (DIV-16)
T34.1Source provider in FromPartlyChecked against the certificate when present, not required (DIV-16)
T44.1Mutually authenticated TLSImplementedClient certificate from the CA bundle, or a DNS-key request signature (provider_auth.rs); any CA may name any provider (DIV-16)
T55.1Publish /.well-known/mimi-protocol-directoryImplementedProvider::directory; also on a plain listener of its own

Key material (protocol-07 §5.2)

ID § Requirement Status Where
K15.2Each KeyPackage returned at most onceImplementedstore.rs claim is one atomic statement
K25.2Never serve expired key materialImplementedClaim filters on expiry in the same statement
K35.2Hub associates KeyPackageRef with the target providerImplementedassociate_claimed_keypackage
K45.2Provider associates KeyPackageRef with its local clientImplementedpublish_key_package
K55.2Refuse a KeyPackage or Welcome in a ciphersuite the provider does not accept, before decoding itImplementedsrc/gate.rs; the accepted list is the policy's mls_ciphersuites

Room state and update (protocol-07 §5.3, §7.5)

ID § Requirement Status Where
R15.3, 7.5Participant-list changes as an AppDataUpdate (mimiParticipantList)Implementedsrc/commit_wire.rs, src/participant_list.rs; also read from the 0xF7A0 compatibility carrier (DIV-15)
R25.3, 7.5Removing an active user together with the MLS RemoveClientThe library's update codec; the client builds the Commit
R35.3Hub refuses a removed participant's messages, Commits and proposals (except Remove and SelfRemove)ImplementedProvider::authorize_sender on submitMessage
W45.3update (HandshakeBundle) wire codecPartlyOne room-changing proposal per Commit, with or without Add and Remove (DIV-10); a tracked room's Commit is verified against its ratchet tree; the Commit is not stored or relayed
W115.3A room-policy change is an AppDataUpdate for a room-policy componentImplementedroles_list and base_room_policy (DIV-15)

Messages and fan-out (protocol-07 §5.4, §5.5)

ID § Requirement Status Where
M15.4An application message is an MLS PrivateMessageClientThe hub relays it opaque
M25.4sendingUri is an active participantImplementedProvider::authorize_sender
M35.5Fan out to every provider with active participantsImplementedCommits, held proposals and application messages, through the outbox (DIV-5)
M45.5Route a Welcome by the KeyPackageRef it carriesImplementedBy the provider recorded when the hub forwarded keyMaterial for that KeyPackage, else the added user's domain (DIV-5)
M55.5A duplicate notify is answered 201, byte-exactImplementedThe notify_seen ledger
M65.4, 5.5Store and deliver a PrivateMessage onceImplementedsubmitMessage, message
W95.5notify is accepted only from the room's hubImplementednotify_source.rs

GroupInfo and join (protocol-07 §5.6)

ID § Requirement Status Where
G15.6Hub checks the joiner's authorization before returning GroupInfoImplementedSignature, the credential's provider, and who may join (canAddOwnClient, canOpenJoin); joining codes and preauthorization not built (DIV-1)
G25.6GroupInfoResponse encrypted and signed by the hubImplementedEncryptWithLabel to the request's key, signed by MIMI_HUB_MLS_KEY as hub_sender (DIV-1)
G35.6An external Commit is accepted where the room allows itImplementedTracked rooms; refused while proposals are held (no externalProposals staple, DIV-1)
G45.6The room's operational policy (room-policy-04 §7.1) is kept and external_commit_allowed enforcedImplementedOther fields kept, not enforced; changes need canChangeMlsOperationalPolicies (DIV-18)
ID § Requirement Status Where
C15.7Accept and process requestConsentImplementedprocess_request_consent; answered 202 on the wire lane (W12)
C25.7Accept and process updateConsent (grant, revoke)Implementedprocess_update_consent
C35.2, 5.7KeyPackage access gated by consentImplementedkeypackage_access, default deny

Discovery (protocol-07 §5.8)

ID § Requirement Status Where
W65.8identifierQuery over the wire lanePartlyOne Handle or Nick query per request; other identifier types not built yet (DIV-4). Who it finds is the policy's identifier_discovery

Abuse reports and assets (protocol-07 §5.9, §5.10)

ID § Requirement Status Where
A15.10.2Hub checks a downloadUrl host belongs to a peer providerNot built yetDIV-3
A25.10.3OHTTP gateway for asset downloadNot built yetDIV-3
A35.9reportAbuse with an attached AbusiveMessageNot built yetMetadata-only reports are accepted (DIV-8, DIV-9)

Wire framing (protocol-07 §5, TLS presentation language)

ID § Requirement Status Where
W15.4submitMessageImplementedsrc/protocol_wire.rs, /mimi/pl/submitMessage/{roomId}
W25.7requestConsent, updateConsentImplemented/mimi/pl/requestConsent, /mimi/pl/updateConsent
W35.2keyMaterialImplemented/mimi/pl/keyMaterial/{targetUser}
W55.5notify (receiving)Implemented/mimi/pl/notify/{roomId}: a Welcome makes its users members here, and what follows is queued for them (DIV-5)
W75.1The directory names the wire endpointsImplementedProvider::directory
W82TLS presentation language as the wire encodingImplementedThe /mimi/pl/* routes
W107.5Participant-list indices are positions; added users appendedImplementedsrc/participant_list.rs
W125.7, 10.6Consent answered 202 (422 for an operation the route does not take); wire bodies labelled application/mimi-protocolImplementedmimihubd/src/http.rs

Content (content-10)

ID § Requirement Status Where
F14.1Per-message salt from a CSPRNGImplementedsrc/content.rs
F26.1Deterministic CBOR, no indefinite lengthImplementedsrc/content.rs
F36.2Extension keys int or text of at most 255 octets, valid UTF-8Implementedvalidate_extensions
F46.3NestedParts at most 4 deepImplementedvalidate_nesting
F57.1Receive application/mimi-content, text/plain, text/markdown;variant=GFM-MIMIClientThe codec reads all three
F64.5Decrypt external contentClientsrc/external.rs; the caller supplies the AEAD
F77.1.1GFM-MIMI without raw HTML or autolinksClientvalidate_gfm_mimi_nohtml
F89.3Only the original sender edits or retracts a messageClientauthorize_replacement, which a receiving client calls
F94.5Encrypt external contentClientsrc/external.rs; the caller supplies the AEAD
F104.1The 7-element container with a flat NestedPartImplementedsrc/content.rs

Room policy (room-policy-04)

ID § Requirement Status Where
P13One role at a time; role 0 no-role, role 1 bannedImplementedsrc/room_policy.rs; a ban into role 1 needs role 1 defined
P23, 8.6A role-list change is not in the same Commit as a participant-list changeImplementedcheck_changes
P35Fixed membership, max_clients, max_usersPartlyKept, not enforced on a Commit (DIV-15)
P48.1Who may make a role change (authorized_role_changes, canBan, ...)Implemented for tracked roomsEach change authorized for its proposer, canRemoveSelf for one's own leave; canChangeOwnRole, counts and Removes without a list change not built yet; untracked rooms not checked (DIV-15)
P78.6Who may change the room's roles, base policy and operational policyImplemented for tracked roomscanChangeRoleDefinitions, canChangeRoomMembershipStyle, canChangeMlsOperationalPolicies for the proposer (DIV-15, DIV-18)
P58.3Hub enforces canSendMessageImplementedauthorize_sender, by the sender's role
P69One stored policy is the authority at each checkImplementedroom_policy table

Virtual clients (mls-virtual-clients-01 §5-§6)

ID § Requirement Status Where
VC15.2The five per-epoch virtual-client secretsImplementedsrc/virtual_clients.rs
VC25.6.1Small-Space PRP (FF1, AES-128, radix 2)Implementedsmall_space_prp_encrypt
VC35.6.2reuse_guard, and recovering the sender's leafImplementedcompute_reuse_guard
VC45.6.3generation_idImplementedcompute_generation_id
VC56.2, 6.3Join the emulation group externally; removal advances the epochImplementedThe conformance tests, against an emulation group only

Divergences

Where this code departs from the drafts, and why. The full text: DIVERGENCES.md.

DIV-1 GroupInfo and external-commit join: built for rooms whose tree the hub keeps

A client can join a room by external Commit (protocol-07 §5.6), as the drafts describe and as mimid does it (mimihubd/src/external_join.rs, group_info_endpoint.rs):

  • Whether the room allows it: its mls_operational_policy component's external_commit_allowed (DIV-18). A room with no such component follows MLS, where an external join is possible; a deployment can refuse those rooms instead (external_commit_when_unset = "deny" in the hub policy).
  • Who may join: a listed participant whose role holds canAddOwnClient (a new client of its user), or an unlisted user when role 0 holds canOpenJoin, whose external Commit then adds that user, and only that user, to the participant list. A room with no roles has no role checks (room-policy PR #52: "A room that has no roles_list has no role-based restrictions."). Preauthorized users are not read and joining codes are refused: not built yet.
  • **POST /groupInfo/{roomId}**: the request's SignWithLabel must verify, its BasicCredential must name a user of the provider the request's proof authenticates, and the user must be one who may join. The answer is the room's last Full GroupInfo, its tree as a full RatchetTreeOption and the proposals held for the epoch with the time each was accepted, EncryptWithLabeled to the request's key with the room ID as context, and signed by the hub's own MLS key (MIMI_HUB_MLS_KEY) as hub_sender, credential mimi://<hub domain>. Every refusal is notAuthorized, the code §5.6 has; a room this hub does not host is 404, as mimid answers noSuchRoom. A hub with no MLS key answers every request notAuthorized. Mark's proposed externalJoinNotAllowed code is not used until a draft defines it.
  • The GroupInfo kept is the Full one the room's last accepted Commit (or the bundle that seeded it) carried, and only while the room allows external Commits. After a Commit with a Partial GroupInfo or none, none is kept until the next Full one: a Partial one is rebuilt to check the Commit (DIV-12), not kept.
  • **An external Commit on update** is verified against the room's tree like any other (openmls PublicGroup), and is refused (notAllowed, with the reason) when the user its new leaf names is not of the provider whose proof came with the request (the leaf is signed by the joiner's own key, so nothing else ties that user to a provider), when the room does not allow it, when its joiner may not join, when it changes anything but its joiner's own entry in the list, when proposals are held for the epoch, or when the hub keeps no tree for the room (an untracked room refuses every external Commit, since nothing could verify it).
  • **No externalProposals staple**: §5.5 lets the hub re-issue, as its own external proposals, the held proposals an external Commit invalidates. That needs the hub listed in each group's external_senders, which groups do not do, so this hub refuses an external Commit while proposals are held instead, as mimid does, and its externalProposals is always empty.
DIV-2 CLOSED: the accepted ciphersuites are a setting

The accept-gates refuse a KeyPackage, Welcome or GroupInfo in a ciphersuite outside the accepted list before the bytes reach openmls. The list is the deployment's (mls_ciphersuites in the policy file, mimihubd/README.md); by default it is every suite the crypto provider implements, and the directory lists the same suites.

DIV-3 Assets and OHTTP transport

Not supported. v1 is messaging-only: text content over the wire and JSON lanes, no binary asset transfer, no OHTTP relay path (§5.10).

DIV-4 identifierQuery answers a single Handle or Nick query only: other identifier types not built yet

Who a query can find is the deployment's setting (identifier_discovery, mimihubd/README.md). On the TLS-PL wire lane the answer is an IdentifierResponse, as §5.8 has it, always HTTP 200 (notFound means the request was acceptable and nothing matched, so the code in the body says the outcome): a user the hub answers for is success with the user's URI on this provider; every other answer is the same notFound body, byte for byte, whether the user is outside the setting, does not exist, or the request could not be decoded or evaluated. The JSON lane answers with the bare status (200 or 404, no body).

DIV-5 fan-out to other providers, and what is not delivered yet

For a room it hosts, the hub fans out what it accepts (protocol-07 §5.5; mimihubd/src/fanout.rs): each local participant gets the message in its queue, and each other provider with a participant gets one FanoutMessage in the outbox, which a worker posts to that provider's notify.

DIV-6 client-asserted identity is not bound to an authenticated channel

This reference hub authenticates the transport peer via mTLS (an allowlisted certificate), never the individual end-user identity inside a request body. The three wire routes that carry a claimed identity have different answers, not one shared gap:

  • **submitMessage**: sendingUri is unverified by this hub, and that is not a gap. RFC 9420's own delivery-service trust model does not expect the DS to verify a message's signature or hold group state - that is the receiving member's responsibility, checked against the sender's leaf credential inside the actual MLS group. This hub relaying an unverified sendingUri claim matches the spec's own DS posture rather than diverging from it.
  • **keyMaterial**: the requester is bound to the peer. The provider path takes a KeyMaterialRequest only from a peer whose proof authenticates the provider of its requestingUser (never this provider: a peer does not speak for this provider's users), or the provider hosting the room the request names, the room's hub, through which §5.2 sends every request ("MUST be sent via the hub provider of whatever room they will be used in"); otherwise 403 not-permitted. The path's user and the body's targetUser must be the same user, since the KeyPackage is taken for the one and consent is read for the other; otherwise 400 malformed-request. What stays open is the room clause, at its full width: any authenticated peer can name any requester by naming a room on its own domain, since the target's provider cannot tell whether that room exists. It follows from §5.2, which has the target's provider hear the request from the room's hub, and from a BasicCredential, which binds the request's signature key to no one; there is no fix inside protocol-07. A consent scoped to a room narrows it, and that is the granting user's choice. What the binding does close is a peer naming a requester of another provider for a room on that provider or on a third one. The provider-path rate limit is therefore counted on what is proven, the peer's domain, as well as on the requester (DIV-23). Unlike submitMessage, the draft's own KeyMaterialRequest (§5.2) carries a self-signed identity claim (requesterSignatureKey/requesterCredential/ keyMaterialRequestSignature) - a real mechanism, not an invented one. This hub checks the credential's embedded identity against the claimed requestingUser and logs the outcome, but never refuses a request over a mismatch, and does not verify the signature itself (the exact signed-content scope isn't confirmed against primary source, and this check is diagnostic only - nothing gates on it). This is a deliberate testing-phase choice, not a settled production security posture. A self-signed credential has no external trust root without a persistent identity registry, and this hub's KeyPackage store is a one-time-claim object for the add flow, not one - there is nothing durable here to pin a claimed identity's genuine key against. Requiring a match before serving would functionally refuse any identity this hub has not already interacted with, defeating the point of testing interop with new peers. A production/GA federation policy (rate-limiting repeated unverified claims, or a real persistent identity-key registry) should be revisited before general availability. A request for another provider's user is forwarded as received (DIV-5): this hub does not check its signature and cannot sign one, so the target provider checks it, and a KeyPackage is claimed from another provider only for a requester whose client signs the request.
  • **consent**: ConsentEntry (§5.7) carries no signature field at all in the draft - no self-signed mechanism exists here for this hub to check even if it wanted to. This may be a genuine gap in the draft itself rather than an implementation gap; worth raising with the WG rather than inventing a private signing convention unilaterally.
DIV-7 the directory document - CLOSED

§5.1 defines a directory whose top-level keys are the endpoint URLs. This hub's directory() now publishes those flat, draft-shaped keys (absolute HTTPS URLs) for the six endpoints it wire-routes, alongside the pre-existing endpoints (JSON compat lane) and wireEndpoints (TLS-PL lane, relative paths) nesting, kept as additive non-standard keys for existing consumers. A client that looks for a root-level keyMaterial key per the draft now finds one.

DIV-8 reportAbuse is bounded to metadata-only reports; asset download is not implemented

reportAbuse (§5.9) has a v1 wire handler (POST /mimi/pl/reportAbuse/{roomId}) that accepts and stores reportingUser/allegedAbuserUri/reasonCode/note in the configured provider store. A report attaching one or more AbusiveMessage entries is refused (decode error, not silently dropped): validating an AbusiveMessage requires recalculating its Frank against this hub's own key material, which this codebase does not build (DIV-9). This hub takes no automated action on an accepted report - it is a stored record only, matching the draft's own text ("the response code only indicates if the abuse report was accepted, not if any specific automated or human action was taken").

DIV-9 SubmitMessageResponse omits the frank field, and reportAbuse cannot validate a franked message

§5.4.1 server_frank framing is not yet built. The wire form's optional Frank frank presence tag is encoded as absent, so adding a real value later is additive. Closing this divergence needs computing server_frank from a client-supplied frank_aad and this hub's own hub_key (an HMAC-style commitment scheme, per §5.4.1's description and its comparison to the Facebook franking design), plus the receiver-side verification the draft describes. The implementation does not compute or verify server_frank; SubmitMessageResponse therefore omits frank, and reportAbuse rejects attached AbusiveMessage values rather than accepting them unverified.

DIV-10 CLOSED for room updates by Commit; four operations have no wire route of their own

update (§5.3) applies a Commit carrying participant-list changes, room-policy changes, or both (one change per policy component; a roles_list never beside a participant-list change), with or without Add and Remove proposals, and a member's leave through proposals the next Commit includes by reference. roomPolicy, memberRole, addParticipant and authorizeSender have no wire route of their own: on the wire they are what an update does.

DIV-11 CLOSED for consent_extensions; update's fields stay opaque

ConsentEntry.consent_extensions (§5.7) is decoded into the real draft-ietf-mls-extensions §4.6 AppDataDictionary shape: a run of ComponentData { uint16 component_id; opaque data<V>; } entries, sorted and unique by component_id (the draft's own MUST), wrapped in one outer length-prefixed window. id_request_extensions/id_response_extensions (§5.8) and abuse_extensions (§5.9, the same AppDataDictionary type) stay opaque length-prefixed blobs - the decoder consumes these fields without interpreting or retaining their contents, since nothing here produces or consumes those specific fields. update's RatchetTreeOption field (§5.3) also stays opaque, for the same reason as the rest of update's codec: no live accept-path exists yet. The wire vectors fill it with a real option (see DIV-12), not filler bytes, so a decoder that reads it is not thrown by them. A Full GroupInfoOption is read raw and suite-gated; a Partial one is read raw too (DIV-12).

DIV-18 the operational policy component: kept, two flags enforced

mls_operational_policy (0x0024, room-policy-04 §7.1, OperationalParameters) is read whole (mimi-core/src/operational_parameters.rs) and kept per room whose tree the hub keeps: from the GroupContext when the room is seeded, and from an AppDataUpdate in a Commit. Where -04 leaves a type undefined it is read as MLS defines the name: WireFormats as a WireFormat (uint16), ContentType as MLS's (uint8), ComponentID as mls-extensions-10 has it (uint16), MediaType as its §6.2.2 struct, and unit64 as uint64. PendingProposalPolicy's extension arm names no enum value, so only unspecified, immediate_commit and random_delay are read.

DIV-12 a Partial GroupInfo is rebuilt at the hub, its tree tried at each place in the list

§5.3 writes the GroupInfoOption payload raw: a GroupInfo for full, a PartialGroupInfo for partial, each ending where its own structure ends, with ratchetTreeOption following. Both are written and read that way here. A Full payload's end is found by decoding it as an openmls VerifiableGroupInfo, and it is suite-gated at decode; a Partial payload's by decoding it with mimi_core::partial_group_info (draft-ietf-mls-ratchet-tree-options §4), and it is not suite-gated, since it carries no ciphersuite.

DIV-13 an exhausted client is answered with partialSuccess

When a user has no key material left (no unexpired one-time KeyPackage, and no last-resort one, which by default is handed out once, DIV-23), the keyMaterial response carries user status partialSuccess with one client entry whose status is keyMaterialExhausted. §5.2 defines partialSuccess as key material for at least one client, so a response with no successful client does not fit it, and the draft gives no user code for "known user, nothing left to issue": noCompatibleMaterial is defined as no client able to supply material compatible with the request's required capabilities, which is a different condition. partialSuccess is used because the user is known and a client was enumerated; the choice is a judgment call on a point the draft leaves open, and is not treated as settled. The decoder accepts the response as sent. It refuses the combinations §5.2 rules out: success with a client that is not success, success or partialSuccess with no client, and a client list under any user status other than success, partialSuccess and noCompatibleMaterial. Every other combination of user and client statuses is read and written back unchanged.

DIV-15 three room-policy components are read; the other ten are refused

update reads a participant-list change from either of two carriers: an AppDataUpdate (mls-extensions-10 §4.7, proposal type 0x0008 as its §7.2.1 suggests) addressed to component 0x0022 (participant_list, protocol-07 §10.3), or the custom proposal of the private type 0xF7A0 (mimiParticipantList). Both carry the draft's ParticipantListUpdate encoding and are applied the same way. 0xF7A0 is a compatibility carrier for clients that do not yet send the change as an AppDataUpdate, and is to be removed once they do. The openmls release this crate pins (0.9.2) is built without its extensions-draft feature and cannot read an AppDataUpdate, so commit_wire reads the proposals window itself and rewrites an AppDataUpdate to the 0xF7A0 form for reading only; the bytes of the Commit are never changed. A fanned-out Commit or proposal reaching /notify is refused before it is read (see below).

DIV-16 a certificate names the provider domains it carries, and any CA in the client bundle may issue any name

Protocol-07 §4.1 has the TLS certificates presented in the handshake authenticate the source and target provider domains (RFC 6125). This hub's mTLS listener accepts a client certificate only if it chains to a CA in MIMI_CLIENT_CA; the request handlers then see the end-entity certificate, and /notify/{roomId} (§5.5) is accepted only when that certificate is valid for the room's hub, the domain in the authority of the room URI. A certificate is valid for a domain when a dNSName subject alternative name matches it, exactly or by a leftmost wildcard label; the common name is not read. The same question gates the JSON-lane /mimi/v1/notify, which takes a room query for it.

DIV-17 content-10: what mimi-core reads and writes against content-09 peers

The content codec follows draft-ietf-mimi-content-10. Its examples are the instance documents already held for -09: the draft's text caught up with them (the reaction's heart is U+2764 and its in-reply-to ID is the one in the table), so there is no new vector to add and every one still reads and writes byte for byte.

DIV-19 the client lane is a local extension

MIMI specifies provider-to-provider traffic and leaves how a provider's own clients reach it to the provider. This hub serves one such path, the client lane (mimihubd/README.md, "The client lane"), on its own listener, for a provider whose client-facing service authenticates its users and signs each request for one of them. Nothing on it is a MIMI route or changes one: rooms, Commits, proposals and application messages it carries go through the same checks as on the provider path, with the user as the requester. A peer cannot reach it, and the operator's routes stay on their own loopback listener.

DIV-21 several participant-list updates in one Commit: the order their additions are appended in

protocol-07 §7.5 says every ParticipantListUpdate in a Commit indexes the list as it stood before the Commit ("This holds even when a commit contains more than one ParticipantListUpdate. Removing one entry does not shift the indices of the other removals."), and that a Commit whose updates touch one user twice is not valid. It does not say in which order two updates' added participants are appended. This hub, and mimi_core::participant_list::merge_updates, which a client of this repository uses too, append them in the order the Commit's AppDataUpdate proposals for the participant list come in, the order draft-ietf-mls-extensions §4.7 hands a component's updates to the application. A client that appends them in another order computes another list, and so a GroupContext that differs from the Commit's.

DIV-22 the neutral lane profile's admins cannot leave; a deployment's profile may let them

room-policy-04 §8.1.2 authorizes canRemoveSelf by the holder's role's authorized_role_changes "entry where from_role_index matches its current role", whose targets contain zero, and canRemoveParticipant by the entry whose from_role_index matches the removed user's role. Both read the same entry, so a role that may leave from role 2 may also remove other holders of role 2 when it holds canRemoveParticipant. The neutral profile (client_lane_rooms.rs) lets a member leave (role 3 has an entry 3 → 0 and no canRemoveParticipant) and does not give the admin role an entry 2 → 0, so under it an admin cannot remove another admin and cannot leave either: an admin leaves by first being changed to a member by another admin (the entry 2 → 3), and the room's last admin cannot. A deployment whose admins should leave writes the entry 2 → 0 in its own profile (MIMI_LANE_ROOM_POLICY), and with it its admins may also remove one another, as §8.1.2 reads; the neutral profile keeps the narrower rule as its default.

DIV-23 with MIMI_LAST_RESORT_REUSE=true, a last-resort KeyPackage is handed out more than once

protocol-07 §5.2 says of the key material a keyMaterial request claims: "The keying material is designed for use in a single room and may not be reused", and, normatively, "Keying material provided from one response MUST NOT be provided in any other response." By default this hub follows it: a last-resort KeyPackage is handed out once and deleted, like any other. A deployment may set MIMI_LAST_RESORT_REUSE=true (off by default), and then the hub hands a user's last-resort KeyPackage out more than once, so two keyMaterial responses, for two rooms or two requesters, carry the same KeyPackage. That breaks §5.2's MUST NOT, which makes no exception for a last-resort KeyPackage; the setting is a deployment's choice of RFC 9420 §16.8's MAY over it.

Problem types

Every refusal this hub answers with an HTTP error status carries an RFC 9457 problem body whose type is one of these.

no-local-member 404: Not delivered: no member of the room here

The answer to a notify (protocol-07 §5.5) that carries a Commit, proposals or an application message for a room hosted on another hub when no user of this provider is a member of that room. A user becomes a member when the room's hub sends this provider a Welcome naming one of the user's KeyPackages. The message is not recorded, so the same notify sent again gets the same answer; the sender should drop the delivery rather than retry it.

malformed-request 400: The request could not be read

Any endpoint, for a body, path or query it cannot read: a wire body that does not decode as the endpoint's request, a JSON body that is not JSON, a query parameter missing, a path segment that is not a room URI, or a room this hub does not host where the endpoint needs one it does. Also what axum answers with 400 for a request it rejects before a handler runs. Fix the request; sending it again unchanged gets the same answer.

material-not-accepted 400: The KeyPackage or Welcome is not accepted

keyMaterial/ingest and welcome/ingest: the KeyPackage or Welcome does not decode, is under a ciphersuite this hub does not accept, or fails the gate's other checks. Nothing is stored. Do not retry the same bytes.

message-not-queued 400: The message was not queued

The JSON lane's submitMessage: the store's bounds refuse the message (empty, too large, a recipient it does not keep a queue for, or a full queue). A full queue may drain; anything else is the same on retry.

client-not-authenticated 401: The client lane request is not authenticated

The client lane's gate: no lane signature, one that does not verify with a key in the lane's key file, a missing or reused nonce, a signature older than 30 seconds or made before the hub started, or a mimi-client-user that is not a user of this provider. The hub logs which; the body does not say. Only the provider's own client-facing service can retry, with a fresh signature.

client-rate-limited 429: Too many client lane requests for this user

The client lane takes a bounded number of requests per user per minute, a backstop to the client-facing service's own limits. Retry after a minute.

key-material-rate-limited 429: Too many keyMaterial requests for this target

A keyMaterial request on the provider path (protocol-07 §5.2) from a requesting provider that has already asked for the same target user's KeyPackages the most times the hub takes in an hour (5, as for one user on the client lane). The requesting provider is the domain the peer's proof authenticated. The requester a request names is not counted: it is only a name the peer chose, and counting it would let one peer spend the budget of another provider's users. A target's KeyPackages are spent by being claimed, and a reused last-resort one (DIVERGENCES DIV-23) is the same each time, so the hub bounds how often they can be claimed. Retry after an hour.

not-authenticated 403: The requesting provider is not authenticated

The provider-auth gate (no certificate and no valid signature, a signature that does not verify, a refused nonce) and the From check (a header naming a provider the request's proof does not authenticate). The hub logs which; the body does not say. Retry only with a valid proof of the provider the request is from.

not-permitted 403: The requesting provider may not do this

keyMaterial/ingest publishing KeyPackages for a user of another provider: only that provider may. Do not retry.

not-the-rooms-hub 403: Not from the room's hub

notify (protocol-07 §5.5) from a provider that is not the hub of the room the path names. Do not retry: only the room's hub sends a notify for it.

sender-not-allowed 403: The sender may not send in this room

authorizeSender: the sender may not send in the room. The answer changes only when the room's list or policy does.

not-found 404: Not found

Nothing answers the request: a route this listener does not serve, no KeyPackage or queued message or Welcome for the user named, an identifier that is not found (identifierQuery), or an operator's untrackRoom for a room with no tree. One body for all of them, byte for byte, so it says nothing about which (DIV-4). Nothing to retry unless what was asked for has since been published.

room-not-hosted 404: The room is not hosted here

groupInfo (protocol-07 §5.6) for a room this hub does not host; mimid answers this case noSuchRoom. Ask the room's own hub.

method-not-allowed 405: Method not allowed

A route asked with a method it does not take. The Allow header is kept. Use a method the Allow header names.

room-is-tracked 409: The room is changed by Commit

The operator's roomPolicy, memberRole and addParticipant for a room whose ratchet tree the hub keeps: its list and policy are its group's, changed by Commit (DIV-10). Change the room by Commit, or untrack it first.

body-too-large 413: The request is too large

A body larger than the endpoint takes. Do not retry the same body.

wrong-operation 422: Wrong consent operation

requestConsent with an entry whose operation is not request or cancel, or updateConsent with one that is not grant or revoke (protocol-07 §5.7). Send it to the other endpoint.

internal-error 500: The hub failed

The hub's own failure, such as its store. Retry later.

upstream-failed 502: Another provider did not answer

keyMaterial for a user of another provider: the hub forwards it, and that provider could not be reached or answered with something this hub cannot read. Also when this hub has no outbound client to forward with. Retry later.

http-error the answer's own: The request was refused

Any other error status, when no type above applies: for example 415 for a JSON endpoint asked without Content-Type: application/json. The HTTP status says why.

remote-room-not-delivered 422: Not delivered: the room is hosted on another hub

Retired. This hub delivers messages for rooms on other hubs to their members here, and answers no-local-member when there are none. The text below is what this answer meant while it was used.

Reasons

Why each refusal is given, and the sentence of the specification it rests on. Where the behaviour is this code's own, the row says so and names the divergence that explains it.

ReasonSeen asRests onWhy
not-authenticatedproblem not-authenticated, 403draft-ietf-mimi-protocol-07 §4.1
The TLS connection underlying the HTTPS connection MUST be mutually authenticated. The certificates presented in the TLS handshake MUST authenticate the source and target provider domains, according to [RFC6125].
DIV-16
The request carries no proof of the provider it comes from: no client certificate and no valid request signature, or a From header naming a provider the proof does not authenticate.
client-not-authenticatedproblem client-not-authenticated, 401local
DIV-19
A client lane request whose signature does not verify with a configured key, is older than 30 seconds, reuses a nonce, or names a user who is not on this provider.
client-rate-limitedproblem client-rate-limited, 429local
DIV-19
More client lane requests for one user in a minute than the hub takes.
key-material-rate-limitedproblem key-material-rate-limited, 429RFC 9420 §16.8
To prevent such a denial-of-service attack, the KeyPackage publication system SHOULD rate-limit KeyPackage requests, especially if not authenticated.
DIV-23
More keyMaterial requests from one requesting provider for one target user in an hour than the hub takes.
material-not-acceptedproblem material-not-accepted, 400local
DIV-2
A KeyPackage or Welcome that does not decode, uses a ciphersuite this deployment does not accept, or fails the hub's other checks; its credential must name the user it is published for.
not-permittedproblem not-permitted, 403localA provider acting for a user it does not serve: publishing their KeyPackages, or reading or filling their queue; only a user's own provider may.
upstream-failedproblem upstream-failed, 502localThe hub forwarded a request to another provider, which could not be reached or answered with something the hub cannot read.
update-not-allowedupdate answer notAlloweddraft-ietf-mimi-protocol-07 §5.3
notAllowed indicates that some type of policy or authorization prevented the hub provider from accepting the UpdateRequest.
The room's policy or the proposer's role does not allow this change.
update-invalid-proposalupdate answer invalidProposaldraft-ietf-mimi-protocol-07 §5.3
invalidProposal indicates that at least one proposal is invalid. A list of invalidProposals is provided in the response.
At least one proposal in the update is not valid for the room as the hub holds it.
participant-list-user-touched-twiceupdate answer invalidProposal; reported by a client in the roomdraft-ietf-mimi-protocol-07 §7.5
A single commit is not valid if it contain any combination of Participant list updates that operate on (add, remove, or change the role of) the same user in the participant list more than once.
Two participant-list updates in one Commit, which all index the list before it, add, remove or change the role of the same user.
seed-changes-room-stateupdate answer notAllowed; reported by a client in the roomlocal
DIV-19
The first Commit with a full GroupInfo and ratchet tree seeds the room's tree, and its GroupContext must carry the room's policy, operational policy and participant list as the hub holds them after the Commit. A lane room's are the deployment's profile, which createRoom answers; a seed with others would replace them.
app-data-component-not-readupdate answer invalidProposal; reported by a client in the roomdraft-ietf-mls-extensions-10 §4.7
An AppDataUpdate proposal is invalid if its component_id references a component that is not known to the application, or if it specifies the removal of state for a component_id that has no state present.
DIV-15
A Commit changes an app data component this implementation does not know; DIV-15 lists the ones it does. join_links is among those it refuses: its update is a list of removals and additions, and how one applies is an open question upstream (mimi-room-policy issue 30).
roles-change-with-participant-changeupdate answer notAllowed; reported by a client in the roomdraft-ietf-mimi-room-policy-04 §3
Changing Role definitions is sufficiently disruptive, that an update to this component is not valid if it appear in the same commit as any Participant List change.
A Commit changes the roles_list and the participant list together.
first-roles-list-by-commitupdate answer notAllowed; reported by a client in the roommimi-room-policy pull request 52 (open), commit ffd0e96
A Commit that adds a roles_list to a group that has none is invalid.
DIV-15
A room whose group was created without a roles_list cannot get its first one by Commit; draft-ietf-mimi-room-policy-04 does not say this, the open pull request does.
room-is-trackedproblem room-is-tracked, 409local
DIV-10
An operator change to the list or policy of a room whose ratchet tree the hub keeps; that room changes by Commit.
submit-not-allowedsubmitMessage answer notAlloweddraft-ietf-mimi-protocol-07 §5.4
notAllowed indicates that some type of policy or authorization prevented the hub provider from accepting the SubmitMessageRequest. This could include nonsensical inputs such as an MLS epoch more recent than the hub's.
The sender may not send in this room, or the message is empty or larger than one queued item.
sender-not-allowedproblem sender-not-allowed, 403draft-ietf-mimi-room-policy-04 §8.3
canSendMessage - the holder can send instant messages to the room.
The sender is not an active participant whose role holds canSendMessage.
message-not-queuedproblem message-not-queued, 400localThe JSON lane's submitMessage: the message is empty, too large, for a recipient the hub keeps no queue for, or the queue is full.
not-the-rooms-hubproblem not-the-rooms-hub, 403draft-ietf-mimi-protocol-07 §5.5
A provider that receives a /notify/{roomId} request MUST verify that the source provider authenticated by the transport layer (see Section 4.1) corresponds to the hub of roomId. If it is not, the receiving provider MUST reject the request and MUST NOT process, store, or forward any FanoutMessage it carries.
A notify for a room from a provider that is not that room's hub.
no-local-memberproblem no-local-member, 404local
DIV-5
A notify for a room hosted elsewhere when no user of this provider is a member of it; nothing is recorded, so a retry gets the same answer.
remote-room-not-deliveredproblem remote-room-not-delivered, 422 (retired)local
DIV-5
Retired: the answer to a message for a room on another hub while this hub did not yet deliver those.
group-info-not-authorizedgroupInfo answer notAuthorizeddraft-ietf-mimi-protocol-07 §5.6
notAuthorized indicates that the requester was not authorized to access the GroupInfo.
DIV-1
The requester may not have this room's GroupInfo.
room-not-hostedproblem room-not-hosted, 404draft-ietf-mimi-protocol-07 §5.6
noSuchRoom indicates that the requested room does not exist. If the hub does not want to reveal if a room ID does not exist it can use notAuthorized instead.
A groupInfo request for a room this hub does not host; ask the room's own hub.
wrong-operationproblem wrong-operation, 422draft-ietf-mimi-protocol-07 §5.7
A requestConsent whose consentOperation is not request or cancel gets a 422 Unprocessable Content response.
A consent entry sent to the endpoint for the other operations.
not-foundproblem not-found, 404local
DIV-4
Nothing answers the request; one body for every case, so it says nothing about which.
malformed-requestproblem malformed-request, 400localA body, path or query the endpoint cannot read.
body-too-largeproblem body-too-large, 413localA body larger than the endpoint takes.
method-not-allowedproblem method-not-allowed, 405localA method the route does not take; the Allow header names the ones it does.
http-errorproblem http-error, the answer's own statuslocalAny other error status, such as 415 for a JSON endpoint asked without a JSON content type.
internal-errorproblem internal-error, 500localThe hub's own failure, such as its store; never reported as accepted.
leaf-lifetimereported by a client in the roomRFC 9420 §7.3
If instead the LeafNode appears in a message being received by the client, e.g., a Proposal, a Commit, or a ratchet tree of the group the client is joining, it is RECOMMENDED that the client verifies that the current time is within the range of the lifetime field.
A leaf in a received Proposal, Commit or joining tree is outside its lifetime; RFC 9420 recommends this check on receipt and requires it only for what a client sends.

Settings

None given.

Test vectors

The test vectors in this revision, for download. Beside each, the sources that compile it in (include_str! or include_bytes!); a dash means none does.

FileBytesSHA-256Opened by
content-fixtures/alternative.cbor14148605b74d1b7436f75ce01e24645416f703613c58c144bc0580c55ed7b2693bc-
content-fixtures/attachment.cbor221e16a4c9c87c1299ca78c264aea848b369da3c50f0613143ad7bddc374ba6d2c3-
content-fixtures/fixtures.txt913fec34d228e5499f4484089aef456213c8b2fe3efbb12c82560c3c69cfe2e5c3b-
content-fixtures/reply.cbor1044679ff39c150294cfae10aeffb3ff34b88a42418bd8003957dfb344337a31c4f-
joint-ietf127-mls-vectors.json205062e7e94e9e7188ca2f733d8764c4bd117275f5bbfc6eebcbd201be4aceee32a4fmimihubd/src/http_update_tests.rs, mimihubd/src/http_update_tracked_tests.rs, tests/joint_ietf127_vectors_replay.rs
joint-ietf127-vectors.json1416121af265f50c7d03e40ddd694ffd56bf00c1f20dc4a8b3a76a6466823a62751ddtests/joint_ietf127_vectors_replay.rs
protocol07-vectors.json47078e223a9ebb3737fae4645fd19c49d059053aa352702ad3946cfdf6adfc0674ec2mimihubd/src/http_update_tests.rs, tests/fanout_app_data_update.rs, tests/protocol07_vectors_replay.rs
vc-01-vectors.json705843a55a806e462d1be48931d89d92517565a5d38d8da84f11a8b2d2ead6b8c1c3tests/vc_vectors_replay.rs

The same facts as JSON: status.json.