Skip to content

rim-server 0.0.11

Choose a tag to compare

@github-actions github-actions released this 14 Nov 14:13
· 12 commits to master since this release
v0.0.11
f984dc6

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.

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.com

Its 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.3

The 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.