DocsProjectChangelog

Changelog

What changes between rim-server releases, for the people who run a server and the people who write a client. The format is Keep a Changelog and the versions follow Semantic Versioning; a release is the tag v<version>, the version every crate in the workspace carries.

How entries are written #

  • A pull request that changes what an operator, a user or a client author sees adds its line under Unreleased in the same pull request. Refactors, tests and internal documentation do not.
  • Each line goes under one heading: Added, Changed, Deprecated, Removed, Fixed or Security. It says what changed for the reader, not how it was built.
  • A change the operator has to act on (a new required setting, a migration that rewrites a large table, a contract migration, a changed default) starts with Upgrade: and says what to do. docs/operations/upgrade.md is how an upgrade runs.
  • A change to the GraphQL schema or a spec in docs/specs/ names the type, field or spec.
  • At release time Unreleased becomes ## [<version>] - <YYYY-MM-DD> and a new empty Unreleased starts above it (docs/operations/release-checklist.md).

Unreleased #

0.0.12 - 2026-12-01 #

Added #

  • A message an agent posted carries Message.postedVia = AGENT (MessagePostedVia), so clients can show a small mark next to it: a chat.post_message or chat.reply_to_selected_message call of executeCommand with the initiator AGENT, directly or as a step of a macro the agent ran. The mark stays when the message is edited; every other way of posting leaves it null. Message events carry it as message.posted_via. serverInfo.capabilities lists message_posted_via (docs/messaging.md, docs/command_model.md, docs/specs/agent-data-flow-v1.md).

Security #

  • actix-http 3.22.1 and actix-web 4.20.0 fix RUSTSEC-2026-0552 (a bare LF in chunked trailers consuming pipelined requests or stalling the body), RUSTSEC-2026-0553 (malformed quoted chunk extensions ending a request body early) and RUSTSEC-2026-0554 (partial requests on a keep-alive connection getting past the request header timeout).
  • lettre 0.11.24 fixes RUSTSEC-2026-0560 to RUSTSEC-2026-0565 in outgoing email: forged SMTP replies through STARTTLS response injection, SMTP command injection through missing dot-stuffing, mail for a quoted local part going to another address, panics on a blank EHLO line or a display name with CR or LF, and unbounded buffering of an SMTP reply.
  • url 2.5.9 fixes RUSTSEC-2026-0592 (stack overflow in Url::origin() on nested blob: URLs). A server stays affected by these until it runs a release with these lines.
  • RUSTSEC-2026-0594 (cookie 0.16 private cookie nonces repeating after fork()) is listed as not affecting the server in .cargo/audit.toml: actix-web 4 has no release on the fixed cookie 0.18.3, but the server never builds the encrypted cookie jar and never forks.
  • curve25519-dalek 5.1.0 replaces 5.0.0 for RUSTSEC-2026-0620 (wrong results from scalar multiplication in the AVX-512 backend). The 4.1.3 copy the MLS and OPAQUE crates pull in is listed as not affecting the server in .cargo/audit.toml: in 4.1.3 that backend is compiled only by a nightly compiler, and the server builds on stable Rust.

0.0.11 - 2026-11-14 #

Security #

  • An account's password is no longer locked after ten wrong tries, so it no longer needs a reset with the recovery phrase: an account takes ten password login starts an hour, and a start past that is refused with RATE_LIMITED and the seconds until the hour's window ends. Each start still counts against its address too. PASSWORD_LOCKED is no longer sent, and a password locked before takes logins again (docs/specs/key-identity-v1.md).
  • executeCommand checks capabilities and timeouts in, and writes its audit row to, the workspace the command acts on (its server_id argument, else commandContext.workspaceId). A call whose commandContext.workspaceId names another workspace than its server_id argument is refused with VALIDATION, and a row goes to a workspace's log only when the caller is a member there (docs/command_model.md, Target workspace).
  • When someone stops being an Owner or Moderator of a workspace (made a Member or Guest, kicked, banned or leaving), or their account is blocked on the instance or deleted, the bot tokens and incoming webhooks they could still hold there are revoked: those of the bots they created and those they made for other bots. They show as revoked in botTokens and incomingWebhooks, and the workspace's audit log records it as bot.revoke_on_role_loss (docs/specs/bots-v1.md).
  • A signup whose proof-of-work fails no longer uses up one of its address's open signups.
  • GET /api/sdl serves the schema rendered once at start, with Cache-Control: public, max-age=300, instead of rendering it again for every request.
  • A GraphQL request runs at most 32 query root fields, counted across its batch with each alias, repeated field and fragment expansion, with or without a session and when forwarded by another server. A request over it answers one TOO_MANY_ROOT_FIELDS error and runs nothing (docs/api.md, "Limits").
  • remoteServer and remoteIdentity fetch discovery documents within limits: 10 fetches a minute per user and 60 a minute for all explicit pins, a fresh pin of an origin answered without a fetch, and a failed fetch answered from memory for 5 minutes. One request runs at most 4 of remoteServer and remoteIdentity together (with previewWebhookFormat, below); past a limit they answer RATE_LIMITED or TOO_MANY_ROOT_FIELDS (docs/specs/server-to-server-v1.md, "Pinning a peer").
  • Server-to-server requests naming servers this server does not know no longer use up the discovery budget for everyone: their fetches count against the sending address, 5 a minute, first pins and refetches of pinned peers each have a budget of their own, and an id that failed to pin from an origin is not fetched from it again for 5 minutes.
  • A webhook format reads at most the first 1,000 characters of each value and stops filling a message once it is past the length it can post, so a large delivery or preview costs no more than a short one, and one request runs at most 4 previewWebhookFormat fields together with remoteServer and remoteIdentity (docs/specs/bots-v1.md).
  • A plugin bundle link download runs one at a time per account and stops after 30 seconds, so a few accounts cannot hold every download slot (docs/specs/web-plugins-v1.md).
  • Attachments of a deleted message can no longer be downloaded, and an hourly job deletes their files (those of a reported message stay for the report).
  • An upload ticket lasts 5 minutes instead of 15 and an account holds at most 5 open tickets, so unused tickets can no longer hold a workspace's storage quota.
  • Link previews keep at most 300 characters of title, 1,000 of description, 100 of site name and 2,048 of image address, and fetch each distinct address of a message once. Finding the addresses in a long message no longer takes time that grows with the square of its length.
  • Webhook test sessions are limited to 3 an account, so a few accounts can no longer hold every session on the server, and they no longer keep X-Forwarded-For, X-Real-IP and similar headers that carry the sender's address.
  • A value a webhook fills into a post no longer turns into a link; only the link of the format's link field does.
  • The operator command line writes control characters in user-written text (such as an abuse report's reason) as escapes instead of sending them to the terminal.
  • Plaintext attachment downloads and a host's answers forwarded by a relay carry X-Content-Type-Options: nosniff and a sandboxing Content-Security-Policy; forwarded answers that are not JSON are served as downloads.
  • Both Caddyfiles send Strict-Transport-Security: max-age=31536000.
  • Upgrade: rim-deploy requires the image's signature to come from the release workflow run at the commit the tag points at, and installs that commit's deploy/ files, so a moved tag installs nothing; --check never deploys a release older than the running one. The host needs git (for git ls-remote). Install the new rim-deploy on the host as deploy/README.md says.
  • upgrade.sh and rim-deploy write the digests their signature checks verified (RIM_SERVER_DIGEST, RIM_IMAGECHECK_DIGEST, RIM_WEB_DIGEST) into .env, so compose runs exactly those images, and the third-party images in the compose files are pinned by digest.

0.0.10 - 2026-11-13 #

Changed #

  • The built-in AI agent is called the assistant in command titles: workspace.open_agent is Open Assistant, settings.open.agent is Settings: Assistant, settings.open.plugin_ai is Settings: Assistant's Plugin Commands and agents.allow_in_encrypted_conversation is Let the Assistant Read This Conversation…. settings.open.bots is Settings: Bots & webhooks, the Agents category describes the assistant and the agents on your computer, and Browse Plugins says what Settings > Plugins offers. moderation.block_principal and moderation.unblock_principal are Block Account… and Unblock Account…. Command ids are unchanged, so keybinds and macros keep working.

Fixed #

  • Link previews no longer include the punctuation that ends a sentence (a period, comma or closing parenthesis) in the address they fetch, so a link at the end of a sentence shows its page instead of "Page not found". Parentheses inside an address are kept.

Security #

  • A relay answers 400 bad_request to /api/remote/<hostServerId>/<path> when the path has a . or .. segment (also percent-encoded, in any letter case), an encoded slash or backslash, or a control character, and sends nothing to the host. Before, such a path could reach other server-to-server endpoints of the host than /forward/, signed by the relay. The server-to-server client also refuses any request whose path a URL parser would change, so no caller is sent to another path than the one it names (docs/specs/server-to-server-v1.md, "Forwarding").

0.0.9 - 2026-11-12 #

Added #

  • The agent contract (docs/specs/agent-data-flow-v1.md) now covers agents the desktop app starts and installs and connecting an agent from the app, and keybinds can name the new agent session commands (agents.connect_agent, agents.start_session, agents.stop_session, workspace.open_agent_sessions, agents.ask_about_message, agents.ask_about_conversation).
  • Keybinds to app commands, the commands the client runs itself such as Open Home, Open Unreads and Toggle Notifications: createKeybind and updateKeybind accept their ids for personal and workspace keybinds, so those bindings sync across devices and a workspace can share them. The server never lists, runs or offers them to an agent (docs/command_model.md, App Commands). Listed in serverInfo.capabilities as app_command_keybinds.
  • Five built-in commands for what the GraphQL mutations already do: chat.unpin_message, chat.set_topic, admin.clear_timeout, notifications.mute_conversation and notifications.unmute_conversation. Each keeps its mutation's rules and falls back to the focused conversation (and, for unpinning, the selected message). The mute takes 1h, 8h, until_tomorrow (09:00 tomorrow in the timezone of the caller's do-not-disturb window, else UTC), forever or an until time. The agent may call all five, each after the person confirms; the AI-callable set grows from 42 to 47 (docs/command_model.md).
  • Keybinds can name the next app commands the client adds: opening each settings tab (settings.open.*), window, update and sign-out commands, message selection and editing, invitations, lenses, Unreads, moderation, bots and webhooks, plugins, people actions, and the agent commands, including approving or refusing an agent's request or pairing (docs/command_model.md, App Commands).
  • Home layout: a signed-in person's Home is saved on their own server, one layout per account, so every device shows the same boxes in the same order (homeLayout, saveHomeLayout, resetHomeLayout, docs/home-layout.md). The edit made last wins: a save carries editedAt, and one older than the stored layout answers kept: false with the stored one. The server checks the layout's shape and size only, keeps no audit entry and never logs it, and the account purge removes it. Listed in serverInfo.capabilities as home_layout.
  • Webhook test sessions: an Owner or Moderator can see what a service really sends, held in memory for at most an hour and readable only by them (startWebhookTestSession, webhookTestDeliveries, endWebhookTestSession, specs/bots-v1.md). A new webhook's test URL posts nothing, and saving the webhook with CreateIncomingWebhookInput.testSessionId keeps that URL (CreatedIncomingWebhook.keptTestUrl). A session on an existing webhook copies its deliveries. Only the x- headers a format may use and the body are held. Listed in serverInfo.capabilities as webhook_test_sessions.
  • Webhook formats: an Owner or Moderator can say how an incoming webhook turns a delivery into a message, with rules that test an x- header or a body field and a text with placeholders, and change it later without a new URL (CreateIncomingWebhookInput.template, IncomingWebhook.template, updateIncomingWebhookFormat, specs/bots-v1.md). webhookFormats lists the ready-made ones, GitHub and Grafana, and previewWebhookFormat tries a format on a sample. Listed in serverInfo.capabilities as webhook_formats. The GitHub preset is now the shipped GitHub format, so a value from GitHub loses its format characters, such as a bidirectional override, and a pull request or issue number sent as a string posts. A server rolled back to a release without formats treats a webhook that has one as plain.
  • A pipeline can welcome people: an Owner or Moderator can add a Post as bot action to the Member Joined trigger (PipelineActionInput.postAsBot, PipelineActionGql.postAsBot, specs/bots-v1.md). Listed in serverInfo.capabilities as pipeline_post_as_bot. A server rolled back to a release without it can't read a pipeline that has one, so remove those first.
  • Bots can poll GET /api/bot/v1/events for new messages in their channels and, if allowed, members joining. An Owner or Moderator allows it with Bot.seesMemberJoins, in createBot and updateBot, and GET /api/bot/v1/me says whether it is on (specs/bots-v1.md). Listed in serverInfo.capabilities as bot_events.
  • A conversation can be marked unread from a message, with markAsUnread or chat.mark_as_unread, and unreadCounts says where its unread messages begin (UnreadCount.unreadAfter). The person's other clients learn of it from a ReadMarkerRewound event. Listed in serverInfo.capabilities as read_marker.
  • Incoming webhooks: one URL per channel, bound to a bot, with a GitHub preset for releases, pull requests and issues (IncomingWebhook, POST /api/hooks/{token}, docs/specs/bots-v1.md). Listed in serverInfo.capabilities as incoming_webhooks. Requests to them have the webhook route class in the HTTP metrics, and refused calls over a webhook's limit count as webhook in the rate limit metric. Switched off with the bots feature. A reverse proxy's access log can hold these URLs, so keep it private (docs/self-hosting.md).
  • serverInfo.capabilities lists bot_disclosure on a server with User.isBot, User.bot, ServerMember.isBot and ServerMember.bot, and command_run_id on one with ExecuteCommandInput.runId and AuditLogEntry.runId, so a client asks for them only there.
  • A notificationEvents subscription: the viewer's notifications from every workspace on this server, on one subscription and with no other events. Listed in serverInfo.capabilities as notification_events.
  • executeCommand and executeMacro errors say what kind of refusal they are in a refusal extension (DENIED, FAILED, EXPIRED, INVALID), with missing naming a capability the caller lacks and retrySafe saying whether repeating a failed call is safe (docs/command_model.md).
  • ExecuteCommandInput.runId and AuditLogEntry.runId, with a runId filter on listAuditLog, link an agent's calls in one stretch. CommandInitiator::Agent only. Audit exports gain runId.
  • Macros are the person's own commands, kept with their account on their home server as user commands (user.<key>, category Macro). A step may now name an app command or a plugin command, not only a built-in the server runs, and may ask for arguments when the macro runs (UserCommandStep.ask, UserCommandStepInput.ask). The client runs such a macro step by step; executeCommand refuses it with VALIDATION "this macro has steps only the app runs; run it from the app". macroStepCommands lists the built-in and app commands a step may name (docs/command_model.md, Commands And Macros). Listed in serverInfo.capabilities as account_macros.
  • The AI agent may run a macro its owner allowed (UserCommand.aiCallable, nlDescription and intentSamples, and the same fields of CreateUserCommandInput and UpdateUserCommandInput) when every step is a built-in the server runs and the agent may run itself, with every argument fixed. Such a macro is listed on the AI surface and by commandDiscover as user.<key> and runs as one call, which the person confirms when a step changes something. executeCommand refuses the agent any other macro with FORBIDDEN.
  • The UI value of CommandInitiator, for buttons, toggles, dialog actions and Home quick boxes that run their command through executeCommand. It is a human initiator: it needs a confirmation only for dangerous and Restricted commands, and the audit log shows it as ui (docs/command_model.md, Invocation Sources). Listed in serverInfo.capabilities as command_initiator_ui.
  • admin.ban takes an optional minutes, and notifications.mute_conversation a duration minutes with a minutes count, so macros and agents can ban or mute for a number of minutes from now. Listed in serverInfo.capabilities as command_relative_minutes (docs/command_model.md).
  • Bot accounts: an Owner or Moderator creates a bot with revocable tokens and a required statement of who runs it and where what it reads goes (Bot, BotToken, createBot, docs/specs/bots-v1.md). Switched off with the bots feature.
  • A bot API under /api/bot/v1 for reading, searching, posting and polling for mentions, in the channels a bot was added to (docs/specs/bots-v1.md). CommandInitiator::Bot appears in the audit log. Refused calls over a token's limit count as bot_api in the rate limit metric. A bot gets no notifications, digests or pushes.

