Repository navigation
rim-server 0.0.11
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 withRATE_LIMITEDand the seconds until the hour's window ends. Each start
still counts against its address too.PASSWORD_LOCKEDis no longer sent, and a password
locked before takes logins again (docs/specs/key-identity-v1.md). executeCommandchecks capabilities and timeouts in, and writes its audit row to, the
workspace the command acts on (itsserver_idargument, elsecommandContext.workspaceId). A
call whosecommandContext.workspaceIdnames another workspace than itsserver_idargument
is refused withVALIDATION, 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 inbotTokensandincomingWebhooks, and
the workspace's audit log records it asbot.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/sdlserves the schema rendered once at start, withCache-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 oneTOO_MANY_ROOT_FIELDSerror and runs
nothing (docs/api.md, "Limits"). remoteServerandremoteIdentityfetch 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 ofremoteServerandremoteIdentitytogether (withpreviewWebhookFormat, below);
past a limit they answerRATE_LIMITEDorTOO_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 4previewWebhookFormatfields together with
remoteServerandremoteIdentity(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 keepX-Forwarded-For,X-Real-IPand 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: nosniffand a sandboxingContent-Security-Policy; forwarded answers
that are not JSON are served as downloads. - Both Caddyfiles send
Strict-Transport-Security: max-age=31536000. - Upgrade:
rim-deployrequires the image's signature to come from the release workflow run
at the commit the tag points at, and installs that commit'sdeploy/files, so a moved tag
installs nothing;--checknever deploys a release older than the running one. The host needs
git(forgit ls-remote). Install the newrim-deployon the host asdeploy/README.mdsays. upgrade.shandrim-deploywrite 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.
Image
ghcr.io/rim-platform/rim-server:0.0.11 (sha256:4e1ffddec7327ec826bbff9208e274b0dd601461a3308b8035f8ff0c896b6fb8), signed with cosign by this repository's release
workflow. Verify it:
cosign verify ghcr.io/rim-platform/rim-server:0.0.11 \
--certificate-identity "https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v0.0.11" \
--certificate-oidc-issuer https://token.actions.githubusercontent.comIts SBOM, rim-server-0.0.11.spdx.json below, is attested to that digest by the same
workflow:
gh attestation verify oci://ghcr.io/rim-platform/rim-server@sha256:4e1ffddec7327ec826bbff9208e274b0dd601461a3308b8035f8ff0c896b6fb8 --repo rim-platform/rim-server \
--predicate-type https://spdx.dev/Document/v2.3The profile picture check, ghcr.io/rim-platform/rim-imagecheck:0.0.11 (sha256:a40fd35f6e025bd9535181dfa5a3284e3d833dff2094ff6d227d4de1017e5466), is signed by
the same workflow, with its SBOM rim-imagecheck-0.0.11.spdx.json attested the same
way: verify it with the commands above, ghcr.io/rim-platform/rim-imagecheck and its digest in place of
ghcr.io/rim-platform/rim-server and sha256:4e1ffddec7327ec826bbff9208e274b0dd601461a3308b8035f8ff0c896b6fb8.