Repository navigation
RESTHeart 9.18.0
ACL rules can now check a team against all the teams of the caller, not only against the active one. A credential that acts in every team of its user, like an API key given to an agent, names the team in the document, and the rule checks it.
@teams: all the caller's teams (#832)
@team is the active team, the one the user last switched to. @teams is every team the caller belongs to, read from the membership provider at every request:
| Variable | Value |
|---|---|
@teams |
an array of { _id, role }, one for each team |
@teams._id |
the ids of all the caller's teams |
@teams.<role> |
the ids of the teams where the caller has that role, e.g. @teams.owner |
Reads and changes of the documents of the caller's teams, and of those it owns:
{ "readFilter": { "team": { "$in": "@teams._id" } },
"writeFilter": { "team": { "$in": "@teams.owner" } } }An insert, which no filter covers: the team in the body must be one the caller owns.
in(value=@request.body.team, array=@teams.owner)
A body that is an array leaves @request.body unbound, so a bulk insert is refused by such a rule. A caller with no account, a user in no team, or a failure reading the memberships resolves to an empty array, which matches nothing. A user who leaves a team, or whose role changes, is seen by the next request.
The variable is named after team-claim-name, with an s: with team-claim-name: org it is @orgs.
A deployment's own default language of the emails (#829, #830)
9.17.1 chose the language of each email from the recipient, then from the request, then from default-locale. A deployment that serves several tenants can now give each its own default, by attaching to the request override-accounts-default-locale (in place of accountsConfig.default-locale) and override-stripe-default-locale (in place of stripeConfig.default-locale). A value that is not a language code is ignored.
Docker image
The JVM image starts with -XX:-UseBASE64Intrinsics, a temporary mitigation of Java4Shell (CVE-2026-114938), until a fixed GraalVM Community 25 is released.
MQTT module
The archives are restheart-mqtt.zip and restheart-mqtt.tar.gz, with no version in the name, and unpack into restheart-mqtt/. releases/latest/download/restheart-mqtt.zip stays valid from one release to the next.
Packages
- Docker:
softinstigate/restheart:9.18.0 - Maven:
org.restheart:restheart-commons:9.18.0and the other modules, on Maven Central. - The zip and the tar.gz of RESTHeart and of the MQTT module are attached to this release.