Changed #

  • state.set ttl, state.incr delta and state.list limit are numbers, and numeric strings still work; so do the limit of chat.search_messages and chat.get_recent_messages. admin.invite_member no longer asks for a person it never used (a user_id is ignored), and command titles and descriptions say "Workspace" and use plainer words (Pause Notifications for do not disturb).
  • The timeout gate of executeCommand lets a timed-out member run the commands that change only their own state, as the GraphQL mutations do: chat.mark_as_read, chat.mark_as_unread, chat.leave_conversation and every notifications.* command, and a macro whose steps are all of these (docs/command_model.md, Timeout gate).
  • chat.mark_as_read, chat.mark_as_unread and the notifications.* commands write no command audit row, nor a row as a step of a workspace macro, since the workspace's Owners and Moderators read the audit log and the rows would show a person's reading habits. The audit tracing line is still logged (docs/command_model.md, Audit row).
  • Built-in commands are in sixteen fixed categories (Navigation, Messages, Conversations, Search, People, Home, Unreads, Notifications, Moderation, Workspace, Agents, Bots & Webhooks, Plugins, View, App, State) in place of Admin, Chat and Workspace (docs/command_model.md, Categories). workspace.previous_channel, workspace.next_channel and workspace.next_unread_channel are titled Previous Conversation, Next Conversation and Next Unread Conversation. workspace.navigate_to_dm declares its required conversation_id, and chat.report_message takes an optional message_id that falls back to the selected message, so the agent can name the message it reports.
  • workspace.open_marketplace is titled Browse Plugins in place of Open Marketplace, and says it opens Settings > Plugins; its id and keybind stay (docs/command_model.md).
  • Upgrade: a migration adds the column command_audit_log.run_id and the index idx_command_audit_log_actor_run_id; on a large command_audit_log table, writes to it wait while the index is built.
  • Upgrade: a migration adds the index idx_message_mention_user_created; on a large message_mention table, writes to it wait while the index is built.
  • A user command is in category Macro in place of User. A new one may no longer name another user command as a step; one saved with such a step keeps it when updated (docs/command_model.md, Commands And Macros).
  • The command audit log no longer keeps message text, search words, moderation reasons, channel descriptions, group titles or stored state values, only their length. This applies to new rows: existing rows age out with the audit retention. AuditLogEntry.argsRedacted holds {"redacted_content": true, "chars": <count>} in their place, and a pipe's AuditLogEntry.commandId holds text=[REDACTED:<count>]. A pipe that does not parse is kept as unparsed | pipe with the errorKind InvalidPipeExpression (docs/command_model.md).
  • User.isBot and ServerMember.isBot say whether an account is a bot, and User.bot and ServerMember.bot what the person who added it says about it. A bot has no handle.
  • bots answers a Guest FORBIDDEN, as it does a non-member. An Owner or Moderator adds a bot to a public channel without joining it; a private channel still needs them in it (addConversationMembers).
  • Upgrade: rolling back the binary after bots exist: calls naming a bot's id fail with an internal error, because the older binary can't read the new kind. Deactivate bots before rolling back.

Deprecated #

  • Workspace macros: createMacro, updateMacro, deleteMacro, executeMacro, myMacros and macroByName are deprecated in the schema and keep working. A client that finds account_macros moves the person's workspace macros into their macros once.

Removed #

  • commands on the AI surface and commandDiscover no longer offer an ai_callable workspace macro as macro.<id>, an id executeCommand never ran; they offer agent-callable macros as user.<key>.

Security #

  • actix-http 3.20.3 and actix-web 4.18.2 fix RUSTSEC-2026-0446 (request smuggling through malformed chunked trailers), RUSTSEC-2026-0447 and RUSTSEC-2026-0448 (compressed request bodies exhausting memory and CPU) and RUSTSEC-2026-0455 (large-window Brotli bodies getting past the decompression limit). A server stays affected until it runs a release with this line.

0.0.8 - 2026-11-03 #

Added #

  • MemberTimeoutChanged workspace event when a member is timed out or their timeout is cleared, so their open clients lock and unlock at once; only the member's own delivery carries the moderator's reason. ServerMember.timeoutReason shows the reason on the member's own entry. Listed in serverInfo.capabilities as member_timeout_changed.
  • Removing someone else from a channel is recorded, and conversationMemberRemovals lists a channel's latest removals with who removed whom, so clients can show them in the channel. Listed in serverInfo.capabilities as conversation_member_removals.

Changed #

  • A DM with someone the user blocked is hidden from the user whoever started it, as a DM or group the blocked person started already was: out of inboxConversations, workspaceEvents, notifications, the digest and unread counts until the unblock.
  • unblockPrincipal also clears what the caller had accepted from that person on this server: each DM or group they started stays out of the caller's view until its next event files it again as a request holding the invite and that event, so nothing they wrote while blocked shows before the caller decides. Audited with cleared_conversations. A conversation hosted on another server comes back as it was.
  • Blocking someone also removes them from your contacts.

Fixed #

  • A message from someone the user blocks that was still being delivered at the moment of the block no longer stays with their request and shows up in it again after the unblock.
  • A pipe's row in the command audit log (listAuditLog) records the strictest sensitivity of its stages and is dangerous when any stage is, so chat.mark_as_read | admin.kick is no longer logged as a safe action.
  • A message delivered while the relay cleared a lapsed request of a conversation on this server no longer stays held by that request, unseen and never invited again; it is removed with the rest of what the request held, and a message arriving after the cleanup files the request again.

0.0.7 - 2026-10-31 #

Added #

  • avatar_check in RIM_FEATURES_DISABLED switches the profile picture check off (pictures are stored unchecked), as text_art_check does for the text art check; serverInfo.features lists it, unavailable without RIM_AVATAR_CHECK_URL.
  • The imagecheck service scores text art (POST /v1/check-text): it draws a message's text as a picture and scores it for sexual content.
  • Messages that look like text art (braille, block or ASCII drawings) are scored by the imagecheck service after they are sent; a sexual one is flagged, covered for readers, and reported to the workspace's moderators and the operators. Owners and Moderators clear a flag with clearMessageFlag. RIM_TEXT_ART_CHECK_FLAG sets the threshold (0.60); text_art_check in RIM_FEATURES_DISABLED turns it off.
  • Owners and Moderators delete one person's messages in a workspace's channels at once: memberMessageCounts counts them (channels the caller reads, and private channels they are not in, as numbers only); deleteMemberMessages(serverId, userId, since, includeUnjoinedPrivate) deletes up to 1,000 per call and says whether more remain; the command admin.delete_member_messages does the same. Each channel gets one MessagesDeleted event; serverInfo.capabilities lists delete_member_messages.

