Fire Arrow Server 2.8.0
Fire Arrow Server 2.8.0 has been released.
- (breaking) Fire Arrow Server requires Java 21
- (security) The container image runs on a Java build that fixes Java4Shell (CVE-2026-114938)
- (feature)
$expungecan be granted to client roles with theexpungeoperation - (bugfix) Cluster instances no longer drop cluster events when the database is unavailable at startup
- (bugfix) GraphQL searches and reads of
AuditEventno longer fail with403 Forbidden - (bugfix) Auto-created
Patient,Practitioner, andRelatedPersonresources get a correctly structured name
Java 21 Required
Fire Arrow Server is built for Java 21, following the HAPI FHIR server it is based on. The container image already ships with Java 21, so deployments that use it need no change.
Breaking Change
If you run Fire Arrow Server with java -jar or on your own Java runtime or image, upgrade that runtime to Java 21 before upgrading the server. On Java 17, the server does not start. Use a Java 21 build that includes the Java4Shell fix, as described in the next section.
Java4Shell Fixed in the Container Image
CVE-2026-114938, known as Java4Shell, lets an unauthenticated caller run code on the server through a malformed Base64 value on CPUs with AVX-512. Fire Arrow Server 2.7.0 mitigated it in the container image by turning off the affected decoder with -XX:-UseBASE64Intrinsics, because no fixed Java build was available for that image.
Starting with 2.8.0, the container image runs on Eclipse Temurin 21.0.13.1, which contains the fix. The -XX:-UseBASE64Intrinsics flag is removed, so Base64 decoding is back to full speed. The image is also about 24 MB smaller.
If you run your own Java runtime, use a Java 21 build that contains the fix, such as Temurin 21.0.13.1 or later. Until such a build is available for your runtime, keep -XX:-UseBASE64Intrinsics in the Java options. Restart every running instance after the upgrade, because a running process keeps the Java runtime it started with.
Granting $expunge
$expunge permanently removes deleted resources and old versions from the database. Until now, no authorization rule could allow it, so $expunge requests from client roles were rejected with 403 Forbidden. Starting with 2.8.0, expunge is an operation in authorization rules:
fire-arrow:
authorization:
rules:
- client-role: Device
resource: Communication
operation: expunge
validator: Allowed
A rule covers $expunge on a single resource (POST /fhir/Communication/{id}/$expunge) and on the resource type (POST /fhir/Communication/$expunge). The rule grants only $expunge. It does not allow DELETE or other writes on that type. $expunge on the whole server cannot be granted by a rule. resource: "*" is rejected for expunge at startup, so list each resource type that may be expunged.
The server must still allow expunge with hapi.fhir.jpa_config.expunge_enabled, which is true by default.
Bug Fixes
Cluster instances dropped events after starting without the database
In cluster mode, instances pass events to each other through the database. When an instance started while the database was briefly unreachable, for example during a failover, it could come up without its cluster event connection. Events it sent to the other instances were then dropped. These include CarePlan changes handed to the leader, so the Task resources for those CarePlans were not created on time. /actuator/health still reported the instance as healthy, and only a warning was logged.
Starting with 2.8.0:
- At startup, an instance in cluster mode waits for its cluster event connection. If the connection is not ready within
fire-arrow.cluster.session-bootstrap-timeout, startup fails, and the orchestrator restarts the instance until the database is reachable. Setting the timeout toPT0Sskips the wait. Withenabled: auto, the instance then starts without its event connection, as before. Withenabled: true, it fails immediately. - While the event connection is down, outgoing events wait in memory and are sent in order once it is back, up to
fire-arrow.cluster.async-pending-capacityevents. Events beyond that limit, or sent while the instance is shutting down, are dropped and logged as an error with the number of dropped events. /actuator/health/readinessincludes aclusterEventBuscheck. It reportsDOWNwhile an instance in cluster mode has no event connection, so the load balancer stops sending traffic to it until it reconnects. Its details show the connection state and the number of queued and dropped events. Single-node instances always reportUP.
| Setting | Environment variable | Default |
|---|---|---|
fire-arrow.cluster.session-bootstrap-timeout | FIRE_ARROW_CLUSTER_SESSION_BOOTSTRAP_TIMEOUT | PT2M |
fire-arrow.cluster.async-pending-capacity | FIRE_ARROW_CLUSTER_ASYNC_PENDING_CAPACITY | 10000 |
No configuration change is required. If you alert on readiness, expect an instance to report DOWN while it reconnects to the database. If you override management.endpoint.health.group.readiness.include, add clusterEventBus to the list.
GraphQL access to AuditEvent was denied
A practitioner allowed to search AuditEvent through GraphQL, for example with the LegitimateInterest validator, received 403 Forbidden (HAPI-0333: Access denied by rule) from AuditEventList and from GraphQL reads of a single AuditEvent. The same search through the REST API returned results.
An AuditEvent refers to its patient inside agent.who or entity.what, not in a top-level field. When the server checked which patient each returned resource belongs to, it did not look inside these nested elements, found no patient, and denied every result. Starting with 2.8.0, the server follows these nested references. GraphQL now returns the AuditEvent resources the caller may see. Events for patients outside the caller's access are still left out. The fix applies to every resource type whose patient reference sits in a nested element, and to all validators that check access by patient.
Auto-created identity resources had a malformed name
When a user signed in for the first time and the server auto-created their Patient, Practitioner, or RelatedPerson, the display name from the token was copied into both name.given and name.family. A user named "Ada Lovelace" became given name "Ada Lovelace" and family name "Ada Lovelace". The token's given_name and family_name claims were ignored. Because the name looked complete, apps that check whether a resource has a name did not ask the user to fill it in.
Starting with 2.8.0, the name is built from the token as follows:
| Token claim | HumanName element |
|---|---|
given_name | given |
family_name | family |
name | text |
use is set to official |
When the token carries none of these claims, the resource is created without a name. The claims can be changed per provider with given-name-claim and family-name-claim under claim-mapping, alongside the existing name-claim. Existing configurations need no change.
Resources created before 2.8.0 keep their names. Correct those names with an update if your apps rely on them.