Repository navigation
rim-server 0.0.1
Added
-
While rim-server or the web client cannot be reached, as during an upgrade's restart, Caddy
answers503withRetry-After: 30: JSON for/api,/s2s/and/.well-known/, and a
self-reloading "RIM is being updated" page for browsers, instead of a bare502
(deploy/Caddyfile,deploy/Caddyfile.relay). -
Upgrade: account passwords, checked with OPAQUE (
docs/specs/key-identity-v1.md,
"Account password (OPAQUE)").signupWithKeyrequirespasswordRegistration(from the new
passwordRegistrationStart) and answersserverShare; an account of this server with a
password signs in only withloginWithKey(proof, passwordTicket), the ticket coming from the
newpasswordLoginStartandpasswordLoginFinish(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-resetstatement). New rootspasswordChangeStartandpasswordChangeFinish; 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".
loginWithKeyandsignupWithKeyrequire
keepSignedIn: Boolean!andkeepKeyHeld: Boolean!, andLoginPayloadand
SignupWithKeyPayloadgainsessionSecretandkeepKey. 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 newX-RIM-Session-Secretheader and the WebSocket in its
connection_initpayload (sessionSecret; otherwise closed with4401), except plain file
downloads,logoutand the newreloadSession.reloadSessionandsetReloadKey(new,
with the typeReloadSessionPayload) 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 arim_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 rootspublicJoinLink,updatePublicJoinLink,
reissuePublicJoinLink,publicJoinLinkPreview(no sign-in),joinByPublicLink,
joinRequests,myJoinRequests,acceptJoinRequest,declineJoinRequestand
withdrawJoinRequest, the types
PublicJoinLink,PublicJoinLinkPreview,JoinRequest,JoinRequestPageand
JoinByPublicLinkPayload, and the eventsJoinRequestCreatedandJoinRequestDecided;
MemberJoinedgains an optionalsource(public_link). Every invalid link answers
NOT_FOUND, and 20 misses from an address in ten minutes answerRATE_LIMITEDfor 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") anddocs/api.md. -
Accounts of other servers join through a workspace's public link, or ask to join, through
their own server, unless the Owner turnsallowRemoteoff (FORBIDDEN); a blocked peer is
refused as for every request.remoteJoinChallengegains the argumentpublicLinkToken,
RemoteJoinChallengethe fieldsworkspaceNameandpublicLinkMode,
JoinRemoteWorkspaceInputthe fieldspublicLinkTokenandmessage, andRemoteJoinResult
the fieldsoutcome,joinRequestIdandjoinRequestExpiresAt. A request from another
server is filed and decided like a local one, and the decision reaches the person's server as
aJoinRequestDecidedhost event. On the server-to-server path,POST /s2s/v1/join/challenge
andPOST /s2s/v1/jointakepublicLinkToken(andmessage), and a join answers
joinRequestwhen 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.mdand
docs/api.md. -
POST /api/plugin-bundles/fetchfetches and validates pinned bundles for browser installs
without CORS-dependent external requests. Itsplugin_link_fetchfeature is enabled by
default, independent of workspace plugins; public HTTPS, hash, size and rate checks apply. -
Handles,
@<username>:<domain>: GraphQLUser.handlegives 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 internalr_…name; null while unknown and for
deleted accounts. The domain is the newRIM_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'susernameat their relay.searchMessagestakesfrom:@name:domain.
docs/server-identity.md("Handles and delegation") anddocs/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.jsonis the public relay's workspace;compose.ymlmounts it at
/config/default-workspace.json, andRIM_DEFAULT_WORKSPACE_FILEindeploy/.envturns it
on. The signup through the claim link
answers the new workspace asserverId, andserverInfo.defaultWorkspacenames it from then
on. "A default workspace" indocs/self-hosting.mddescribes 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 thenserverInfo.termsUrland the URL every signup accepts.
A missing, empty or oversized file, aFILL:placeholder in it, orRIM_TERMS_URLset too
stops the server at boot.deploy/terms.mdholds the public RIM server's terms and an example
for self-hosters;compose.ymlmounts it read-only at/config/terms.md. -
RIM_ABUSE_CONTACT: where to report abuse, an email address or an https URL, published as
abuseContactin 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.minimumAgenames it andsignupWithKeytakesconfirmedMinimumAge; a signup without it answersVALIDATION. The account records only the
age confirmed. The migration adds a nullableuser.minimum_age_confirmedcolumn. -
"Legal duties of an operator" in
docs/self-hosting.md. -
RIM_WEB_DOMAINindeploy/.envserves the web client on a domain of its own with
deploy/Caddyfile, such aschat.example.orgnext toRIM_DOMAIN. The client calls the API
on that origin;RIM_DOMAINstays 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 setsRIM_CORS_ALLOWED_ORIGINto the web domain's origin
andRIM_KEY_LOGIN_AUDIENCESto both domains unless they are set. Unset, nothing changes.
"The web client on its own domain" indocs/self-hosting.mddescribes it. -
deploy/upgrade.sh <version>, the upgrade ofdocs/operations/upgrade.mdin 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, setsRIM_VERSIONin
deploy/.env, pulls, migrates and starts, waits for/readyzand the public discovery
document, and rolls back to the version before when they do not answer.--dry-runchecks
the images and prints the rest. -
deploy/rim-deploy.shwithdeploy/systemd/rim-deploy.serviceandrim-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'sdeploy/files
and itsupgrade.sh, once the version's signedrim-serverimage proves an approved release
run. AHOLDfile stops it, a failed version is held back inFAILED,
andrim-deploy <version>deploys or rolls back by hand. "Unattended upgrades from releases"
indeploy/README.mddescribes it. -
The backup and upgrade scripts read
COMPOSE_FILEfromdeploy/.envtoo, so a relay can name
its compose files there once. -
deploy/compose.monitoring-containers.yml, an opt-in overlay on top of
compose.monitoring.ymlthat adds cAdvisor, so Alloy also sends each compose service's CPU
and memory use (jobcadvisor). cAdvisor reaches the Docker and containerd sockets only
through proxies that allow it read-only calls alone; it needs the newDOCKER_GIDin
deploy/.env, and a host on the overlay2 storage driver also adds
compose.monitoring-containers-overlay2.yml. "Container metrics" in
docs/operations/metrics.mddescribes 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
/readyzand reads the host's metrics, and remote-writes them to Grafana Cloud with the new
GRAFANA_CLOUD_METRICS_URL,GRAFANA_CLOUD_METRICS_USERandGRAFANA_CLOUD_METRICS_TOKEN
indeploy/.env. "Collecting them with Grafana Alloy" indocs/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. Addsuser_activityfor persistent, throttled activity tracking.
docs/operations/metrics.mddescribes their scope and sampling. -
Who may start a DM, in three layers where each only tightens the one above ("Who May Start A
DM" indocs/messaging.md). The operator setsRIM_DM_INBOUND(open,requestsby default,
partners,none),RIM_DM_OUTBOUND(allowedby default,partners,none) and
RIM_DM_PARTNERS, shown in the newServerInfo.dmInbound,dmOutboundanddmPartners; 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 newsetMyDmSettingsandsetMyWorkspaceDmSetting, read withmyDmSettings
(effectiveOutside,outsideFloorFrom). New enumsDmInbound,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)anduserCommandsreturn the caller's own user commands as the new
UserCommandtype (UserCommandStep), enabled or not, with their saved steps in order, so a
client can edit a user command without asking for its steps again.userCommandanswers 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 newacceptConversationInviteonce 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 | listmakes an account
an instance operator,me.instanceOperatorsays whether the caller is one, and the queries
instanceReports,instancePrincipalBlocks,instanceIpBlocksand the mutations
instanceBlockPrincipal,instanceUnblockPrincipal,instanceResolveReport,
instanceBlockIp,instanceUnblockIpdo what theabuse-reports,principalandip
commands do; anyone else getsFORBIDDEN. Their audit lines now carryactor_id. -
LoginPayload.csrfTokenandSignupWithKeyPayload.csrfToken:loginWithKeyand
signupWithKeyreturn the session's CSRF token, the value of the
rim_csrfcookie, so a client that cannot read that cookie (a packaged desktop app talking to
a server on another host) can send it inX-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>andlatest), 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 ofserverInfo. -
Request limits, each off unless set:
RIM_RATE_REQUESTS_PER_MIN_PER_IP(requests to/api
routes per client address, answered 429 withRetry-After),
RIM_RATE_MUTATIONS_PER_MIN_PER_SESSION,RIM_RATE_MESSAGES_PER_MIN_PER_USERwith
RIM_RATE_MESSAGES_BURST(both answeredRATE_LIMITED),RIM_RATE_WS_CONNECTIONS_PER_USER
andRIM_RATE_SUBSCRIPTIONS_PER_CONNECTION(the new GraphQL error code
TOO_MANY_SUBSCRIPTIONS). Refusals are counted inrim_rate_limit_rejections_total, and
browsers may readRetry-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>andip 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 asip.blockand
ip.unblockand refusals counted inrim_ip_blocked_requests_total. Adds theip_block
table. -
RIM_INSTANCE_NOTICEandRIM_TERMS_URL: a short operator notice and the terms of service
URL, served as GraphQLServerInfo.instanceNoticeandServerInfo.termsUrl. With terms set,
signupWithKeyrequiresacceptedTermsUrl(a new optional field ofSignupWithKeyInput)
equal to the terms URL and answers
VALIDATIONotherwise; 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_USESandRIM_LIMIT_MESSAGE_BYTES. Creating one more past a cap answers
VALIDATIONnaming it. GraphQLServerInfo.limits(typeServerLimits, one nullableInt
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
VALIDATIONnaming the minutes left, andRIM_RATE_PROBATION_MESSAGES_PER_MINgives 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.probationHoursreports the setting andUser.probationEndsAt, read onme,
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 })(answersDeleteWorkspacePayload { deleted }) deletes a workspace with everything in it once its owner types its name. -
Self-service account deletion: GraphQL
requestAccountDeletion(input: { confirmUsername })
(answersAccountDeletionSchedule { scheduledFor }),cancelAccountDeletionand
User.deletionScheduledFor, set onmewhile 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,
sosignupWithKeywith a deleted account's identity answersVALIDATION. Signups may no
longer take usernames starting withdeleted-. Addsuser.deletion_requested_at,deletion_scheduled_forand
deleted_at. -
The invite chain and the complete ban. Every account records the invite it signed up with
and that invite's creator (new nullableuser.created_by_invite_idand
user.invited_by_user_id).rim_server principal blocknow also revokes the account's
invites that have uses left, blocks its email (the newblocked_emailtable: a signup with
it answersVALIDATION"this email cannot sign up here"),
records the reason as a resolved abuse report, and lists the accounts its invites created;
--cascadeblocks those too, recursively, in the same transaction.principal unblockalso
lifts the email block; sessions and invites stay ended. The newprincipal 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 thatsignupWithKeyand
updateMyProfilerefuse withVALIDATION"this name is reserved",
compared after trimming, Unicode NFKC normalisation and lowercasing, and also followed by
-,_,.or a space (rimreservesrim-admin, notrimmer). 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),
andreaction_emoji/reaction_byon theNotificationDueevent. -
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. GraphQLServerInfo.defaultWorkspacenames 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'ssettings_schema(value_typestring,boolean,
integer,pathorenum,is_secret, and the optionaldefault,min,max,options
andplaceholder), andrim.settings.getandrim.settings.changed, added within protocol v1
for both plugin kinds, with the panel bridge'srim.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 aWorkspaceInvitePageof
WorkspaceInvite(role, uses, expiry, creator, revocation and aWorkspaceInviteStateof
ACTIVE,EXPIRED,USED_UPorREVOKED), paged withWorkspaceInviteCursorInputand
WorkspaceInviteCursorOutput, never with their tokens; the newrevokeInvite(inviteId)
stops an invite admitting anyone, while members who joined with it stay ("Workspace invites"
indocs/messaging.md). -
RIM_LIMIT_ACCOUNTScaps 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 codeREGISTRATION_FULLand a message
that the server is full and points to running a server or signing up on another one. The new
ServerInfo.registrationFullandServerLimits.accounts, andregistration.fullin the
discovery document beside the descriptor (server-to-server-v1.md), say so before anyone
tries.docs/operations/relay-public.mdsays 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 inrim_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 inrim_audit_exports_deleted_total. Unset keeps every export.
deploy/compose.relay.ymlsets it to 90, so on a public relay a command audit row is gone
completely after about 180 days. -
RIM_BACKUP_KEEP_DAYSfordeploy/backup.sh: after a backup that succeeded, the deployment's
archives inRIM_BACKUP_DIRolder than that many days are deleted. Unset keeps every archive. -
RIM_BACKUP_HEARTBEAT_URLfordeploy/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
avatarsfeature forRIM_FEATURES_DISABLED: while it is off,POST /api/files/avatar
andGET /api/files/{path}(also when forwarded) answer 403FEATURE_DISABLED,
updateMyProfilewith anavatarUrlanswersFEATURE_DISABLED, and GraphQLUser.avatarUrl
andServerMember.avatarUrlread as null. Stored avatars are kept.serverInfo.featuresand
the discovery document listavatars; 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,forwardMessageinto it,sendEncryptedMessageand
toggleReactionanswerFORBIDDEN("accept the message request before posting here") while
their request is pending or ignored, or they blocked its starter, andstartTypinganswers
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:
createConversationandaddConversationMembers(and thechat.create_groupand
chat.invite_to_conversationcommands) 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@channeland@herenotify everyone
only from an Owner or Moderator; from anyone else they are plain text. -
Upgrade: the committed
deploy/default-workspace.jsonsets"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;
setDIRECTin 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_WORKSPACEandRIM_LIMIT_PIPELINES_PER_WORKSPACEbut 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.deletewith theSERVERscope) takes a Member, Moderator or Owner who
is not timed out and whose account is out of probation; a guest getsFORBIDDEN. A Member
overwrites and deletes only the keys they created (FORBIDDENotherwise) 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. TheWorkspaceStateChangedevent ofworkspaceEventsno longer
carriesvalue; a client reads the entry again. -
In the default workspace only the Owner and Moderators create channels; a member gets
FORBIDDENand still starts DMs and groups. A later start ofRIM_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_WORKSPACEandRIM_LIMIT_PIPELINES_PER_WORKSPACEalso 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>.login the
directory ofRIM_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.logis no longer needed; the oldaudit.logis left as it is, to be deleted by hand.
SetRIM_AUDIT_LOG_RETENTION_DAYSindeploy/.envto 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.ymlsetsRIM_AUDIT_RETENTION_DAYSto 90: a public relay exports and
deletes command audit rows after 90 days unlessdeploy/.envsets another value. -
Upgrade:
deploy/compose.relay.ymlno longer setsRIM_ROLE=relayand the Caddyfile
itself: setRIM_ROLE(relay, orbothto host workspaces) andRIM_CADDYFILE
(./Caddyfile.relay, or./Caddyfilewith the web client andCOMPOSE_PROFILES=web) in
deploy/.env. Without either, every compose command with the overlay stops and names it.
An existing relay keeps its behaviour withRIM_ROLE=relayand
RIM_CADDYFILE=./Caddyfile.relay. "A relay that hosts a workspace" indeploy/README.md
describes the other choice. -
Upgrade: usernames are stored lowercase and compared without regard to case. A signup
storesAliceasaliceand refusesaLiCeoncealiceexists (CONFLICT);
requestAccountDeletion,from:@namein message search and the
rim_server operatorcommands 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 withSELECT lower(username) FROM "user" GROUP BY 1 HAVING count(*) > 1and
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,DIRECTunless the workspace or the person setREQUESTS; 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=partnersornone,GET /s2s/v1/principals/<id>answers404and key
package claims answer403to servers that are not partners, except a server hosting a
workspace the person subscribed to (server-to-server-v1.md, "The request inbox"). -
signupWithKeyaccepts 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.mdanddevice-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.ymlruns the published imagesghcr.io/rim-platform/rim-server
andghcr.io/rim-platform/rim-webatRIM_VERSION(defaultlatest) instead of building
them. SetRIM_VERSIONindeploy/.envto the release you run, and runpullthenup -d
where you ranup -d --build. Operators who build locally add-f deploy/compose.dev.ymlto
every compose command;RIM_SERVER_IMAGEandRIM_WEB_IMAGEstill 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_BATCHchanges the cap. -
With
link_previewsinRIM_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.localhostand
https://tauri.localhost) are accepted by every server withoutRIM_CORS_ALLOWED_ORIGIN. -
GraphQL
commandsandcommandDiscoverlist 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.
startTypingin a channel or a group
answersfalseand emits noTypingStarted; it also answersfalseon a repeat inside the
throttle window, andtrueonly 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.tomlwith why it does not apply and when the entry comes out. -
GraphQL
updateMyProfiletakes asavatarUrlonly an empty value or the caller's own avatar,
theurlthatPOST /api/files/avataranswered them
(/api/files/avatars/<their id>/avatar.<png|jpeg|gif|webp>); any other path, another user's
avatar included, answersVALIDATION.POST /api/files/avataranswers 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 levelMENTIONSinstead ofALL: a plain message there no longer stores a
notification and sendsNotificationDueto every member, only to those who choseALLfor
the workspace or the conversation.myNotificationSettingsand
Conversation.effectiveNotificationLevelreport it. Saved settings are kept as saved. -
editMessagedraws 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 answersRATE_LIMITED
past it. -
Display names from
signupWithKeyandupdateMyProfileare 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_NAMESalso refuses a reserved
name hidden behind any invisible character, a variation selector or Hangul filler included,
or written with lookalike letters from another script (Аdminwith 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_KEYSand
RIM_PASSWORD_HASH_CONCURRENCYare no longer read. Clients built before it cannot sign in.
Gone from GraphQL:loginandLoginInput,signupWithInviteandSignupWithInviteInput,
requestPasswordReset,resetPassword(token, newPassword),enrollIdentityKeyand
EnrollIdentityKeyInput, andServerInfo.signupRequiresKeys.SignupWithInvitePayloadGql
is renamedSignupWithKeyPayload. The migration drops thepassword_reset_tokentable 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.envhistory purge runbook. Git history keeps them. The nested resolver
access reference moved todocs/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 exposeUser.banned,
bannedUntiland moderator-onlybanReason. An unban restores a local account to the current
default workspace;joinDefaultWorkspacelets older accounts and expired bans rejoin it. -
Profile picture uploads use content-addressed URLs with private immutable caching. Successful
profile updates emitMemberProfileUpdatedso 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
ctutilsto 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_LOGoverrides 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 withdeleteMessage, 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. GraphQLMessageReport.messageAuthorPrincipalIdgives the
author's principal id on the direct space's reports whose author is shown, for
instanceBlockPrincipal. -
A conversation's
DmInvitesent 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_byadds the nullable
conversation_member.invited_by); members added before it are invited again from the
creator. -
toggleReactionaccepts 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 whilecustom_emojiis
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. -
toggleReactionremoves 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. -
editEncryptedMessagecounts against the message budget (RIM_RATE_MESSAGES_PER_MIN_PER_USER)
aseditMessagedoes, 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 anotherNotificationDue, 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 withmessageReports,messageReportandresolveReportand 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. -
reportDmRequestfiles one report per user and request: a second report isCONFLICT
("you already reported this request"). A migration deletes the repeated reports already
stored, keeping the oldest of each, and adds a unique index. GraphQLinstanceReports
returns a page, withafter(the last report's id) andlimit(default 100, at most 500),
andabuse-reports listtakes--afterand--limit. Before, one account could report the
same request without end, and every open report came back in one list. -
RIM_LIMIT_WORKSPACES_PER_USERholds when an account creates several workspaces at once, and
transferWorkspaceOwnershiprefuses a new owner who already owns as many (VALIDATION). -
RIM_LIMIT_CHANNELS_PER_WORKSPACEcounts unarchived channels only, so archiving one frees its
place; unarchiving a channel needs room under the cap (VALIDATION). -
RIM_FEATURES_DISABLEDandRIM_AUDIT_RETENTION_DAYSset indeploy/.envreach the server:
deploy/compose.ymlpasses both through like every other setting. Before, the two lines were
commented out in therimservice and a value in.envwas silently ignored, so every
feature stayed on. -
The
TypingStartedevent ofworkspaceEventscarries the typing user'susernameand
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. -
executeCommandrefuses a builtin whose required role the caller does not hold in its
workspace, withFORBIDDENnaming 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 thesignupWithKeyresolver. -
addContactrefuses the caller's own principal, andcreateConversationwithremoteMembers
naming only the caller answers "cannot create DM with yourself" instead of the group message. -
executeMacroasks for one confirmation up front when a step needs one under the command
confirmation gate: a dangerous step such asadmin.kick,admin.ban,admin.set_roleor
chat.remove_conversation_member, aRestrictedone, or for an agent aMutatingone. That
confirmation covers every step of the run, so such a macro no longer fails at the step; the
messageof theCONFIRMATION_REQUIREDanswer names those steps. -
MlsPendingDevice.hasKeyPackageis false for a device whose pending MLS Welcomes leave no
room for one more, the devicesclaimMlsKeyPackagesleaves 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, settingavatarUrldeletes 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 itsavatarUrlnamed. The purge no longer deletes the file of another
user that an account'savatarUrlpointed at. -
GET /api/files/{path}sendsX-Content-Type-Options: nosniffwith a stored avatar. -
With
RIM_TRUST_FORWARDED_HEADERS=truethe client address is the first entry of
X-Forwarded-Foronly. Before, aForwarded: 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-Foras before and dropForwardedtoo (docs/self-hosting.md). -
POST /apireads 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 with1008past 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 withVALIDATIONnaming it:
executeCommandtakesargsof up to 64 KiB and a command id of 256 bytes (a pipe 4 KiB); a
stored step's or action'sargsup to 4 KiB; descriptions 1,000 characters; a user command's
title 128 characters; a macro'snlDescription1,000 characters and up to 10intentSamples
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 redactedargsup 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 oneexecuteMacrocould run 2,000
builtin steps.createMacro,updateMacro,createPipelineandupdatePipelinerefuse such a
step;executeMacrorefuses a stored one before any step runs, and a stored pipeline skips the
action and runs at most its first 10. -
chat.create_groupandchat.invite_to_conversationneed a member, not a guest, in the
direct space too, where they skipped the DM-request checks thatcreateConversationand
addConversationMembersapply;commandsno longer lists them to a guest there. -
Workspace keybinds cannot bind a
MutatingorRestrictedcommand or preset aserver_id
other than their own workspace:createKeybindandupdateKeybindrefuse one, and
resolvedKeybindsleaves 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. -
submitMlsCommitlimits 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 (bothVALIDATION), 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 answersVALIDATIONand 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 /apianswers amultipart/*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_WORKSPACEchannels, archived
ones included; creating one past that answersVALIDATIONsaying 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;addContactfor someone new past that
answersVALIDATION. "Who May Start A DM" indocs/messaging.mdand "Public relay" in
docs/specs/server-to-server-v1.mddescribe 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), andclaimMlsKeyPackages
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.
myMlsWelcomesanswers a page at a time: the new optionalafter: MlsWelcomeCursorInputand
limit(1 to 100, 100 by default) arguments, and the newMlsWelcome.createdAtthat with
idmakes 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_DAYis on by default, at 50, and also caps the
invite emails (createInvitewithrecipientEmail) one user sends in 24 hours. Emails are
counted apart from the invites, so deleting a workspace does not give them back. Past either
countcreateInviteisVALIDATIONand 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 inrim_outbox_not_queued_rows_totaland logged at warn once a minute. A relay every
delivery to has failed forRIM_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 gaugesrim_outbox_pending_rows,
rim_outbox_pending_bytes,rim_outbox_peer_max_pending_rows,
rim_outbox_peer_max_pending_bytesandrim_outbox_dead_peers
(docs/specs/server-to-server-v1.md, "Outbox anddeliver";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
refusedinvalid_inviteand 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"). rustls0.23.46: the TLS library behind outgoing HTTPS requests picks up the fixes for
RUSTSEC-2026-0346, -0347, -0348 and -0349 (TLS secrets inDebugoutput, buffered data after
an ECH rejection, certificate decompression memory, key-exchange downgrade).rustls-webpki0.103.16 andwebpki-roots1.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 aslogoutat its top level
skipped the check while a fragment two levels down ranupdateMyProfile. The server reads
the operationoperationNameselects 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_SESSIONcharges 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/wsruns subscriptions only. A query or a mutation sent on it answers oneVALIDATION
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 toPOST /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 mostRIM_LINK_PREVIEW_CONCURRENCYfetches
(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.mdlists the refused ranges. - A WebSocket connection on
/api/wsno 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 code4401("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 sees4401signs in again before reconnecting. - A message on
/api/wsis at most 256 KiB, whole or in fragments; a larger one closes the
connection with code1009("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, andPipelineGql.lastFiredAtreads 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_BATCHand
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
setWorkspaceStateor to the
state.incrcommand, is refused with aVALIDATIONerror. Before, a key with a non-ASCII
character across its 64th byte made the request fail instead. - A message's reactions,
reactedByMeincluded, 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
workspaceEventssubscription 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 gets403 not_delegatedand 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_RELAYSnow 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.
createUserCommandandupdateUserCommandrefuse a command over a limit with aVALIDATION
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, andcommandsleaves 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 refusedlimitedand 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;loginWithKeyandsignupWithKeyrefuse 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'sloginWithKeyand 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:
createInvitewithoutexpiresAtgives an invite that expires in
seven days, andCreateInviteInput.expiresAtmust be in the future and at most 30 days away
(VALIDATIONotherwise), as for instance invites. Invites created before keep their expiry,
or none;revokeInviteends 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_LIMITEDwithretryAfterSecondsonce the sender would file
more thanRIM_RELAY_DM_REQUESTS_PER_DAYrequests 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
remoteIdentityand 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 pinnedforked, a shorter one is not pinned). One origin holds at
most 4 pins: a fifth server id there is refused untilrim_server peer resetremoves one.
Before, any signed-in user could grow both tables without bound by looking up principals and
servers. The hourly job, itss2s.peer_forgottenaudit line and the
rim_remote_identities_purged_totalandrim_peer_pins_forgotten_totalcounters 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 restnot_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 itemslimited(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 refusedlimited. A conversation
accepted as it arrived no longer stores its sender's card. When a relay refuses an item of a
direct-space conversationnot_subscribedfor 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 anddeliver", "The request inbox", "Storage", "Limits and
audit"). - Every service of
deploy/compose.ymldrops its capabilities, cannot gain privileges and has
a read-only root filesystem, as the monitoring overlays' services already did. PostgreSQL runs
aspostgresfrom the start, and Caddy, the only container on the public ports, asnobody
instead of root, keeping onlyNET_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 cpinto a container now fails;
docs/self-hosting.mdshows how to pass a file in instead.
Image
ghcr.io/rim-platform/rim-server:0.0.1 (sha256:25448bf6ab1cbfc3ca3f95ec411544c9664e922fdc7b2e5a81d7f5460e873c56), signed with cosign by this repository's release
workflow. Verify it:
cosign verify ghcr.io/rim-platform/rim-server:0.0.1 \
--certificate-identity "https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v0.0.1" \
--certificate-oidc-issuer https://token.actions.githubusercontent.comIts SBOM, rim-server-0.0.1.spdx.json below, is attested to that digest by the same
workflow:
gh attestation verify oci://ghcr.io/rim-platform/rim-server@sha256:25448bf6ab1cbfc3ca3f95ec411544c9664e922fdc7b2e5a81d7f5460e873c56 --repo rim-platform/rim-server \
--predicate-type https://spdx.dev/Document/v2.3