Changed #

  • Upgrade: MessageReport.reporterUserId is null for a report the automatic check filed; clients read MessageReport.automatic.
  • Upgrade: a migration adds the index idx_message_sent_by_sent_at; on a large message table, writes to it wait while the index is built.

Fixed #

  • The roadmap reflects the available early releases and current archive destinations; self-hosting links explicitly name the relay-only setup guide.

0.0.6 - 2026-10-28 #

Fixed #

  • The desktop app on Windows stays signed in after sign-up or sign-in; before, every request after it failed and the app showed "Failed to load workspaces". Over HTTPS, the session and CSRF cookies set for the desktop app's origins are SameSite=None.

0.0.5 - 2026-10-28 #

Added #

  • myBlockedPrincipals: the principals the caller blocked, newest first, as BlockedPrincipal with the account on this server holding each one, if any.
  • addConversationMembers takes remoteMembers: [RemoteMemberInput!]: a member of a group in the direct space adds people by principal id, here or on another server, as createConversation names them; userIds now defaults to an empty list. A plaintext group of the direct space takes nobody from another server (VALIDATION).
  • Message.editedAt: when the message's text last changed, null for a never-edited or deleted message; the MessageUpdated event's message carries it as edited_at.
  • serverInfo.capabilities: the API additions this server has that older servers lack, by name, starting with message_edited_at.
  • leaveWorkspace(serverId: ID!): Boolean!: a member leaves a workspace, removed as by a kick (their messages stay); members get MemberLeft with cause left. Not for the owner, the direct space or the server's default workspace (VALIDATION).
  • renameWorkspace(serverId: ID!, name: String!): Server!: the owner renames a workspace, by createServer's name rules; members get the new WorkspaceUpdated event (also on the w stream of docs/specs/server-to-server-v1.md).
  • serverInfo.capabilities lists workspace_leave and workspace_rename.

Changed #

  • The web client is versioned and deployed on its own: RIM_WEB_VERSION picks the rim-ui release (unset: RIM_VERSION), rim-deploy also follows rim-ui releases and deploys the web container alone, and upgrade.sh no longer needs a rim-web image at the server's version.
  • createMacro, updateMacro, createPipeline and updatePipeline refuse a step or action naming no builtin command with VALIDATION "Unknown command: <id>"; plugin commands, which run only in the client, are refused too.
  • createUserCommand takes only lowercase letters, numbers, dots, dashes and underscores after user.; existing user commands keep their ids.
  • unblockPrincipal clears the requests the caller ignored from that person, by hand or by the block: the next item of such a conversation files it again as a new request holding the invite and that item, as a first contact would. Nothing they sent while blocked comes back from the relay. Audited as relay.principal_unblocked (scope user) with cleared_requests.
  • Someone blocked by the other member of a DM this server hosts posts nothing into it: sendMessage, replyToMessage, forwardMessage, sendEncryptedMessage and toggleReaction answer FORBIDDEN ("they do not take direct messages from you"), as starting the DM already did.
  • A DM or group started by someone you blocked is hidden until you unblock them, in a workspace or the default workspace too, not only in the direct space: it leaves your conversation list, live events, notifications and unread counts, and you post nothing into it. Channels are not affected.
  • Blocking someone also silences the DMs and groups they started on another server, or added you to there: from then on the relay drops every item of such a conversation, and acknowledges it so their server does not send it again, until the unblock. Conversations someone else started keep flowing. The history stays at their server.
  • rim_server principal unblock (and instanceUnblockPrincipal) clears the DM requests the block ignored, for every recipient who has not blocked the principal themselves: the next item of such a conversation files it again as a request. The command prints the count, and relay.principal_unblocked records it as cleared_requests. A user's unblockPrincipal clears nothing while the operator blocks the principal.
  • A relay ends a person's subscription to a workspace elsewhere when their MemberLeft arrives on their own stream, instead of letting it lapse (docs/specs/server-to-server-v1.md, "Subscriptions").

Fixed #

  • A failed executeMacro names the step and its error: "Step <n> (<command title>) failed: <reason>", instead of "macro <name> failed on a step".
  • Custom emoji images load: CustomEmoji.imageUrl is /api/emoji/<id>, which the new GET /api/emoji/{id} serves to members of the emoji's workspace (also forwarded from another relay). It was a storage path nothing served; emoji uploaded before are fixed too.
  • chat.mark_as_read, chat.post_message, chat.get_recent_messages, chat.pin_message and chat.toggle_reaction act on the focused conversation when no conversation_id is given, and the last two on the selected message when no message_id is given, so they work from the command palette and keybinds.
  • Search snippets (headline) no longer drop short words, numbers and punctuation at their edges: a message of up to 300 characters comes back whole.
  • A message request for a conversation this server hosts no longer turns into an ordinary conversation when it expires unanswered or 30 days after Ignore. It stays out of the recipient's list, and the sender's next message files it again as a new request with a fresh invite. A recipient who posts into such a conversation takes it back. A request from someone blocked stays ignored.
  • A DM request keeps its held items, its invite included, as long as the request, so an ignored or cleared request still holds its invite when it is filed again. Items released by accepting are kept at least the retention period.

0.0.4 - 2026-10-26 #

Added #

  • Message.threadReplyCount: the number of replies, deleted ones not counted, in the thread a timeline message is the root of; null on other messages.

Changed #

  • serverInfo.features gives email's unavailable reason as "no mail server is set up" instead of naming the server's settings; the boot warning still names RIM_SMTP_HOST and RIM_SMTP_FROM.

Fixed #

  • At RUST_LOG=info the server no longer logs every SQL statement, such as the server-to-server outbox poll each second; statements log at debug and those slower than one second at warn.

0.0.3 - 2026-10-26 #

Added #

  • An operator can clear the display name, picture, status and bio of the account holding a principal and optionally lock them for 1 to 365 days: rim_server principal clear-profile <principal-id> --reason <text> [--lock-days <n>], and in the app the mutation instanceClearProfile returning InstanceProfileClearOutcome. User.profileLockedUntil tells the account on me until when its profile is locked; while it is, setting any of the four answers FORBIDDEN and picture uploads 403. Audited as relay.profile_cleared.

Security #

  • Profile pictures are re-encoded by the server: POST /api/files/avatar decodes the upload as its declared type and stores the first frame, centre-cropped, as a 256×256 PNG without metadata. The upload limit drops from 2 MiB to 1 MiB, images past 4096 pixels a side answer 413, and bytes that do not decode 415.
  • During RIM_PROBATION_HOURS a new account cannot set a profile picture, status or bio; its display name it still can.
  • Profile picture uploads are limited per account by RIM_AVATAR_UPLOADS_PER_HOUR (default 5) and RIM_AVATAR_UPLOADS_PER_DAY (default 20); past either the upload answers 429 with Retry-After. 0 turns either off; instance operators are exempt.
  • Upgrade: every uploaded profile picture is scored for sexual content, gore and violence by a new service, imagecheck (ghcr.io/rim-platform/rim-imagecheck), which deploy/compose.yml now runs. At RIM_AVATAR_CHECK_BLOCK (default 0.85) POST /api/files/avatar answers 422 and stores nothing; at RIM_AVATAR_CHECK_REPORT (default 0.60) the picture is stored and an abuse report with the reason "automatic profile picture check …" is filed for the operators; while the service is down the upload answers 503. Take the new compose file with the release; a deployment that runs without the service sets RIM_AVATAR_CHECK_URL= empty, and pictures are stored unchecked.

0.0.2 - 2026-10-26 #

Added #

  • Channels can be set so only the workspace's Owner and Moderators post in them, with a switch for whether everyone else may still react and reply in threads: setChannelPosting, the PostingPolicy enum and Conversation.postingPolicy / Conversation.postingAllowsThreads, the command chat.set_channel_posting, and posting / postingAllowsThreads per channel in the default workspace's definition file (the committed file makes announcements moderators only).

0.0.1 - 2026-10-25 #

