Upgrading
This page says how to move a gateway to a newer release, what each release asks you to change, and which configuration changes FerroFED makes without notice and which it never does. Rollback says how to go back. No specification governs this page: our own design.
Before you upgrade
-
Read the release’s Upgrade notes, the first section of its changelog entry. They list every change you must make: a key that became mandatory, a value that is now refused, a key renamed, a file to move. The notes for the releases so far are below.
-
Keep a copy of the configuration you run now,
ferrofed.tomland the registry document, and note the image digest or binary version. A rollback needs both. -
Back up the stored-query store when
[stored_queries]is set, and FerroFED’s own store when[store]is set: copy theredbfile while no gateway has it open, or dump theferrofedschema of the PostgreSQL database (pg_dump --schema=ferrofed). The new release may migrate a store, and an older release refuses a store a newer one migrated. -
Run the new binary’s
config checkover the configuration, with the upgrade notes applied. It reads every file and secret asservedoes, binds no socket, and exits78naming each key it refuses. With the image:docker run --rm --volume ./ferrofed.toml:/etc/ferrofed/ferrofed.toml:ro \ --volume ./secrets:/run/secrets/ferrofed:ro \ ghcr.io/ferrohealth/ferrofed:<new version> config checkA key the new release renamed or removed is refused by name, with the key that replaces it, so fix each one the upgrade notes list before you roll out.
Then roll the new release out: docker compose up --wait with the new
compose.yaml, or a rolling update of the StatefulSet. Readiness answers
503 until the new process has loaded the configuration and the store.
Several replicas on one PostgreSQL store
A replica migrates FerroFED’s own store ([store])
when it starts, under an advisory lock, so replicas starting together apply
each migration once. Once one replica of a release that brings a new
migration has started, a replica of the older release refuses its next
connection to the store (Rollback).
When the upgrade notes name a new migration, upgrade every replica in one
rollout and expect the routes of the old replicas that need the store to
answer 500 until they are replaced. A release whose notes name none can be
rolled out replica by replica.
The compatibility policy
FerroFED has not released 1.0. Until it does, any release can change the configuration, and these rules bound how.
- A change that stops a configuration the last release accepted is in
the Upgrade notes. A key made mandatory, a value now refused, a table
moved: each is listed with what to set instead. CI runs the new build’s
config checkover the example configuration the last release attached, and refuses a change it rejects unless an upgrade note is pending. - A key can be renamed or removed in any release. Before 1.0 there is
no deprecation release: the release that renames or removes a key stops
reading the old one. It refuses the old key at start-up and in
config check, in the file and as aFERROFED__override: a renamed or moved key naming the key that replaces it, and a key removed with nothing in its place by its name. Its upgrade notes give the step. That refusal lives for the one release that renames or removes the key; from the next release on, the key is refused as any unknown key is, and the upgrade notes of the release that removed it stay the record. - A new key is optional, or the Upgrade notes say otherwise. A release that adds a key gives it a default that keeps the behaviour of the release before, unless the change is a security fix that cannot keep it.
- An older release refuses a key it does not know. Every table refuses unknown keys, so a gateway rolled back to an earlier release refuses a key added since. Remove the keys the newer release added before rolling back (Rollback).
- The environment follows the file. A
FERROFED__override names the same key as the file, so a rename applies to it too, and the refusal names the dotted key. - Stored data migrates forward only. A stored-query store records its schema version, is migrated forward in order when the gateway starts, and is never migrated back. A release refuses to start over a store a newer release migrated.
Only the newest release is supported. When a new release is published,
every earlier release stops receiving fixes: there are no maintenance
branches, no long-term-support line and no backports. A security fix ships
as a patch release of the newest release, with the fix alone or the reason
a functional change ships with it stated in the notes, and a published release is never changed, so upgrade to the newest release
to get the fix; upgrading is free
(SECURITY.md).
Upgrade notes by release
To v0.0.21, from v0.0.20
- Name every issuer: each
[[auth.issuer]]becomes an[auth.issuer.<name>]table, its name a lower-case letter followed by lower-case letters, digits and_, at most 64. Its[[auth.attributes]],[[auth.federation]]and[[auth.party]]tables move under it as[auth.issuer.<name>.attributes],.federationand.party, without theirissuerkey, and[auth.issuer.introspection]and[auth.issuer.assurance]become[auth.issuer.<name>.introspection]and.assurance. Renameprofile = "…"topreset = "…", and move every profile key (first_party_clients,delegates,act_represents_patient,token_types,client_claimsand the rest) into[auth.issuer.<name>.profile]. In each[credentials."<id>".credentials.onward]table,profileis nowpresetand thekeystable is nowprofile.[[trust.issuer]]and[[federation.contact_point]]keep naming an issuer by its identifier (Client authentication, #1915). - The
nlpreset and the fournl.*federation fields are gone. Map the claims the Mitz question reads toprofessional.hp_identifier(the UZI number),professional.hp_professional_role(the UZI role),provider.healthcare_provider_identifier(the URA) andprovider.facility_type(the organisation type) (Consent, #1915). - Delete
assertion_audiencefrom everycredentials.oauthtable. It is now an unknown key and refuses the start. A grant’ssecurity_profilefixes the assertion’saudandtyp: a plain grant names the token endpoint undertypJWT, and asecurity_profile = "fapi2"grant the issuer undertypclient-authentication+jwt. A table that setassertion_audience = "issuer"withoutsecurity_profile = "fapi2"now sends the token endpoint; setsecurity_profile = "fapi2"when its authorization server is a FAPI 2.0 one (Onward credentials, #1895). - Move
[auth] ca_fileto[auth.tls] trust_roots_file.auth.ca_fileis an unknown key and refuses the start, as it has since v0.0.19, and v0.0.21 reads[auth.tls], which v0.0.19 and v0.0.20 refused (Client authentication, #1929).
To v0.0.20, from v0.0.19
The keys v0.0.19 refused by name, the unit-suffixed keys such as
federation.per_node_timeout_ms, the url, credentials, tls and
timeout_ms keys of every outbound table that moved under its endpoint
table, a node’s user, password, password_file, oauth and onward
outside its nested credentials table, [trust.issuer.patient] act_is_representative, and the operator console’s [gateway] timeout_ms,
are now refused as unknown keys. Move them as the notes for v0.0.19 below
say before you upgrade.
- Add an
[[auth.attributes]]table withmapping = "iua"andauthorization_details_purposes = truefor everypersons,patientsormachinesissuer whose callers declare a purpose of use. Without it, every such caller is refusedpurpose-of-use-required. Apatientsormachinestable names no field butpurpose_of_use(Authentication, #1615). - Move a
[[trust.issuer]] professional_issuing_authority = "<claim>"to that table’sfields."professional.issuing_authority_name" = [{ claim = "<claim>" }]. The old key refuses the start, naming its replacement (#1615). - Give an imaging report receiver (
[[fhir.receive]]of the imaging category) FerroBRIDGE’s imaging report template at v0.0.24, and add the CKMCLUSTER.organisation.v1it slots to its archetypes. The imaging mapping this release ships does not compile against the earlier revision, and the gateway refuses to start with it. Both are vendored underdocs/specs/ferrobridge-imaging/(#1860). - Run
docker compose down -vonce before you start the quickstart on this release. Its FerroEHR 5.7.0 nodes need the professionalPERSONandROLEtemplates and the persons a quickstart volume from an earlier release does not hold (#1615). - A gateway that writes to a FerroEHR 5.7.0 node reaches it under the
caller from this release, through an onward lane of kind
personson each of the node’s endpoints. Once every FerroEHR endpoint has its onward lane, add the node’spersonsissuers, as Onward credentials says (#1615).
To v0.0.19, from v0.0.18
The keys v0.0.18 refused by name, the outbound TLS keys outside a tls
sub-table, a node’s oauth2 and fapi2 tables and mtls_alias_hosts, the
removed [trust.issuer] tables and client_tokens_act_for_professional,
and [stored_queries] url and url_file, are now refused as unknown keys.
Move them as the notes for v0.0.18 below say before you upgrade.
- Write the spans of time of
ferrohealth-smart0.15 as durations under keys that name no unit: on each[[auth.issuer]]clock_skew,jwks_max_age,jwks_refresh_intervalandtimeout;introspection.cache_max_age;[auth.dpop]max_ageandclock_skew; on each[credentials."<id>".credentials.oauth]refresh_margin,timeoutandprevious_key_overlap; and[onward.keys] max_onward_lifetime, until now a bare number of seconds. The old keys are refused as unknown keys (#1799). - Write
[auth] scopeless_subjectsentries as tables withissuerandsub(#1799). - Move
[trust.issuer.patient] act_is_representativetoact_represents_patient = trueon the[[auth.issuer]]ofkind = "patients". The old key refuses the start, naming its replacement. A patient token that carries an RFC 8693actclaim on an issuer without it is now refused as an invalid token (#1799). - In the operator console, write
[oidc] timeoutand[session]sign_in_timeout,idle_timeoutandabsolute_timeoutas durations, and move[oidc] ca_fileto[oidc.tls] trust_roots_file(#1799). - Move the
[server]keys offerrohealth-server0.8 to their durations and sizes:request_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeout,retry_after(whole seconds),body_limit,compression_min_sizeand[server.tls]reload_interval, as inrequest_timeout = "30s". The old keys (request_timeout_msand the others) are refused as unknown keys (#1799). - Move
[telemetry.otlp]client_identity_fileandtrust_roots_fileinto[telemetry.otlp.tls], which also takesmin_version(#1799). - Write every span of time and amount of data of FerroFED’s own sections
as a duration (
"30s","5min") or a size ("16MiB") under a key that names no unit:federation.per_node_timeout,overall_timeout,binding_ttlandmax_node_answer_size,federation.localization.timeout,gateway.bindings_drain_timeout,signing.node_jwks_cacheandrotation_overlap,emergency.window,config.pollandconfirm,store.timeoutandsweep_interval,fhir.document_url_lifetime,eehrxf.terminology.endpoint.timeout,pdqm.timeout,pmir.timeoutandcheck_interval,nl_gf.mitz.timeout,registry.mcsd.refresh_interval,deadlineandmax_size,audit.repository.spool_max_sizeandspool_write_timeout,audit.repository.endpoint.timeoutandretry.max_backoff, andxcpd.audit_repository.spool_max_size,spool_write_timeout,connect_timeout,send_timeoutandretry_max, with theFERROFED__overrides to match. Each old key (per_node_timeout_ms,window_s,spool_max_bytesand the others) refuses the start andconfig check, naming its replacement. The operator console writesgateway.timeoutin place ofgateway.timeout_ms(#1800). - Move the address, timeouts, TLS and credential of
[audit.repository]and[eehrxf.terminology]into their newendpointtable,ferrohealth-smart’s outbound table.[audit.repository]keepshostname,source_id,enterprise_siteand thespool_*keys, and[audit.repository.endpoint]takesurl,timeout(fromtimeout_ms),retry.max_backoff(fromretry_max_ms, the wait between two delivery rounds) andtls.[eehrxf.terminology.endpoint]takesurl,timeout(fromtimeout_ms),tlsandcredentials; one call is tried once unlessretry.max_attemptssays more. Each old key refuses the start andconfig check, naming its replacement (#1805). - Move a node’s
user,password,password_file,oauthandonwardfrom[credentials."<id>"]into its nested[credentials."<id>".credentials]table,ferrohealth-smart’s credentials table, with theFERROFED__CREDENTIALS__<ID>__CREDENTIALS__overrides to match.tls,nutsandonward_organisationsstay in the section. Each old key refuses the start andconfig check, naming its replacement. The operator console’s credentials form writes the nested table (#1806). - Move the NVI’s Nuts grant from
[nl_gf.nvi.credentials.nuts]to[nl_gf.nvi.nuts];[nl_gf.nvi.credentials]isferrohealth-smart’s credentials table, which refusesnutsas an unknown key (#1806). - Move the address, TLS and credential of every identity, localization and
consent service into its
endpointtable,ferrohealth-smart’s outbound table, as[audit.repository]and[eehrxf.terminology]moved:url,tlsandcredentialsof[[pixm.manager]],[pdqm],[pmir],[registry.mcsd],[nl_gf.nvi]and[nl_gf.mitz]go to[<table>.endpoint], and thetimeoutof[pdqm],[pmir]and[nl_gf.mitz](fromtimeout_ms) toendpoint.timeout. Each[[xcpd.gateway]]takes its own[xcpd.gateway.endpoint]with itsurl, and the shared[xcpd.tls]moves into thetlsof each gateway’s endpoint table. A table you leave partly written keeps its defaults: one try per call,1sfor PDQm and Mitz,5sfor PMIR and10sfor the others. The NVI’s Nuts grant stays in[nl_gf.nvi.nuts]. Each old key refuses the start andconfig check, naming its replacement (#1815). - The release asset
compose.yamlis now the self-contained quickstart. The gateway-only compose file of the production guide, which carried that name, is attached asgateway-compose.yaml: an operator who downloads it by name fetchesgateway-compose.yamland saves it ascompose.yamlbesideferrofed.tomlandregistry.toml, as Install and run shows (#1849).
To v0.0.18, from v0.0.16
v0.0.17 was tagged and never released; these are its notes, which v0.0.18 ships.
- Have a national contact point’s authorization server write the format of
the HP Identity Assertion’s
NameIDasehdsi.assertion.name_id_format, one of the three formats eHDSI SAML Profile 10.0.0 §2.1 allows.ferrohealth-smart0.9.4 refuses a contact-point token without it, as it refuses one without theNameID(Authentication, #1615). - Run
docker compose down -vonce before you start the quickstart on this release. FerroEHR 5.6.0 starts its audit store empty and refuses one that holds records an earlier release wrote, so the nodes do not start on aferroehr-pgdatavolume that FerroEHR 5.5.0 wrote (#1617). - The store applies migration 2, which adds
ferrofed.emergency_access, at the first start. A deployment that declares a national contact point and names its emergency purpose in[[access_log.emergency_purpose]]now denies a professional’s sixth emergency access in 24 hours; set[emergency]to tighten the limit, never to loosen it (#1631). [trust.issuer.national_contact_point]is removed, and a configuration that still sets it is refused, naming its successor. Declare the contact point as an[[auth.issuer]]ofkind = "federation"withsender_constraint = "required", an[[auth.federation]]table withcontact_point = true,mapping = "ehdsi", itscountriesand the constantprofessional.country_code,professional.issuing_authority_nameandprovider.issuing_authority_name, and a[[federation.contact_point]]naming the issuer, withcorrelation_headerandadditional_countriesmoved there. Have the contact point’s authorization server write the assertion’s attributes underehdsi, the TRC patient asehdsi.patient.id, and bind the token to the connector’s client certificate (National contact point, #1632).- With
[stored_queries] backend = "postgres", moveurlorurl_filefrom[stored_queries]to a new[store]table, pointed at the database the backend uses now, and setsslmode=requirein the connection string, withca_filewhen the database’s CA is not one of the platform’s roots. This release refuses[stored_queries] urlandurl_fileat start-up and inconfig check, naming each, and a[store]withoutsslmode=requireunder every profile. The gateway takes over the existing table with every definition it holds (FerroFED’s own store, #1636). - A gateway with a national contact point (
[[federation.contact_point]]) needs[store]too: give it a PostgreSQL database and role of its own, never a CDR’s. Without it this release refuses to start, namingfederation.contact_point[0]and[store](#1636). - A binary you build yourself no longer takes
--features postgres; drop the flag (#1636). - Write each issuer as an
[[auth.issuer]]table with itskind:personsfor your professionals,patientsfor an issuer whosepatient/grants[trust.issuer.patient]binds,machinesfor systems under the client credentials grant alone, orfederationwith its[[auth.federation]]table. Moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_msandrole_claimsfrom[auth]onto every issuer table they held for, and name the issuer’sprofilewhen it is not a standards-only server (entra,keycloak,oktaornl). The start refuses a section-level key and an issuer withoutkind, naming each (#1682). - On each
personsissuer, list your own applications infirst_party_clients, and a third-party client or an RFC 8693 actor indelegates; a person’s token through any other client is refused (#1682). - Move an introspected issuer from
[[trust.issuer]]to its own[[auth.issuer]]withmode = "introspection"and an[auth.issuer.introspection]table:endpoint, and the client authentication in[auth.issuer.introspection.client](client_id,client_secretorclient_secret_file). Keep its[[trust.issuer]]policy, without the introspection keys (#1682). - Rename
[metrics] scrape_userstoscrape_clientsand[pmir] feed_userstofeed_clients, naming the client ids of your Prometheus scraper and your PMIR Registry at an[[auth.issuer]]the gateway trusts, and remove every[[auth.basic.users]]entry: the gateway admits no Basic caller, and a configuration that still writes one refuses to start, naming the user. Give the scraper anoauth2client-credentials setup in its scrape job, and the Registry a client-credentials grant at that issuer (#1704). - Move
[trust.issuer.assurance]to the issuer’s[auth.issuer.assurance]table (claim,minimum, and alevelsmap from each claim value tolow,substantialorhigh), move[trust.issuer.requester]to thenl.professional_number,nl.role,nl.uraandnl.organisation_typefields of the caller issuer’s[[auth.federation]]table, and removeclient_tokens_act_for_professional. Each removed key refuses the start, naming its replacement (#1704). - Remove any user name or password from an
[[auth.issuer]]URL, and keep only public keys in an issuer’sjwks_file:ferrohealth-smart0.13.0 refuses the start on either (#1748). - A national contact point’s authorization server that answers the exchange
profile authenticates the national connector before it reads an
assertion, keeps one record of admitted exchanges that every replica
shares, and refuses a replay
invalid_grant(National contact points, #1748). - Move every
[credentials."<id>".oauth2]and[credentials."<id>".fapi2]table to[credentials."<id>".oauth], and the section’smtls_alias_hostsinto it. This release refuses each removed key at start-up and inconfig check, naming theoauthkey that replaces it (Onward credentials, #1749):- The grant’s key moves from
[signing]to theoauthtable’s ownprivate_key_file, withprevious_private_key_fileandnext_private_key_filefor a rotation. The gateway publishes it in its JWK Set beside the[signing]keys. Pointingprivate_key_fileat the[signing]key file keeps thekidthe node’s authorization server knows; a new key needs itskidregistered there, or the JWK Set fetched again, before you switch. grant = "token_exchange"becomes anonwardtable beside theoauthtable, withkind = "persons", the exchanged tokens’issuer,audiencesandindicatorsnaming the node in place ofresource,actor_assertion = true, and[onward.keys] max_onward_lifetime. The node’s authorization server must issue a JWT access token that names that issuer, anaudamongaudiences, and the gateway asactor client; an opaque exchanged token now fails the node.- A
fapi2table becomes anoauthtable withsecurity_profile = "fapi2",client_auth = "private_key_jwt",assertion_audience = "issuer",issuer, andclient_key_fileandprevious_client_key_filerenamedprivate_key_fileandprevious_private_key_file. tls_client_certificate_bound_access_tokens = truebecomescertificate_bound = true. A grant that authenticates by, or binds its tokens to, the TLS client certificate presents the node section’stlsidentity;client_certificate_file,client_key_fileandca_filein itsoauthtable are refused.
- The grant’s key moves from
- Give every node’s
oauthgrantclient_auth = "private_key_jwt","tls_client_auth"or"self_signed_tls_client_auth". A node’s grant that namesclient_secret_basic,client_secret_post,client_secretorclient_secret_file, or leavesclient_authunset, is refused, naming the key (§13.1, N25). Identity service grants keep their client secret (#1749). - Remove
signing.assertion_lifetime_s: no[signing]key signs a client assertion any more, and every assertion lives 300 seconds. A file that sets it is refused at start-up, naming it.signing.rotation_overlap_smust be at least 300 plussigning.node_jwks_cache_s(#1749). - Move each table’s outbound TLS keys,
client_identity,client_identity_fileandtrust_roots_file, into itstlssub-table:[[pixm.manager]]to[pixm.manager.tls], and likewise[pdqm.tls],[pmir.tls],[registry.mcsd.tls],[xcpd.tls],[nl_gf.nvi.tls],[nl_gf.mitz.tls],[audit.repository.tls],[eehrxf.terminology.tls]and[credentials."<endpoint id>".tls]. This release refuses a key left on its table at start-up and inconfig check, naming thetlskey that replaces it (Mutual TLS to the identity services, #1750). - The gateway speaks TLS 1.3 alone to every outbound service unless the
table’s
tlssub-table lowers it withmin_version = "1.2". Set it on[xcpd.tls]when a MyHealth@EU responding gateway speaks only TLS 1.2, the minimum eHDSI Section II Security Services 10.0.0 §5.9.1 and eHDSI Cryptographic Algorithms 9.0.0 admit between NCPeH, and on any other table whose service speaks no TLS 1.3 (A MyHealth@EU route, #1750). - Move
client_identity,client_identity_fileandtrust_roots_fileof[xcpd.audit_repository]into itstlssub-table,[xcpd.audit_repository.tls], as every other outbound table took them with #1750; the sub-table also takesmin_version,"1.3"unless lowered to"1.2". This release refuses a key left on the table at start-up and inconfig check, naming thetlskey that replaces it (The audit repository, #1766).
To v0.0.16, from v0.0.15
- Write
server.public_url,server.replicaandserver.bindings_drain_timeout_msasgateway.public_url,gateway.replicaandgateway.bindings_drain_timeout_ms, andserver.overload_retry_after_sasserver.retry_after_s, with theFERROFED__overrides to match. This release refuses each old key at start-up and inconfig check, naming it, as it refuses any unknown key (#1490). - Remove
[server] site_rootand itsFERROFED_CONSOLE__SERVER__SITE_ROOToverride from the operator console’s configuration: the console serves no site bundle, and this release refuses the key at start-up and inconfig check, naming it (#1512). - Nothing in the operator console’s sign-in configuration has to change
(#1504). The
[oidc]endpoints are now optional: removeauthorization_endpoint,token_endpointandjwks_urito have the console read them fromissuer’s discovery document when it starts, which then needs the provider reachable at start. A reverse proxy in front of the console passes/sessionthrough to it.
To v0.0.15, from v0.0.14
- Move
server.public_url,server.replicaandserver.bindings_drain_timeout_msto a new[gateway]table, and renameserver.overload_retry_after_stoserver.retry_after_s. That release still read each old key and named it inconfig checkand the start-up log; FerroFED 0.0.16 refuses it. TheFERROFED__overrides follow, asFERROFED__GATEWAY__PUBLIC_URL(#1408). - Remove
base_path = "/", or writebase_path = "": the root is the empty path, and a/is refused. Give[server.caller_rate]bothrequests_per_secondandburst, which no longer default (#1408). - Move the OTLP keys into one
[telemetry.otlp]table:endpoint,sample_ratio,trust_roots_file,client_identity_file, andtracesandmetrics, both on unless set. The old[telemetry]and[metrics]OTLP keys and[telemetry] logged_query_parametersare refused as unknown, and an inlineclient_identityis no longer read (#1397). - A
[server.tls]or[metrics.tls]table withclient_ca_fileneedsclient_auth = "required"beside it to keep requiring a client certificate. A listener whose clients speak only TLS 1.2 needsmin_version = "1.2"(#1397). - Point a liveness probe at
{base}/health/liveness.{base}/healthfollows readiness now and answers503while the gateway boots or drains, and{base}/health/readinesslistsindicatorsas an array. The example Kubernetes manifests probe the new routes (#1397, #1445). - A probe, log rule or alert that matched the
readyornot readyline offerrofed healthcheckmatcheshealthyandunhealthyinstead (#1453). - A client that read
messagefrom an error body outside the FHIR face readsdetailof the RFC 9457 problem details document;codeandrequest_idstay (#1412). - A secret file loses only its trailing line ending: remove any space or tab that sits at either end of a secret by accident (#1397).
- A log alert on the panic line matches the target
ferrohealth_telemetry::panicand itsfileandlinefields (#1421).
To v0.0.14, from v0.0.13
- Remove
[dev]from your configuration:[[dev.crossref]]and[[dev.consent_denied]]are refused at load, naming the table. Resolve patients through a PIX Manager with[[pixm.manager]], as the quickstart does with FerroPIX. With thebinding-nlfeature the gateway carries the IHE binding too, because the Dutch binding resolves patients through FerroPIX’s PIXm Manager (#1377). - A dispensation sent to
POST {fhir-base}/MedicationDispensemust carry its own business identifier, anidentifierwith asystemand avalue; one without it is refused422required, namingMedicationDispense.identifier. Have the pharmacy systems and the national connector that send dispensations through the gateway set it (#1346). - A verified HTTP Basic credential of
[[auth.basic.users]]is now kept for 300 seconds by default. Setauth.basic.cache_ttl_seconds = 0to check every request, as before (#1390). - An access record writes its security labels once, on its
ehds-categoriesandoriginentities, and nometa.security. A repository rule or search that filtered on_securityreads the entities’securityLabelinstead (#1390). - The quickstart runs FerroPIX beside the gateway, and its nodes run
FerroEHR 5.5.0. If you edited
compose.yamlor the quickstart’s FerroPIX file, carry their renames over as the changelog lists them, and rundocker compose down -vonce before the first start (#1377, #1386).
To v0.0.13, from v0.0.12
- The Kubernetes example moved to
deploy/kubernetes/base/: apply it withkubectl apply -k deploy/kubernetes/basein place ofkubectl apply -f deploy/kubernetes/. Its NetworkPolicy now admits only your reverse proxy’s namespace (ingress-nginxuntil you edit it) and the console to the gateway port, so a client inside the cluster that called the gateway directly needs a peer of its own; the StatefulSet’sterminationGracePeriodSecondsis 50 and its governing Service is the newferrofed-admin. Kubernetes refuses a change of a StatefulSet’sserviceName, so runkubectl delete statefulset ferrofed --cascade=orphanbefore you apply; the pods and their audit spool claims stay, and the new StatefulSet adopts them (#638). - Each
[[fhir.receive]]names, independencies, every package of itspackage’s dependency closure (each a.tgzor an unpacked directory), and the package of the MyHealth@EU value sets its profiles bind. A[[fhir.receive]]whose packages lack one a manifest names is refused at start and byconfig check, naming the missing package. For the HL7 Europe Patient Summary, the book’s receiving page lists the packages (#808). - The quickstart
compose.yamlnow sends the usage report by default, as the release’s compose file has since v0.0.12, with its instance id on the newferrofed-statevolume. SetFERROFED__USAGE_REPORT__ENABLED=false, andFERROEHR__USAGE_REPORT__ENABLED=falsefor the four nodes, in your shell or.envto keep it off (#1296). - A bookmark of the operator console’s
/configurationnow opens the Federation behaviour settings tab; the members are at/configuration/members(#1235).
To v0.0.12, from v0.0.11
- The release’s compose file and the Kubernetes example now set
FERROFED__USAGE_REPORT__STATE_DIR, so a gateway started from them sends the installation report to FerroPULSE. SetFERROFED__USAGE_REPORT__ENABLED=falsebefore you upgrade to keep it off (#1122). [auth]is now theferrohealth-smartsection every FerroHEALTH product reads (#1174). Move each issuer’s FerroFED policy (backend_clients,demographic_clients,client_tokens_act_for_professional,professional_issuing_authority,[auth.issuer.patient],[auth.issuer.requester],[auth.issuer.assurance],[auth.issuer.national_contact_point]and an introspected issuer’sintrospection_endpoint,client_idandclient_secret_file) to a[[trust.issuer]]entry naming the sameissuer, andauth.mode,[auth.edge]and[auth.purpose_of_use]totrust.mode,[trust.edge]and[trust.purpose_of_use]. Dropjwks_urifrom each issuer: the key set is read from the issuer’s RFC 8414 metadata, or fromjwks_file. Replace each issuer’soperator_scopewith the oneauth.product_scope, a string starting with__or a full URI you control.auth.audienceis a list, and the clock skew, key set and timeout keys areclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_ms.- Every static bearer token is gone (#1163). Replace
bearer_tokenandbearer_token_filein a[credentials."<endpoint>"]section or a service’s credentials withuserandpassword_file, or with anoauthtable, the client credentials grant offerrohealth-smart; Mitz, the NVI and the terminology server takeuserandpassword_file. Replace[metrics] scrape_token_filewithscrape_users, naming users of[[auth.basic.users]]whose Argon2idpassword_hash_fileyou write, and give Prometheusbasic_auth. Replace[pmir] feed_token_filewithfeed_users, naming the Registry’s own[[auth.basic.users]]user, and give the Registry its password. - An
oauth2section that asks for a plain client-credentials token, with no token exchange, noDPoPkey, no binding to or authentication by the TLS client certificate and an assertion naming the token endpoint, is refused: move it to anoauthtable, whoseprivate_key_jwtsigns with its ownprivate_key_file. - A log filter that names
ihe_iti::atna(the audit spool and forwarder) namesihe_atna::atnainstead; the events are the same. - The operator console is now
ferrofed-console(#1219). Pullghcr.io/ferrohealth/ferrofed-consolein place ofghcr.io/ferrohealth/ferrofed-viewer, rename everyFERROFED_VIEWER__<SECTION>__<KEY>override toFERROFED_CONSOLE__<SECTION>__<KEY>andFERROFED_VIEWER_CONFIGtoFERROFED_CONSOLE_CONFIG, and run the binary asferrofed-console. The session and theme cookies are renamed, so every operator signs in once more after the upgrade. - If you edited the
ferroehr-configblock of the quickstart’scompose.yaml, FerroEHR 5.3.2 refuses the 4.3.9 Basic user keys at boot: renameusernametouser, give each user itsscopes(the quickstart grantsuser/composition-*.cruds,user/template-*.cruds,user/aql-*.crudsand__ferroehr.platform), and move each user’srolesto[authz.rbac.basic_roles]keyed by the user (#1226). - Bookmarks of the operator console’s
/members,/routingand/federationpages answer404: use/organisations, a node’s Routes tab under/organisations/{org}/{node}/routes, and/self-description(#1230). Each preference is now a cookie of its own (ferrofed_console_theme,ferrofed_console_density,ferrofed_console_motionand the others); the theme cookie isferrofed_console_themein place of 0.0.11’sferrofed_viewer_theme, so each operator chooses the theme once more. A deployment that builds the site bundle itself runscargo leptos build --split, asscripts/release/console-site.shdoes.
To v0.0.11, from v0.0.10
- If the operator console’s
[oidc] scopeslistsoffline_access, remove it from the list and set[oidc] offline_access = trueinstead (#643). The console now refuses the scope in the list, and the new setting asks for it withprompt=consentso the console can refresh the operator’s access token. - Check the templates of every member that receives documents on the FHIR
face (
[[fhir.receive]]) before you upgrade (#714). The mapping now takes a composition’scategoryfrom the template: its assumed value, its one admitted code, oreventwhen the template leaves the category open. A template that admits severalCOMPOSITION.categorycodes and assumes none now refuses every received document of its category with a422(MissingRequiredSuffixon<root>/category|code), whereeventwas taken before. Give the template’scategoryan assumed value (AOM 1.4assumed_value) and upload it to the member again. ferrofed_node_requests_totalcarries a new label,class:memberfor a member’s own answer or failure,client-errorfor a4xxit answered a routed request with (#982). Such a4xxnow counts asoutcome="node-error", where it wasactive. The shippedFerroFEDMemberFailingrule leavesclass="client-error"out, so it pages on the same member failures as before. A rule or a panel of your own that readsoutcome="node-error"should leave it out too; take the rules and the dashboard this release attaches.
To v0.0.10, from v0.0.9
- A gateway with a registry outside the development profile must set
[audit] destination(#623, #693), and it must be"repository"with an[audit.repository]table:"log"is refused there, because it records no caller and no patient and so cannot hold the access log Regulation (EU) 2025/327 Annex II 3.2 asks for. Point the gateway at your Audit Record Repository, withspool_diron durable storage, before you upgrade. - Set
server.shutdown_timeout_msto at leastserver.request_timeout_ms, or remove it so it takes the request timeout (#625).config checkandservenow refuse a shorter drain, and the v0.0.9 example configuration set 10000 beside a request timeout of 30000. Then give the container longer to stop thanserver.drain_delay_msplus the drain: the examples usestop_grace_period: 40sin Compose andterminationGracePeriodSeconds: 45in Kubernetes. - If you run the Kubernetes example, move from
deployment.yamltostatefulset.yaml(#628). Replace theencryptedstorage class with your own. Wait until the dependency report,GET {base}/operator/dependencieswith an operator token (#751), readsupfor the audit repository, so the spool on the oldemptyDiris drained, then delete the Deployment and apply the StatefulSet. - The listeners need no change: unset,
[server.tls]and[metrics.tls]leave them on plain HTTP as before (#632). Once you set either, remove it before rolling back to an earlier release, which refuses it as an unknown key. - If
[metrics] listennames an address other than a loopback one outsideprofile = "development", set[metrics] scrape_token_fileto a file holding a scrape token and give your Prometheus the same token withauthorization.credentials_file, or set[metrics.tls] client_ca_file(#635). Without either,serveandconfig checkrefuse the configuration. The Kubernetes example reads the token from themetrics-scrape-tokenkey of theferrofed-secretsSecret. - To run the admin listener’s stored-query distribution outside the
development profile, from the gateway’s host or another, set
operator_scopeon the[[auth.issuer]]your operators use and send a token carrying it (#629, #635). Without one it answers401 unauthenticated, from a loopback peer as from any other, where a loopback peer was served before. - If a backend client reads patient data through the gateway with a
system/scope or a token whosesubis itsclient_id, setclient_tokens_act_for_professional = trueon its[[auth.issuer]]and have its tokens name the professional it acts for inextensions.ihe_iua.national_provider_identifier(#661). Until both hold, such a request is answered401 natural-person-required. Then set[auth.issuer.assurance]on each issuer whose tokens reach patient data; without it no assurance level is required, andconfig checknotes the issuer. - A document received on the FHIR face whose codings carry no
displayis now refused with a422unless[eehrxf.terminology]names a terminology server to look the displays up (#687). Senders that omit displays need the server configured. - Read the dependency report at
GET {base}/operator/dependencieswith a token that carries your issuer’soperator_scope(#751).GET {base}/health/dependenciesis no longer served and answers404, so move every monitor that read it, and give it an operator token.ferrofed reportreads the report with--operator-token-file. A proxy rule that kept/health/dependenciesinside can go; the health family left open,{base}/healthand{base}/health/readiness, names no member. - Move any stored-query definition you hold in the namespace
eu.ferrofed.eehrxf, or a namespace under it, to a namespace of your own before you upgrade (#776). The gateway now reserves that namespace for its own read-only queries: aredbor PostgreSQL store, or a definition file, holding one there refuses the start, andconfig checkrefuses such a file. - If you wrote an
[access_log]map on a development build, rewrite its categories with the codes of HL7 Europe’sEEHRxFDocumentPriorityCategoryCS(#824), which are case-sensitive:patient-summarybecomesPatient-Summaries,electronic-prescriptionElectronic-Prescriptions,electronic-dispensationElectronic-Dispensations,medical-imagingMedical-Imaging,medical-test-resultLaboratory-Reportsanddischarge-reportDischarge-Reports, in[access_log.templates],[access_log.archetypes]and the keys of[access_log.retention.categories]. Declare each national category innational_categoriesas<system>|<code>, the absolute URI of your Member State’s code system (or one you control) and its code, and name it the same way in the map and the retention table. The old spellings and a national code without a system are refused when the configuration loads. A search of your Audit Record Repository for a category matches theehds-categorydetail<system>|<code>, never the bare code. - The registry document refuses an
[[organisation]]that manages no[[endpoint]](§8.1: “an Organization manages 1..* Endpoints”), soconfig checkand the gateway’s start fail on it, naming the organisation (#874). Give the organisation an endpoint it manages, or remove it. A registry read from an mCSD directory or in the FHIR form keeps such an organisation, and selecting it still answers404withno-destination.
To v0.0.9, from v0.0.8
- If you run the operator console with
[session] secure_cookie = false, either set it totrueor make[oidc] redirect_urianhttpURL on a loopback host: the console refuses any other combination (#615). - A stored-query store that holds a definition naming its patient by a
literal, written past the gateway by a restore or a manual insert, refuses
the start (#586). Remove that row, or the file, and store the definition
again with a
$parameter. - The released binary and image carry both bindings, as before. A build of
your own with
--no-default-featuresneeds--features binding-iheorbinding-nlfor the sections it uses, or refuses them as unknown keys (#489). - The
configuration resolvedlog line no longer carries the registry directory, PIX Manager, PMIR and PDQm fields; they are on the IHE binding’s ownbinding configuredline (#489). Update a log query that reads them.
To v0.0.8, from v0.0.7
- Every caller authenticates. A gateway that federates refuses to start
without an
[auth]table that trusts at least one issuer ([[auth.issuer]]andauth.audience), and every request to the ITS-REST surface andOPTIONS {base}/needs an access token from that issuer with a SMART on openEHR scope and a purpose of use, unlessauth.purpose_of_use.required = false(#80; Client authentication). Issue tokens to your clients before you upgrade. [signing]is mandatory whenever a registry is configured, byregistry.documentor[registry.mcsd]: add a P-384 or P-256 signing key and thejwks_uriit is published at, and make{base}/.well-known/jwks.jsonreachable from the nodes’ authorization servers (What a node is told about the caller).[audit] destinationis mandatory for a production gateway with[pixm],[registry.mcsd]or[pmir]. Set"log"to keep the behaviour of v0.0.7 while you add an Audit Record Repository;"off"is refused outside development (#486; The audit trail).[xcpd] auditis mandatory:"log","repository", or"off"under the development profile alone (#410). With"repository",[xcpd.audit_repository] spool_diris mandatory outside development and[xcpd] home_communityis mandatory.- The ADMIN API under
{base}/v1/admin/answers403 operation-refused, where it answered501.
Unreleased
The pending notes are the *.upgrade.md files under
changelog.d/,
which the next release lists under its Upgrade notes.
Check before upgrading: a receiving member’s template that admits several
COMPOSITION.category codes and assumes none now refuses every received
document of its category (MissingRequiredSuffix on <root>/category|code),
where the composition took event before. Give the template’s category an
assumed value (The template’s category).