Repository navigation
rim-server 0.0.3
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
instanceClearProfilereturningInstanceProfileClearOutcome.User.profileLockedUntil
tells the account onmeuntil when its profile is locked; while it is, setting any of the
four answersFORBIDDENand picture uploads 403. Audited asrelay.profile_cleared.
Security
- Profile pictures are re-encoded by the server:
POST /api/files/avatardecodes 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_HOURSa 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)
andRIM_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.ymlnow runs. AtRIM_AVATAR_CHECK_BLOCK(default 0.85)POST /api/files/avataranswers 422 and stores nothing; atRIM_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.
Image
ghcr.io/rim-platform/rim-server:0.0.3 (sha256:cd3aa1f646cb28ba1758662155c5aef4c6068f35babde8dcef3a439b5a685272), signed with cosign by this repository's release
workflow. Verify it:
cosign verify ghcr.io/rim-platform/rim-server:0.0.3 \
--certificate-identity "https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v0.0.3" \
--certificate-oidc-issuer https://token.actions.githubusercontent.comIts SBOM, rim-server-0.0.3.spdx.json below, is attested to that digest by the same
workflow:
gh attestation verify oci://ghcr.io/rim-platform/rim-server@sha256:cd3aa1f646cb28ba1758662155c5aef4c6068f35babde8dcef3a439b5a685272 --repo rim-platform/rim-server \
--predicate-type https://spdx.dev/Document/v2.3The profile picture check, ghcr.io/rim-platform/rim-imagecheck:0.0.3 (sha256:08df7c9d49a25fb2cd515990caa31040b0184e584e670034fd4ae2d1a79fe7e7), is signed by
the same workflow, with its SBOM rim-imagecheck-0.0.3.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:cd3aa1f646cb28ba1758662155c5aef4c6068f35babde8dcef3a439b5a685272.