Added #

  • While rim-server or the web client cannot be reached, as during an upgrade's restart, Caddy answers 503 with Retry-After: 30: JSON for /api, /s2s/ and /.well-known/, and a self-reloading "RIM is being updated" page for browsers, instead of a bare 502 (deploy/Caddyfile, deploy/Caddyfile.relay).

  • Upgrade: account passwords, checked with OPAQUE (docs/specs/key-identity-v1.md, "Account password (OPAQUE)"). signupWithKey requires passwordRegistration (from the new passwordRegistrationStart) and answers serverShare; an account of this server with a password signs in only with loginWithKey(proof, passwordTicket), the ticket coming from the new passwordLoginStart and passwordLoginFinish (which also answers the sealed server share and the rewraps). Clients older than this release can no longer sign up, and cannot sign in to accounts that have a password. Every login start counts as a try: three are free, then waits from one minute to twelve hours (RATE_LIMITED), and the 10th locks the password (PASSWORD_LOCKED, a new error code) until a reset with the recovery key (passwordResetChallenge, passwordResetStart, passwordResetFinish, and a new password-reset statement). New roots passwordChangeStart and passwordChangeFinish; an account of this server without a password does not sign in. People from other servers sign in at a host with the key alone. The OPAQUE setup and the key the server shares are sealed under live in the new password key file, RIM_PASSWORD_KEY_FILE (default <RIM_DATA_DIR>/password-key.json), created at the first start and checked by /readyz (passwordKey); back it up with the database, which the backup scripts do with the data directory. docs/api.md ("Account password").

  • Upgrade: "Keep me signed in". loginWithKey and signupWithKey require keepSignedIn: Boolean! and keepKeyHeld: Boolean!, and LoginPayload and SignupWithKeyPayload gain sessionSecret and keepKey. A kept session gets persistent cookies and, for a web client, a keep key, read again with the new query sessionKeepKey. An unkept session gets browser-session cookies and a session secret that every request carries in the new X-RIM-Session-Secret header and the WebSocket in its connection_init payload (sessionSecret; otherwise closed with 4401), except plain file downloads, logout and the new reloadSession. reloadSession and setReloadKey (new, with the type ReloadSessionPayload) let a reloaded tab take back its data within 60 seconds of its WebSocket closing, once. Clients older than this release cannot sign in with a key or sign up. docs/api.md ("Keep me signed in").

  • Public join links: a workspace's Owner can turn on one permanent link, <server>/join/<token> with a rim_pjl_ token (off by default), that lets existing accounts of this server join (DIRECT) or ask to join (REQUESTS) as Member or Guest; it never creates an account. New GraphQL roots publicJoinLink, updatePublicJoinLink, reissuePublicJoinLink, publicJoinLinkPreview (no sign-in), joinByPublicLink, joinRequests, myJoinRequests, acceptJoinRequest, declineJoinRequest and withdrawJoinRequest, the types PublicJoinLink, PublicJoinLinkPreview, JoinRequest, JoinRequestPage and JoinByPublicLinkPayload, and the events JoinRequestCreated and JoinRequestDecided; MemberJoined gains an optional source (public_link). Every invalid link answers NOT_FOUND, and 20 misses from an address in ten minutes answer RATE_LIMITED for an hour. The tokens are sealed under the new link key file, RIM_LINK_KEY_FILE (default <RIM_DATA_DIR>/link-key.json), created at the first start and checked by /readyz (linkKey); back it up with the rest of the data directory. docs/messaging.md ("Public join link and join requests") and docs/api.md.

  • Accounts of other servers join through a workspace's public link, or ask to join, through their own server, unless the Owner turns allowRemote off (FORBIDDEN); a blocked peer is refused as for every request. remoteJoinChallenge gains the argument publicLinkToken, RemoteJoinChallenge the fields workspaceName and publicLinkMode, JoinRemoteWorkspaceInput the fields publicLinkToken and message, and RemoteJoinResult the fields outcome, joinRequestId and joinRequestExpiresAt. A request from another server is filed and decided like a local one, and the decision reaches the person's server as a JoinRequestDecided host event. On the server-to-server path, POST /s2s/v1/join/challenge and POST /s2s/v1/join take publicLinkToken (and message), and a join answers joinRequest when a request was filed. Misses a relay makes count against its server id. docs/specs/server-to-server-v1.md ("Joining"), docs/messaging.md, docs/relay.md and docs/api.md.

  • POST /api/plugin-bundles/fetch fetches and validates pinned bundles for browser installs without CORS-dependent external requests. Its plugin_link_fetch feature is enabled by default, independent of workspace plugins; public HTTPS, hash, size and rate checks apply.

  • Handles, @<username>:<domain>: GraphQL User.handle gives a local account its username at this server's handle domain and a person from another server their username at their home server and its handle domain, never the internal r_… name; null while unknown and for deleted accounts. The domain is the new RIM_HANDLE_DOMAIN, by default the host of RIM_PUBLIC_BASE_URL (the server refuses to start when it is not a DNS name, so a server whose public URL has an IPv6 host sets it). The signed descriptor declares it as the optional handleDomain; a domain that is not the server's host delegates with {"delegate": "<origin>"} at its /.well-known/rim-server, followed once and accepted only when the server's descriptor names that domain. Identity documents and joins carry the person's username at their relay. searchMessages takes from:@name:domain. docs/server-identity.md ("Handles and delegation") and docs/specs/server-to-server-v1.md ("Handles") describe it; a client that refuses unknown descriptor fields must accept handleDomain.

  • RIM_DEFAULT_WORKSPACE_FILE: the default workspace described in a JSON file (its name, DM policy and channels with topics), checked at every start. While nobody has claimed it, each start writes a single-use owner claim link to <RIM_DATA_DIR>/owner-claim.txt; the account that signs up through it creates the workspace as its Owner, optionally becomes an instance operator (claimGrantsOperator), and every existing local account joins as a Member. Later starts add new channels, topics, the name and the DM policy from the file and delete nothing. deploy/default-workspace.json is the public relay's workspace; compose.yml mounts it at /config/default-workspace.json, and RIM_DEFAULT_WORKSPACE_FILE in deploy/.env turns it on. The signup through the claim link answers the new workspace as serverId, and serverInfo.defaultWorkspace names it from then on. "A default workspace" in docs/self-hosting.md describes it.

  • RIM_TERMS_FILE: the terms of service as a Markdown file the server serves as a page at /api/terms?v=<hash>, which is then serverInfo.termsUrl and the URL every signup accepts. A missing, empty or oversized file, a FILL: placeholder in it, or RIM_TERMS_URL set too stops the server at boot. deploy/terms.md holds the public RIM server's terms and an example for self-hosters; compose.yml mounts it read-only at /config/terms.md.

  • RIM_ABUSE_CONTACT: where to report abuse, an email address or an https URL, published as abuseContact in the signed server descriptor (docs/specs/server-to-server-v1.md) and as serverInfo.abuseContact.

  • RIM_MINIMUM_AGE (13 to 21): every signup confirms the person has reached that age. serverInfo.minimumAge names it and signupWithKey takes confirmedMinimumAge; a signup without it answers VALIDATION. The account records only the age confirmed. The migration adds a nullable user.minimum_age_confirmed column.

  • "Legal duties of an operator" in docs/self-hosting.md.

  • RIM_WEB_DOMAIN in deploy/.env serves the web client on a domain of its own with deploy/Caddyfile, such as chat.example.org next to RIM_DOMAIN. The client calls the API on that origin; RIM_DOMAIN stays the server's name for apps, other servers and the discovery document, and redirects browsers to the web domain with the path kept, so invite links still open the client. The compose file sets RIM_CORS_ALLOWED_ORIGIN to the web domain's origin and RIM_KEY_LOGIN_AUDIENCES to both domains unless they are set. Unset, nothing changes. "The web client on its own domain" in docs/self-hosting.md describes it.

  • deploy/upgrade.sh <version>, the upgrade of docs/operations/upgrade.md in one script: it checks that the version's images are published (exit 2 when one is not), verifies their signatures against the release workflows, takes a backup, sets RIM_VERSION in deploy/.env, pulls, migrates and starts, waits for /readyz and the public discovery document, and rolls back to the version before when they do not answer. --dry-run checks the images and prints the rest.

  • deploy/rim-deploy.sh with deploy/systemd/rim-deploy.service and rim-deploy.timer, the unattended upgrade for a host that runs published images: every five minutes it installs the latest published rim-server release that is not a pre-release from the tag's deploy/ files and its upgrade.sh, once the version's signed rim-server image proves an approved release run. A HOLD file stops it, a failed version is held back in FAILED, and rim-deploy <version> deploys or rolls back by hand. "Unattended upgrades from releases" in deploy/README.md describes it.

  • The backup and upgrade scripts read COMPOSE_FILE from deploy/.env too, so a relay can name its compose files there once.

  • deploy/compose.monitoring-containers.yml, an opt-in overlay on top of compose.monitoring.yml that adds cAdvisor, so Alloy also sends each compose service's CPU and memory use (job cadvisor). cAdvisor reaches the Docker and containerd sockets only through proxies that allow it read-only calls alone; it needs the new DOCKER_GID in deploy/.env, and a host on the overlay2 storage driver also adds compose.monitoring-containers-overlay2.yml. "Container metrics" in docs/operations/metrics.md describes it.

  • deploy/compose.monitoring.yml, an opt-in overlay that turns on the metrics listener and adds a Grafana Alloy collector: every 15 seconds it scrapes rim-server's metrics, probes /readyz and reads the host's metrics, and remote-writes them to Grafana Cloud with the new GRAFANA_CLOUD_METRICS_URL, GRAFANA_CLOUD_METRICS_USER and GRAFANA_CLOUD_METRICS_TOKEN in deploy/.env. "Collecting them with Grafana Alloy" in docs/operations/metrics.md describes what it sends.

  • Production monitoring metrics for local accounts and activity, committed plaintext and encrypted messages, GraphQL operations, WebSocket connections and pending device delivery. Relay delivery metrics distinguish device acknowledgements from human read receipts and stored queue rows. Adds user_activity for persistent, throttled activity tracking. docs/operations/metrics.md describes their scope and sampling.

  • Who may start a DM, in three layers where each only tightens the one above ("Who May Start A DM" in docs/messaging.md). The operator sets RIM_DM_INBOUND (open, requests by default, partners, none), RIM_DM_OUTBOUND (allowed by default, partners, none) and RIM_DM_PARTNERS, shown in the new ServerInfo.dmInbound, dmOutbound and dmPartners; a workspace's Owner sets a floor for DMs from outside and a default for members' DMs with the new setWorkspaceDmPolicy (Server.dmOutsideFloor, Server.dmMemberDefault); each person chooses with the new setMyDmSettings and setMyWorkspaceDmSetting, read with myDmSettings (effectiveOutside, outsideFloorFrom). New enums DmInbound, DmOutbound, DmOutsideFloor, DmMembers, DmOutside, DmFloorSourceKind. A workspace DM a member takes as a request now goes through their request inbox. docs/operations/closed-company-server.md is the recipe for a server closed to DMs from outside or open to partners only.

  • GraphQL Conversation.dmRequestPending: for a DM, true while the other member's DM request for it is pending, so the sender can show that their messages wait for acceptance; null for groups and channels.

  • GraphQL userCommand(id) and userCommands return the caller's own user commands as the new UserCommand type (UserCommandStep), enabled or not, with their saved steps in order, so a client can edit a user command without asking for its steps again. userCommand answers null for a built-in id or a command that is not the caller's.

  • Invitations to encrypted conversations: an encrypted DM or group may now include members who have no device ready for encryption. They are listed in the new Conversation.pendingMemberIds, see the conversation but cannot read, send or be notified, and join with the new acceptConversationInvite once a device is ready, or decline with declineConversationInvite. Invitations expire after 30 days, and RIM_LIMIT_PENDING_INVITES_PER_USER (serverInfo.limits.pendingInvitesPerUser, default 50) caps how many one user holds. Before, the server refused such members; it still refuses a creator who is not ready (e2ee-mls-v1.md).

  • Instance moderation in the app: rim_server operator grant | revoke | list makes an account an instance operator, me.instanceOperator says whether the caller is one, and the queries instanceReports, instancePrincipalBlocks, instanceIpBlocks and the mutations instanceBlockPrincipal, instanceUnblockPrincipal, instanceResolveReport, instanceBlockIp, instanceUnblockIp do what the abuse-reports, principal and ip commands do; anyone else gets FORBIDDEN. Their audit lines now carry actor_id.

  • LoginPayload.csrfToken and SignupWithKeyPayload.csrfToken: loginWithKey and signupWithKey return the session's CSRF token, the value of the rim_csrf cookie, so a client that cannot read that cookie (a packaged desktop app talking to a server on another host) can send it in X-CSRF-Token.

  • docs/operations/upgrade.md: how to move a server to a new release and back.

  • Release images: every release tag publishes ghcr.io/rim-platform/rim-server:<version> (also <major>.<minor>, sha-<short sha> and latest), signed with cosign keyless by the release workflow and with an SPDX SBOM attested to it and attached to the GitHub release. docs/self-hosting.md, "Verify the images", checks the signature.

  • GraphQL ServerInfo.auditRetentionDays: the days command audit rows are kept before they are exported and deleted, null when they are kept forever. Readable without a session, like the rest of serverInfo.

  • Request limits, each off unless set: RIM_RATE_REQUESTS_PER_MIN_PER_IP (requests to /api routes per client address, answered 429 with Retry-After), RIM_RATE_MUTATIONS_PER_MIN_PER_SESSION, RIM_RATE_MESSAGES_PER_MIN_PER_USER with RIM_RATE_MESSAGES_BURST (both answered RATE_LIMITED), RIM_RATE_WS_CONNECTIONS_PER_USER and RIM_RATE_SUBSCRIPTIONS_PER_CONNECTION (the new GraphQL error code TOO_MANY_SUBSCRIPTIONS). Refusals are counted in rim_rate_limit_rejections_total, and browsers may read Retry-After. docs/api.md ("Limits") describes them.

  • An IP deny list: rim_server ip block <cidr> --reason <text> [--expires-in-days <1-365>], ip unblock <cidr> and ip list. A blocked address or range, IPv4 or IPv6, is answered 403 with {"error":"blocked"} on every route but /healthz, server-to-server routes included. A running server picks up changes within 30 seconds; blocks are audited as ip.block and ip.unblock and refusals counted in rim_ip_blocked_requests_total. Adds the ip_block table.

  • RIM_INSTANCE_NOTICE and RIM_TERMS_URL: a short operator notice and the terms of service URL, served as GraphQL ServerInfo.instanceNotice and ServerInfo.termsUrl. With terms set, signupWithKey requires acceptedTermsUrl (a new optional field of SignupWithKeyInput) equal to the terms URL and answers VALIDATION otherwise; the acceptance is stored on the account.

  • Instance limits, each off unless set: RIM_LIMIT_WORKSPACES_PER_USER, RIM_LIMIT_MEMBERS_PER_WORKSPACE, RIM_LIMIT_CHANNELS_PER_WORKSPACE, RIM_LIMIT_DEVICES_PER_USER, RIM_LIMIT_DM_REQUESTS_PER_DAY, RIM_LIMIT_MACROS_PER_WORKSPACE, RIM_LIMIT_PIPELINES_PER_WORKSPACE, RIM_LIMIT_PLUGINS_PER_WORKSPACE, RIM_LIMIT_INVITES_PER_USER_PER_DAY, RIM_LIMIT_INVITE_MAX_USES and RIM_LIMIT_MESSAGE_BYTES. Creating one more past a cap answers VALIDATION naming it. GraphQL ServerInfo.limits (type ServerLimits, one nullable Int per cap) reports them; for devices and DM requests it reports the stricter of the cap and the relay quota, which is what applies. docs/api.md ("Limits") lists them.

  • Probation for new accounts: RIM_PROBATION_HOURS (off unless set) keeps an account younger than that from creating a workspace or sending a DM request to a stranger, answered VALIDATION naming the minutes left, and RIM_RATE_PROBATION_MESSAGES_PER_MIN gives it a lower message rate. A DM in a workspace meets probation as one in the direct space does, and sharing only the server's default workspace does not make someone known to the account; an instance operator is never on probation. GraphQL ServerLimits.probationHours reports the setting and User.probationEndsAt, read on me, says when the caller's probation ends.

  • GraphQL transferWorkspaceOwnership(input: { serverId, userId }) hands a workspace to another member, who becomes its one owner while the caller becomes a moderator, and deleteWorkspace(input: { serverId, confirmName }) (answers DeleteWorkspacePayload { deleted }) deletes a workspace with everything in it once its owner types its name.

  • Self-service account deletion: GraphQL requestAccountDeletion(input: { confirmUsername }) (answers AccountDeletionSchedule { scheduledFor }), cancelAccountDeletion and User.deletionScheduledFor, set on me while a deletion is pending. After a grace period (RIM_ACCOUNT_DELETION_GRACE_DAYS, default 14, 0 to 30) an hourly job purges the account and leaves a tombstone ("Deleted account") as the author of its encrypted messages; rim_server account purge [--dry-run] runs the purge on demand. The only owner of a workspace with other members is refused until they transfer or delete it. The tombstone keeps the key identity id, so signupWithKey with a deleted account's identity answers VALIDATION. Signups may no longer take usernames starting with deleted-. Adds user.deletion_requested_at, deletion_scheduled_for and deleted_at.

  • The invite chain and the complete ban. Every account records the invite it signed up with and that invite's creator (new nullable user.created_by_invite_id and user.invited_by_user_id). rim_server principal block now also revokes the account's invites that have uses left, blocks its email (the new blocked_email table: a signup with it answers VALIDATION "this email cannot sign up here"), records the reason as a resolved abuse report, and lists the accounts its invites created; --cascade blocks those too, recursively, in the same transaction. principal unblock also lifts the email block; sessions and invites stay ended. The new principal show <principal-id> prints the account, its inviter, its invite tree, its invites, its open reports and its block.

  • RIM_RESERVED_NAMES: comma-separated usernames and display names that signupWithKey and updateMyProfile refuse with VALIDATION "this name is reserved", compared after trimming, Unicode NFKC normalisation and lowercasing, and also followed by -, _, . or a space (rim reserves rim-admin, not rimmer). An account whose own username is reserved may still take a reserved display name. An empty entry stops the server at boot.

  • Reaction notifications: a reaction on someone's message tells its author with the new NotificationReason.REACTION, one entry per message that each later reaction re-surfaces unread. Notification.reactionEmoji, Notification.reactedBy, the setting NotificationSettings.reactions / UpdateNotificationSettingsInput.reactions (default on), and reaction_emoji / reaction_by on the NotificationDue event.

  • RIM_DEFAULT_WORKSPACE: the id of a workspace on this server that every new account joins as a Member, with its public channels, whichever way it signs up, so people land where others already are. GraphQL ServerInfo.defaultWorkspace names it, null when unset. A workspace that does not exist here, or the direct space, stops the server at boot.

  • Plugin settings in docs/specs/plugin-protocol-v1.md, section 15, for plugin and client host authors: the rules of a manifest's settings_schema (value_type string, boolean, integer, path or enum, is_secret, and the optional default, min, max, options and placeholder), and rim.settings.get and rim.settings.changed, added within protocol v1 for both plugin kinds, with the panel bridge's rim.settings.open, which opens the plugin's settings form over the current view, leaving the panel in place. Values stay on the device and never reach the server, so the server does not change. Sections 15 to 20 of that spec are now 16 to 21.

  • Workspace invites can be listed and revoked. The new workspaceInvites(serverId, dir, cursor, limit) gives a workspace's Owner its invites newest first as a WorkspaceInvitePage of WorkspaceInvite (role, uses, expiry, creator, revocation and a WorkspaceInviteState of ACTIVE, EXPIRED, USED_UP or REVOKED), paged with WorkspaceInviteCursorInput and WorkspaceInviteCursorOutput, never with their tokens; the new revokeInvite(inviteId) stops an invite admitting anyone, while members who joined with it stay ("Workspace invites" in docs/messaging.md).

  • RIM_LIMIT_ACCOUNTS caps the local accounts a server holds, those waiting out their deletion grace period included; people from other servers and purged accounts do not count. Off when unset or 0. At the cap every signup, password or key, with an invite, open or with a proof-of-work, is refused with the new GraphQL error code REGISTRATION_FULL and a message that the server is full and points to running a server or signing up on another one. The new ServerInfo.registrationFull and ServerLimits.accounts, and registration.full in the discovery document beside the descriptor (server-to-server-v1.md), say so before anyone tries. docs/operations/relay-public.md says the public relay is a first test run with no guarantee against data loss, and what happens if it shuts down.

  • An hourly purge deletes the sessions that sign nobody in any more, revoked or past their expiry, and counts them in rim_sessions_purged_total; until now their rows stayed forever.

  • RIM_AUDIT_EXPORT_RETENTION_DAYS (1 to 3650): the server deletes the audit export files in <RIM_DATA_DIR>/audit-exports/ written more than that many days ago, a minute after boot and daily, and counts them in rim_audit_exports_deleted_total. Unset keeps every export. deploy/compose.relay.yml sets it to 90, so on a public relay a command audit row is gone completely after about 180 days.

  • RIM_BACKUP_KEEP_DAYS for deploy/backup.sh: after a backup that succeeded, the deployment's archives in RIM_BACKUP_DIR older than that many days are deleted. Unset keeps every archive.

  • RIM_BACKUP_HEARTBEAT_URL for deploy/backup.sh: an https URL it fetches after each backup that succeeded, for a monitor such as healthchecks.io that alerts when a night is missed. A failed ping is a warning, not a failed backup.

  • The avatars feature for RIM_FEATURES_DISABLED: while it is off, POST /api/files/avatar and GET /api/files/{path} (also when forwarded) answer 403 FEATURE_DISABLED, updateMyProfile with an avatarUrl answers FEATURE_DISABLED, and GraphQL User.avatarUrl and ServerMember.avatarUrl read as null. Stored avatars are kept. serverInfo.features and the discovery document list avatars; a client hides the profile picture upload while it is not enabled.

Changed #

  • The recipient of a DM request posts nothing into its conversation before accepting it: sendMessage, replyToMessage, forwardMessage into it, sendEncryptedMessage and toggleReaction answer FORBIDDEN ("accept the message request before posting here") while their request is pending or ignored, or they blocked its starter, and startTyping answers false. Reading it first stays possible. Before, a reply from "Read first" reached the sender while the request stayed pending.

  • In the server's default workspace a group is started and grown like a DM with each newcomer: createConversation and addConversationMembers (and the chat.create_group and chat.invite_to_conversation commands) follow each newcomer's DM settings, the request limits and probation, and a newcomer who takes it as a request holds it in their request inbox until they accept it. One call names at most 50 people and a plaintext group holds at most 50 members (VALIDATION). There only an Owner or Moderator, or a private channel's creator, adds people to a channel (FORBIDDEN), and @channel and @here notify everyone only from an Owner or Moderator; from anyone else they are plain text.

  • Upgrade: the committed deploy/default-workspace.json sets "memberDefault": "REQUESTS": a fellow member's first DM or group in the default workspace waits in the recipient's request inbox until they accept it. A server running the committed file applies it at its next start; set DIRECT in your copy to keep members' DMs direct.

  • Starting a DM or group, or adding someone to a group, is refused (FORBIDDEN) when the recipient blocked the caller or the operator blocked the caller's principal, as when their DM settings refuse it. A member added to a group gets its invite from whoever added them, so their blocks and DM settings judge that person rather than the group's creator. A plaintext group holds at most 100 members, like an encrypted one (VALIDATION).

  • In the default workspace macros and pipelines meet each member's share of RIM_LIMIT_MACROS_PER_WORKSPACE and RIM_LIMIT_PIPELINES_PER_WORKSPACE but not the per-workspace caps, which a handful of accounts could otherwise fill for everyone, and an account in probation creates none there (VALIDATION).

  • A channel's topic is changed by an Owner or Moderator, or by a private channel's creator, and a message someone else pinned in a channel is unpinned by them alone; anyone else gets FORBIDDEN. DMs and groups are unchanged.

  • Workspace-scoped workspace state (setWorkspaceState, deleteWorkspaceState, state.set, state.incr, state.delete with the SERVER scope) takes a Member, Moderator or Owner who is not timed out and whose account is out of probation; a guest gets FORBIDDEN. A Member overwrites and deletes only the keys they created (FORBIDDEN otherwise) and increments any numeric key; Owners and Moderators change every key. A Member creates at most 100 such entries per workspace, holding at most 1 MiB of values (VALIDATION). Each user makes at most 60 workspace state writes a minute in bursts of up to 30, through GraphQL, commands, macros and pipelines alike (RATE_LIMITED). Every member still reads the workspace scope and writes their own user scope. The WorkspaceStateChanged event of workspaceEvents no longer carries value; a client reads the entry again.

  • In the default workspace only the Owner and Moderators create channels; a member gets FORBIDDEN and still starts DMs and groups. A later start of RIM_DEFAULT_WORKSPACE_FILE leaves alone a channel of a file's name that someone else created, and the log names it.

  • RIM_LIMIT_MACROS_PER_WORKSPACE and RIM_LIMIT_PIPELINES_PER_WORKSPACE also bound each member: one who is neither Owner nor Moderator holds at most a fifth of the cap (at least one), so one member cannot fill it. Kicking or banning a member deletes their macros and pipelines in that workspace.

  • Upgrade: the audit file is now one file per UTC day, audit.<YYYY-MM-DD>.log in the directory of RIM_AUDIT_LOG_PATH, and the server deletes the files older than RIM_AUDIT_LOG_RETENTION_DAYS (1 to 3650, default 90) daily. A logrotate rule for audit.log is no longer needed; the old audit.log is left as it is, to be deleted by hand. Set RIM_AUDIT_LOG_RETENTION_DAYS in deploy/.env to keep the files longer.

  • Every container in the compose files keeps about 100 MB of log per service, in five json-file files of 20 MB, instead of one file that grows without end.

  • deploy/compose.relay.yml sets RIM_AUDIT_RETENTION_DAYS to 90: a public relay exports and deletes command audit rows after 90 days unless deploy/.env sets another value.

  • Upgrade: deploy/compose.relay.yml no longer sets RIM_ROLE=relay and the Caddyfile itself: set RIM_ROLE (relay, or both to host workspaces) and RIM_CADDYFILE (./Caddyfile.relay, or ./Caddyfile with the web client and COMPOSE_PROFILES=web) in deploy/.env. Without either, every compose command with the overlay stops and names it. An existing relay keeps its behaviour with RIM_ROLE=relay and RIM_CADDYFILE=./Caddyfile.relay. "A relay that hosts a workspace" in deploy/README.md describes the other choice.

  • Upgrade: usernames are stored lowercase and compared without regard to case. A signup stores Alice as alice and refuses aLiCe once alice exists (CONFLICT); requestAccountDeletion, from:@name in message search and the rim_server operator commands accept a username in any case. A migration adds a unique index on the lowercased username and fails while two accounts have usernames that differ only in case: find them with SELECT lower(username) FROM "user" GROUP BY 1 HAVING count(*) > 1 and rename one of each pair before upgrading.

  • A confirmation of a command now lasts 60 seconds, at most 300, instead of five, so a person has time to read the confirmation dialog and answer it before it lapses. A proof is still good once, for the same caller, command, arguments and context ("Confirmation gate (H1)" in docs/command_model.md).

  • Workspace members are no longer always delivered: a member's DM follows the recipient's choice for that workspace, DIRECT unless the workspace or the person set REQUESTS; Owners and Moderators are always delivered. With the defaults everything arrives as before.

  • Creating a DM records the other person as the creator's contact (contacts), so their DM back is never a request.

  • With RIM_DM_INBOUND=partners or none, GET /s2s/v1/principals/<id> answers 404 and key package claims answer 403 to servers that are not partners, except a server hosting a workspace the person subscribed to (server-to-server-v1.md, "The request inbox").

  • signupWithKey accepts an instance invite bound to an email address and gives the new account that address, refusing it when another account has it (EMAIL_TAKEN) or an operator blocked it (VALIDATION); before, it refused such an invite.

  • key-identity-v1.md and device-linking-v1.md: the web client may create and hold an identity, sign up with a key and link other devices; a browser-held identity is never backed up, the recovery kit is shown after signup and its entropy is kept until the person confirms they saved it.

  • Upgrade: deploy/compose.yml runs the published images ghcr.io/rim-platform/rim-server and ghcr.io/rim-platform/rim-web at RIM_VERSION (default latest) instead of building them. Set RIM_VERSION in deploy/.env to the release you run, and run pull then up -d where you ran up -d --build. Operators who build locally add -f deploy/compose.dev.yml to every compose command; RIM_SERVER_IMAGE and RIM_WEB_IMAGE still name other images.

  • Upgrade: a GraphQL batch holds at most 20 requests; a larger one is answered 400 with {"error":"batch_too_large"} and none of it runs. RIM_API_MAX_BATCH changes the cap.

  • With link_previews in RIM_FEATURES_DISABLED, sending or replying to a message no longer starts a link preview fetch at all, so the server makes no outbound request for the links people post.

  • The packaged desktop app's origins (tauri://localhost, http://tauri.localhost and https://tauri.localhost) are accepted by every server without RIM_CORS_ALLOWED_ORIGIN.

  • GraphQL commands and commandDiscover list only the commands the caller may run. A command the server runs needs a context workspace the caller is a member of, a role there that may run it and its capabilities: a non-member, or a call without a workspace, sees only the commands the client runs itself, and the moderation and owner commands are listed only to the roles that run them. Naming the direct space makes the caller a guest of it.

  • Workspace-only features answer VALIDATION ("not available in the direct space") in the direct space instead of an empty result, for reads and writes alike: custom emojis, workspace plugins and plugin bundles (POST /api/plugin-bundles/{server_id} answers 400), keybinds scoped to a workspace, pipelines, workspace state and channels. The caller's own keybinds, asked without a workspace id, still answer.

  • Typing is announced in direct conversations only. startTyping in a channel or a group answers false and emits no TypingStarted; it also answers false on a repeat inside the throttle window, and true only when it emitted the event.

  • The dependency audit in CI and in the release gates is cargo audit --deny unsound: an unsoundness advisory fails it like a vulnerability. Each advisory it accepts is listed in .cargo/audit.toml with why it does not apply and when the entry comes out.

  • GraphQL updateMyProfile takes as avatarUrl only an empty value or the caller's own avatar, the url that POST /api/files/avatar answered them (/api/files/avatars/<their id>/avatar.<png|jpeg|gif|webp>); any other path, another user's avatar included, answers VALIDATION. POST /api/files/avatar answers 415 when the file's bytes do not start with the signature of its declared type.

  • In the server's default workspace a member who never saved notification settings has the default level MENTIONS instead of ALL: a plain message there no longer stores a notification and sends NotificationDue to every member, only to those who chose ALL for the workspace or the conversation. myNotificationSettings and Conversation.effectiveNotificationLevel report it. Saved settings are kept as saved.

  • editMessage draws on the message budget (RIM_RATE_MESSAGES_PER_MIN_PER_USER, and the probation rate for an account in probation) like a sent message, and answers RATE_LIMITED past it.

  • Display names from signupWithKey and updateMyProfile are stored without control, format and other default-ignorable characters (zero-width spaces, word joiners, soft hyphens, byte order marks, bidirectional overrides and isolates, variation selectors, Hangul fillers, tag characters), with whitespace runs made one space, and are at most 64 characters after that for every path; the signup took up to 80 before (SignupWithKeyInput.displayName). What emoji and scripts need stays: the zero-width joiner and non-joiner, an emoji presentation selector (❤️), the tags of the flags of Scotland, England and Wales, and the Mongolian variation selectors and vowel separator (docs/api.md). RIM_RESERVED_NAMES also refuses a reserved name hidden behind any invisible character, a variation selector or Hangul filler included, or written with lookalike letters from another script (Аdmin with a Cyrillic А), and a remote person whose profile card names one is shown by their username here instead (docs/specs/server-to-server-v1.md, docs/specs/key-identity-v1.md).

Removed #

  • Accounts with a username and password, and their email reset: every account signs up with a key and a password. Upgrade: this release needs a fresh database (the migration refuses to run while an account without a key exists); RIM_SIGNUP_REQUIRE_KEYS and RIM_PASSWORD_HASH_CONCURRENCY are no longer read. Clients built before it cannot sign in. Gone from GraphQL: login and LoginInput, signupWithInvite and SignupWithInviteInput, requestPasswordReset, resetPassword(token, newPassword), enrollIdentityKey and EnrollIdentityKeyInput, and ServerInfo.signupRequiresKeys. SignupWithInvitePayloadGql is renamed SignupWithKeyPayload. The migration drops the password_reset_token table and user.password_hash, and requires a principal of every live account.
  • The dated records left docs/: the decision records, the manual test plans and their findings, and the .env history purge runbook. Git history keeps them. The nested resolver access reference moved to docs/security/nested-resolver-access.md.

Fixed #

  • The signup through the owner claim link may take a name in RIM_RESERVED_NAMES, so an operator can reserve the owner's name before the first start. Every other signup is still refused it.

  • Concurrent first direct messages between the same two people reuse one conversation.

  • Attachment creation, completion and removal advance the message change feed; creation, finalization and deletion notify connected clients. Repeating finalization of a ready file succeeds, so an interrupted upload response can be recovered safely.

  • Audio and video attachments pass the same media-type checks as other supported files. Unsupported plaintext file types are rejected when requesting an upload ticket.

  • Removal events distinguish kicks, bans, workspace deletion and account deletion; the removed user alone receives the moderator's reason. Workspace message authors expose User.banned, bannedUntil and moderator-only banReason. An unban restores a local account to the current default workspace; joinDefaultWorkspace lets older accounts and expired bans rejoin it.

  • Profile picture uploads use content-addressed URLs with private immutable caching. Successful profile updates emit MemberProfileUpdated so other sessions refresh without a restart.

  • Refuse signups at the account cap before validating terms, credentials or invite inputs, while retaining the transactional admission check.

  • Update the cryptographic helper ctutils to 0.4.5 to fix constant-time comparison advisory RUSTSEC-2026-0385.

  • Operator commands flush audit files before exiting, keep diagnostics on stderr at warning level by default (RUST_LOG overrides it), and describe empty principal and report lists. Unknown commands print usage and exit with status 2 instead of starting another server.

  • An instance operator handling a report of an unencrypted message in the direct space now sees that one message's text, author and send time, and may delete it with deleteMessage, without a verified report and without seeing the rest of the conversation. Before, only franked reports of encrypted messages showed their author or could be deleted, so a reported plaintext DM showed the operator nothing. GraphQL MessageReport.messageAuthorPrincipalId gives the author's principal id on the direct space's reports whose author is shown, for instanceBlockPrincipal.

  • A conversation's DmInvite sent again to a member whose relay let the conversation go comes from the member who added them, as the first invite did, while that member is still in the conversation; before, it always came from the conversation's creator, so the member's relay judged an invite from someone else. The adder is recorded on the membership (migration m20261022_062917_add_conversation_member_invited_by adds the nullable conversation_member.invited_by); members added before it are invited again from the creator.

  • toggleReaction accepts only a Unicode emoji or a custom emoji's :name: (a new :name: must name one of the workspace's custom emoji, and is refused while custom_emoji is disabled), and a message carries at most 20 different emoji and 10 reactions per user; adding past either answers VALIDATION, while joining an existing emoji and removing a reaction still work. Before, any text of up to 32 characters showed as a reaction pill and the reaction groups of a message, sent to every member on each toggle, grew without bound.

  • toggleReaction removes a reaction the caller holds whatever its text: only adding checks the emoji rules, so reactions stored before them (:flag-cz:, plain text) can be taken back.

  • editEncryptedMessage counts against the message budget (RIM_RATE_MESSAGES_PER_MIN_PER_USER) as editMessage does, so a member can no longer edit an encrypted message in a loop, each edit storing a franking revision and reaching every member; resending an edit already stored is not counted.

  • A reaction replacing the author's reaction notification while it is unread and less than 10 minutes old updates it without another NotificationDue, so adding and removing a reaction in a loop no longer makes the author's client toast and play a sound each time.

  • A message mentions at most 50 distinct users; later <@user> tokens stay plain text. The mentions are checked against the conversation's members and, for a public channel, in one query for the rest, instead of one or two queries each.

  • Reports of messages in DMs and groups reach someone: the direct space has no Owner or Moderator, so its reports now go to the instance operators. An operator lists, opens and resolves them with messageReports, messageReport and resolveReport and the direct space's id (relayInfo.directSpaceId), downloads their attachments and deletes a message with a verified report; nobody else can, and an operator gets no other moderation there. Before, nobody could read them, and the verified content of an encrypted message stayed stored for good because only a resolved report's content is deleted.

  • reportDmRequest files one report per user and request: a second report is CONFLICT ("you already reported this request"). A migration deletes the repeated reports already stored, keeping the oldest of each, and adds a unique index. GraphQL instanceReports returns a page, with after (the last report's id) and limit (default 100, at most 500), and abuse-reports list takes --after and --limit. Before, one account could report the same request without end, and every open report came back in one list.

  • RIM_LIMIT_WORKSPACES_PER_USER holds when an account creates several workspaces at once, and transferWorkspaceOwnership refuses a new owner who already owns as many (VALIDATION).

  • RIM_LIMIT_CHANNELS_PER_WORKSPACE counts unarchived channels only, so archiving one frees its place; unarchiving a channel needs room under the cap (VALIDATION).

  • RIM_FEATURES_DISABLED and RIM_AUDIT_RETENTION_DAYS set in deploy/.env reach the server: deploy/compose.yml passes both through like every other setting. Before, the two lines were commented out in the rim service and a value in .env was silently ignored, so every feature stayed on.

  • The TypingStarted event of workspaceEvents carries the typing user's username and display_name, so a client can say who is typing.

  • A local account's first use of the direct space, any operation that needs membership there, joins it as a guest instead of being refused.

  • executeCommand refuses a builtin whose required role the caller does not hold in its workspace, with FORBIDDEN naming the command, before the service behind it runs; user command steps and pipe stages are checked the same way.

  • On a server with terms of service, every signup path refuses an account that did not accept them, not only the signupWithKey resolver.

  • addContact refuses the caller's own principal, and createConversation with remoteMembers naming only the caller answers "cannot create DM with yourself" instead of the group message.

  • executeMacro asks for one confirmation up front when a step needs one under the command confirmation gate: a dangerous step such as admin.kick, admin.ban, admin.set_role or chat.remove_conversation_member, a Restricted one, or for an agent a Mutating one. That confirmation covers every step of the run, so such a macro no longer fails at the step; the message of the CONFIRMATION_REQUIRED answer names those steps.

  • MlsPendingDevice.hasKeyPackage is false for a device whose pending MLS Welcomes leave no room for one more, the devices claimMlsKeyPackages leaves out, so a client no longer waits to add a device that no claim serves (docs/specs/e2ee-mls-v1.md, "Key packages").

  • A user's earlier avatar files no longer stay on disk: uploading an avatar deletes the user's avatar files in the other formats, setting avatarUrl deletes all but the one it names, clearing it deletes them all, and the account purge deletes every file in the account's avatar directory, whatever its avatarUrl named. The purge no longer deletes the file of another user that an account's avatarUrl pointed at.

  • GET /api/files/{path} sends X-Content-Type-Options: nosniff with a stored avatar.

  • With RIM_TRUST_FORWARDED_HEADERS=true the client address is the first entry of X-Forwarded-For only. Before, a Forwarded: for= header, which Caddy passes through untouched, named it, so any client could choose its address and escape the per-address limits, IP blocks and the signup, login and invite limits keyed on it. The Caddyfiles also drop Forwarded (header_up -Forwarded); an operator behind another proxy has it replace X-Forwarded-For as before and drop Forwarded too (docs/self-hosting.md).

  • POST /api reads at most 12 MiB of body, holding at most 262,144 of the bytes ,, [ and { and 128 KiB of GraphQL documents, and answers 413 {"error":"too_large"} past any of them before parsing it; requests another server forwards here get the same caps. Before, the whole body, up to the proxy's 32 MiB, was parsed before any check, so a few anonymous requests could take gigabytes of memory. /s2s/v1/… checks a request's signature before it reads the body.

  • A subscription operation selects exactly one root field; one with more answers VALIDATION and starts nothing. A WebSocket connection starts at most 10 subscriptions a second, in bursts of up to 50, and is closed with 1008 past that (docs/api.md, "Subscriptions"). Before, aliased root fields started a stream each under one slot of RIM_RATE_SUBSCRIPTIONS_PER_CONNECTION.

  • Commands, user commands, macros, pipelines and channel lenses have size limits (docs/command_model.md, "Size Limits"), each refused with VALIDATION naming it: executeCommand takes args of up to 64 KiB and a command id of 256 bytes (a pipe 4 KiB); a stored step's or action's args up to 4 KiB; descriptions 1,000 characters; a user command's title 128 characters; a macro's nlDescription 1,000 characters and up to 10 intentSamples of 200; a pipeline up to 10 actions and 5 filter conditions with patterns of 256 characters; a lens condition's strings 256 characters and lists 100 entries, never nested. The audit log keeps a call's redacted args up to 4 KiB and a truncated prefix of larger ones.

  • A macro step or a pipeline action may not name a user command (nor a pipeline action a macro): each step ran with its own 100-step budget, so one executeMacro could run 2,000 builtin steps. createMacro, updateMacro, createPipeline and updatePipeline refuse such a step; executeMacro refuses a stored one before any step runs, and a stored pipeline skips the action and runs at most its first 10.

  • chat.create_group and chat.invite_to_conversation need a member, not a guest, in the direct space too, where they skipped the DM-request checks that createConversation and addConversationMembers apply; commands no longer lists them to a guest there.

  • Workspace keybinds cannot bind a Mutating or Restricted command or preset a server_id other than their own workspace: createKeybind and updateKeybind refuse one, and resolvedKeybinds leaves out a stored one (docs/keybind_model.md, "Workspace Keybinds").

  • The server keeps at most 32 unanswered confirmation challenges per user, dropping the one closest to expiry, so pipeline actions that need a confirmation no longer pile them up.

  • submitMlsCommit limits what one member can store: a Commit that adds no device is at most 16 KiB plus 2 KiB per device of the group, a member sends at most 32 MiB of Commits to one conversation in 24 hours (both VALIDATION), and a user submits at most 30 Commits and 64 KiB of them a minute, with bursts of 60 and 8 MiB (RATE_LIMITED). Before, two accounts could store gigabytes of empty Commits a minute for 90 days and keep a group's epoch moving under its other members (docs/specs/e2ee-mls-v1.md, "Limits and audit").

  • Conversations started on this server no longer count toward the 5,000 accepted conversations a recipient holds per host, which bounds what other hosts store; someone here could fill it with groups and have every later DM to the recipient refused and hidden. Instead a user starts at most 50 new conversations a day in the direct space (VALIDATION; reopening a DM is not counted).

  • An account with a principal id but no profile card can no longer start a conversation in the direct space, or a workspace DM, with a local user who has a principal id (VALIDATION, "publish a profile card before starting a conversation with someone here"). Without a card no invite was filed, so such conversations reached the recipient past their DM settings, blocks and request limits.

  • A key package claim from another server (POST /s2s/v1/key-packages/claim) counts as known only when the user accepted a conversation that server homes or holds an active subscription to a workspace it hosts. Before, the claimer the server named was trusted, so any server could name someone the user knows, or a member of the default workspace everyone shares, and drain their one-time key packages past the 20-a-day stranger limit (docs/specs/server-to-server-v1.md).

  • A signup display name of 65 to 80 characters, and a remote profile card's of 65 to 80, no longer fail in the database, whose column holds 64: a signup answers VALIDATION and a card's name is cut to 64 characters.

  • Writing a workspace state key whose entry expired but was not purged yet (setWorkspaceState, state.set, state.incr) creates the entry anew: it belongs to its new writer, counts against their per-member quota, starts at version 1, and an increment starts from the delta without the old expiry. Before, the entry kept its first creator, so the new writer's bytes counted against someone else and the writer, a Member, was refused (FORBIDDEN) changing their own value.

Security #

  • POST /api answers a multipart/* body 415 with {"error":"unsupported_media_type"} before reading it, and reads every other body as JSON. Before, it parsed the GraphQL multipart upload format, which the schema has no use for, and one body of many empty file parts opened a temporary file for each, enough to run the server out of file descriptors (docs/api.md).
  • A workspace holds at most five times RIM_LIMIT_CHANNELS_PER_WORKSPACE channels, archived ones included; creating one past that answers VALIDATION saying archived channels still count. Before, creating and archiving channels in turn added channels without end. The ceiling is off when the cap is.
  • Adding someone as a contact no longer lets a user skip their own limits on DMs to strangers. The daily invites to people on other servers (RIM_RELAY_DM_REQUESTS_PER_DAY) and a new account's probation (RIM_PROBATION_HOURS) now pass only for people the user knows: a contact who lists the user as a contact too, or someone either of them accepted a DM request from on this server. A user holds at most 1,000 contacts; addContact for someone new past that answers VALIDATION. "Who May Start A DM" in docs/messaging.md and "Public relay" in docs/specs/server-to-server-v1.md describe both.
  • A device holds at most 256 pending MLS Welcomes and 64 MiB of them. A Commit whose Welcome would take an added device past either is refused (VALIDATION), and claimMlsKeyPackages leaves out a device without room for one more, so clients do not add it until it has read and acknowledged its Welcomes. Before, Welcomes for one device piled up for 30 days without limit. myMlsWelcomes answers a page at a time: the new optional after: MlsWelcomeCursorInput and limit (1 to 100, 100 by default) arguments, and the new MlsWelcome.createdAt that with id makes the cursor. A client that asks with no arguments gets the oldest 100 (docs/specs/e2ee-mls-v1.md, "Welcome delivery and joining").
  • Upgrade: RIM_LIMIT_INVITES_PER_USER_PER_DAY is on by default, at 50, and also caps the invite emails (createInvite with recipientEmail) one user sends in 24 hours. Emails are counted apart from the invites, so deleting a workspace does not give them back. Past either count createInvite is VALIDATION and creates nothing. Before, the cap was off unless set, and any workspace owner could have the server email any number of addresses. Set a higher number if your owners invite more people a day, or 0 to turn the cap off (docs/email.md).
  • Accepting, ignoring or reporting a DM request whose expiry has passed is NOT_FOUND, as for an unknown request; the decision checks the expiry in the same update that records it. Before, an expired request not yet purged could still be accepted.
  • The outbox a host keeps for each relay is bounded: at most 100,000 rows and 2 GiB that the relay has not acknowledged. Past either, new events are not queued for that relay; they are counted in rim_outbox_not_queued_rows_total and logged at warn once a minute. A relay every delivery to has failed for RIM_S2S_PEER_DEAD_AFTER_HOURS (default 24) is dead: nothing new is queued for it, it is tried once every 5 minutes, and its first success resumes queueing. The write itself and every other recipient are unaffected, and the relay's apps reconcile what they missed from the host's streams. Before, rows for an unreachable relay piled up for 7 days at whatever rate events were written. New gauges rim_outbox_pending_rows, rim_outbox_pending_bytes, rim_outbox_peer_max_pending_rows, rim_outbox_peer_max_pending_bytes and rim_outbox_dead_peers (docs/specs/server-to-server-v1.md, "Outbox and deliver"; docs/operations/metrics.md).
  • A relay files a DM invite another server delivers only when that server speaks for the sender it names: the sender's card must be signed by their key, and their newest card must list the delivering server (or the sender is a local user subscribed there). Anything else is refused invalid_invite and reaches no inbox; a sender whose identity neither server can produce is taken as a stranger, a request at most. Before, a peer could name anyone, including the recipient's contacts or fellow workspace members, to skip the request inbox, or invent a new sender for each request to get past the daily limit. A delivering server now also files at most 1,000 DM requests per day on a relay, whichever senders it names (docs/specs/server-to-server-v1.md, "The request inbox").
  • rustls 0.23.46: the TLS library behind outgoing HTTPS requests picks up the fixes for RUSTSEC-2026-0346, -0347, -0348 and -0349 (TLS secrets in Debug output, buffered data after an ECH rejection, certificate decompression memory, key-exchange downgrade).
  • rustls-webpki 0.103.16 and webpki-roots 1.0.10: outgoing HTTPS requests no longer trust the distrusted emSign intermediates or accept other distrusted intermediates (RUSTSEC-2026-0381, RUSTSEC-2026-0382).
  • A member removed from a workspace (kicked, banned) or from a conversation (left, removed) loses their notifications for it, and the email digest leaves out anything its recipient can no longer read. Before, a kicked member's pending notification was still emailed in the next digest, carrying the message's current text, edits made after the kick included.
  • A mutation whose protected field sits in nested fragments, named or inline, needs the CSRF header. Before, a request that showed only an exempt field such as logout at its top level skipped the check while a fragment two levels down ran updateMyProfile. The server reads the operation operationName selects through fragments at any depth, and requires the header whenever it cannot account for every root field. The refusal of account mutations for people from another server reads operations the same way.
  • RIM_RATE_MUTATIONS_PER_MIN_PER_SESSION charges every mutation field a request runs: fields in nested fragments count, and a fragment spread twice counts twice. Before, fields more than one fragment deep were not charged.
  • /api/ws runs subscriptions only. A query or a mutation sent on it answers one VALIDATION error, "only subscriptions over the WebSocket", and runs nothing. Before, a mutation sent there ran without the CSRF check, the mutation budget or the refusal of account mutations for people from another server. Clients send queries and mutations to POST /api.
  • Link previews stop reading a page at 1 MiB as it arrives, where a page sent without a length used to be read whole before the cap applied. At most RIM_LINK_PREVIEW_CONCURRENCY fetches (default 8, 1 to 64) run at once; a fetch that waits five seconds for a slot is dropped.
  • Link previews and server-to-server requests share one address policy that also refuses reserved IPv4 (240.0.0.0/4), benchmarking and protocol-assignment ranges, and IPv6 addresses that embed a private IPv4 address through NAT64 (64:ff9b::/96) or 6to4 (2002::/16). Server-to-server requests now ignore proxy environment variables, as link previews did. docs/specs/server-to-server-v1.md lists the refused ranges.
  • A WebSocket connection on /api/ws no longer outlives its session. When the session is signed out (logout, logoutOtherSessions), reset, revoked with its device, ended by an identity recovery, a requested account deletion, a block or the purge, or reaches its expiry, the server ends the connection's streams and closes it with code 4401 ("session ended"). Every operation on a connection checks the session first. A session ended in another server process or from the command line closes its connections within RIM_WS_SESSION_RECHECK_SECS (default 30, 0 turns the recheck off). docs/api.md ("Subscriptions") describes it; a client that sees 4401 signs in again before reconnecting.
  • A message on /api/ws is at most 256 KiB, whole or in fragments; a larger one closes the connection with code 1009 ("message too large"), refused at the frame header where it can be. Before, fragments were reassembled without a limit and queued for the server unbounded.
  • Pipelines react only to events their creator may see: a message, edit, deletion or reaction in a private channel, DM or group the creator is not in (for a guest, any conversation they are not in) no longer fires their pipeline or counts towards its cooldown or suspension, and a creator who has left the workspace has no pipeline firing. Only the creator is told when a pipeline fires or is suspended, and PipelineGql.lastFiredAt reads null for everyone else. Before, any member could build a pipeline with a text or author filter and learn from its firing when a private conversation they were not in received a matching message.
  • GraphQL a relay forwards for one of its users keeps this server's RIM_API_MAX_BATCH and RIM_RATE_MUTATIONS_PER_MIN_PER_SESSION, the mutation budget counted per device of the remote user, with the same refusals as /api. Before, a forwarded batch ran with no batch cap and no mutation budget.
  • A workspace state key with non-ASCII characters, given to setWorkspaceState or to the state.incr command, is refused with a VALIDATION error. Before, a key with a non-ASCII character across its 64th byte made the request fail instead.
  • A message's reactions, reactedByMe included, are read for the user who asked. Before, when several users' requests loaded reactions at the same moment, one of them could be shown another user's reaction state.
  • A workspaceEvents subscription that falls behind and misses events checks the subscriber's membership and role again before it delivers the next event, and ends when they are no longer a member of the workspace. Before, a member whose removal or demotion to guest was among the missed events went on receiving the workspace's events as before.
  • An identity recovered with the recovery phrase reaches other servers again. The identity document a relay serves and pushes (GET /s2s/v1/principals/<id>) leaves out the devices the recovery revoked, so hosts accept it, apply the recovery and revoke those devices; before, hosts refused the whole document and kept trusting the old devices, and the person could not be looked up or join a workspace on another server. A receiver ignores such a device instead of refusing the document, and a document past 64 devices keeps the current ones. Identity key rotations and recoveries are now pushed to hosts like device and card changes (server-to-server-v1.md "Profile cards and contacts", key-identity-v1.md "Rotation and recovery").
  • A host applies an identity pushed for someone from another server (POST /s2s/v1/identity) only from a relay that speaks for them: one their profile card lists (or a newer pushed card lists), their home relay while they have no card, or one holding a delegation of one of their devices. Any other server gets 403 not_delegated and nothing changes. Before, any peer could push a copy of someone's public identity and switch their devices' encryption activity on or off or become the relay the host refreshed them from. The relay a local user names, or one presenting a delegation or revocation for an unknown device, likewise only updates a known person when it speaks for them; refreshes go to the relays the person's card lists and then their home relay. RIM_HOST_ALLOWED_RELAYS now covers identity pushes too. docs/specs/server-to-server-v1.md ("Profile cards and contacts (7.4a)", "Remote users on a host", the threat model) states the rule.
  • User commands have limits: at most 20 steps each, at most 100 per user, at most eight nested, and at most 100 built-in steps in one run, nested user commands and pipe stages included. createUserCommand and updateUserCommand refuse a command over a limit with a VALIDATION error naming it. A stored user command nested deeper than eight or expanding past 100 built-in steps is refused when it runs, before any step runs, and commands leaves out a user command that does not resolve instead of failing. A disabled user command no longer runs (NOT_FOUND). Before, a few small user commands naming each other many times made one lookup or run do work that grew exponentially ("User Commands And Macros" in docs/command_model.md).
  • When a host applies a recovery or a device revocation that arrives in someone's identity (pushed by their relay or fetched from it), it ends their direct sign-in sessions and the delegations of the revoked devices, as it does for a revocation sent to /s2s/v1/revocations, and closes those sessions' live connections. Before, a device lost and recovered from kept its direct session at the host and stayed listed as delegated there. A direct sign-in of someone from another server is now refused (UNAUTHENTICATED) when their relay answers with an identity the host refuses; it still falls back to the stored copy when no relay answers (server-to-server-v1.md "Profile cards and contacts", "Direct connection").
  • A relay bounds the items DM requests hold apart from each user's queue: at most 1 MiB per request and 16 MiB per user, the invites of ignored requests included, past which a new invite is refused limited and a later item is dropped. Held items no longer count toward RIM_RELAY_QUEUE_BYTES_PER_USER. Before, they counted toward it but could not be dropped, so requests from strangers could make the relay drop every item queued for that user's devices (server-to-server-v1.md "Relay queues", "The request inbox", "Limits and audit").
  • A host keeps the challenges it issues for joining a workspace apart from login challenges. A join challenge is bound to the relay that asked for it and is accepted only by that relay's join; loginWithKey and signupWithKey refuse it, and the join refuses a login challenge. Before, a relay could present the proof a person's device signed for joining to the host's loginWithKey and get a session there as that person. Clients and relays change nothing: the proof keeps its format (server-to-server-v1.md §Joining, key-identity-v1.md).
  • Workspace invites expire: createInvite without expiresAt gives an invite that expires in seven days, and CreateInviteInput.expiresAt must be in the future and at most 30 days away (VALIDATION otherwise), as for instance invites. Invites created before keep their expiry, or none; revokeInvite ends them. Redeeming a workspace invite now checks its revocation and expiry in the same update that counts the use, so an invite revoked or expiring while a join or signup runs admits nobody.
  • The request inbox's limits hold for DMs started on this server. A conversation that would file a DM request past them is refused when it is started (createConversation, addConversationMembers): RATE_LIMITED with retryAfterSeconds once the sender would file more than RIM_RELAY_DM_REQUESTS_PER_DAY requests in 24 hours, FORBIDDEN ("their request inbox is full") while the recipient holds 100 pending requests. Before, a DM past either limit from someone on this server, or from someone elsewhere through the forward path, skipped the request inbox and reached the recipient's conversations and notifications directly. Workspace DMs a member takes as requests meet the same limits.
  • Cached identities of people on other servers, stored by remoteIdentity and by a host refreshing its remote members, are deleted 30 days after they were fetched unless the person is a remote user here. A pin of another server is forgotten after 90 days without a fetch or a request when nothing here refers to it and the configuration does not name it; its key-log head is kept, so its next contact pins it again only with a log that extends the one seen before (another history is pinned forked, a shorter one is not pinned). One origin holds at most 4 pins: a fifth server id there is refused until rim_server peer reset removes one. Before, any signed-in user could grow both tables without bound by looking up principals and servers. The hourly job, its s2s.peer_forgotten audit line and the rim_remote_identities_purged_total and rim_peer_pins_forgotten_total counters are in docs/operations/background-jobs.md (docs/specs/server-to-server-v1.md, "Pinning a peer").
  • A relay queues a host's items that name no conversation (workspace events, presence, directory events) only for recipients subscribed to that workspace, or, for presence and a recipient's own directory events from a host's direct space, for recipients who accepted a conversation that host homes; it refuses the rest not_subscribed. It also queues at most 2 GiB of items from one host a day across all its users, items of subscribed workspaces not counted, and refuses that host's further items limited (metric limiter relay_peer_bytes). Before, any server could queue such items for every user of the relay, for any workspace, up to each user's queue cap, and keep them there for the retention period (server-to-server-v1.md "Outbox and deliver", "Limits and audit").
  • A relay no longer keeps a person's accepted conversations forever. The record of an accepted
  • Upgrade: the migration shortens the expiry of every accepted conversation a relay holds to 400 days from the upgrade, and drops the stored sender card of conversations accepted on arrival; nothing is to be done, and the previous release keeps working on the result. A relay no longer keeps a person's accepted conversations forever. The record of an accepted conversation is deleted when they leave it or are removed from it, and otherwise expires 400 days after the last item delivered for it; a person holds at most 5,000 from one host, past which a new conversation their settings would deliver is refused limited. A conversation accepted as it arrived no longer stores its sender's card. When a relay refuses an item of a direct-space conversation not_subscribed for someone still in it, the host sends them its invite again, at most once a day, so a conversation that wakes up after its record expired, or whose invite was written while that relay was unreachable for a day and never delivered, is filed again. Before, each accepted conversation was kept for a hundred years with a card of up to 128 KiB, so a host could fill a relay's database by inventing conversations (server-to-server-v1.md "Outbox and deliver", "The request inbox", "Storage", "Limits and audit").
  • Every service of deploy/compose.yml drops its capabilities, cannot gain privileges and has a read-only root filesystem, as the monitoring overlays' services already did. PostgreSQL runs as postgres from the start, and Caddy, the only container on the public ports, as nobody instead of root, keeping only NET_BIND_SERVICE, which its binary needs to start. A new one-shot service, caddy-init, gives Caddy's volumes to that user before each start, so volumes a root Caddy wrote keep working. docker compose cp into a container now fails; docs/self-hosting.md shows how to pass a file in instead.

Rendered from rim-server/CHANGELOG.md at 2dd12c8