Repository navigation
Ferrum Nexus v0.5.1
Ferrum Nexus v0.5.1 — release notes
Released 2026-10-08. Paired with Ferrum Edge v0.9.14, unchanged from
v0.5.0. The pair is recorded in
release/compatibility.env, which the README
quickstart, the Compose example, the getting-started walkthrough and the real-stack
acceptance CI job all read, so every one of them runs the same gateway build.
v0.5.1 is a security and bug-fix release: a trusted password reset revokes the
credentials an account already held, email verification alone no longer authorizes
single sign-on linking, publishing refuses an upstream that loops back into the
gateway, gateway access cleanup trusts only Edge's own "not found", and the
data-plane attestation counts a restarted data plane once. It upgrades a v0.5.0
database in place with one forward migration; the gateway and its database are
unchanged. Read the upgrade before starting: it requires
every older Nexus writer to be stopped and drained, and several changes alter what
operators and clients see. The full list of changes is in the
changelog.
Supported combination
| Component | Version | Pinned as |
|---|---|---|
| Ferrum Nexus | v0.5.1 |
Git tag v0.5.1; build docker/Dockerfile from that checkout |
| Ferrum Edge | v0.9.14 |
ferrumedge/ferrum-edge:v0.9.14@sha256:15442f1b1d1758023fe871fe57be50f19caf34bbe6c499a6812f4ffd0da5e3f8 |
| Node.js | ^22.22.2 || ^24.15.0 || >=26.0.0 |
Source installs; the image uses a digest-pinned Node 22 base (22.23.3) |
| Nexus database | PostgreSQL 17 (Compose sample) | Also supported: SQLite, MySQL, MongoDB replica set — see schema and upgrades |
- Ferrum Edge
v0.9.14is the
published release
(tag commit9bd4d5f9caa4ebe8f0ea13e76d8a6e2172eaca7d), the same buildv0.5.0
paired with. The digest above is the multi-architecture image index; it resolves
tosha256:12a8cd56090c0d4511bb3015b240e606b1b87989c644157566b8f6b6f635b3c2on
linux/amd64and
sha256:19d2886ed8c192cb0daba48ef0a27a0cd0526449dac74bf9438502322aabd9f2on
linux/arm64. Both were checked against the Docker Hub registry on
2026-10-08. Nexus vendors the matching contracts,contracts-edge-0.9.14
(ddbdd845733b7046c4393ac951011dafb774db33). - No Edge upgrade.
v0.5.1makes no change on the Edge side: keep running
Edgev0.9.14on its existing database. The
v0.5.0notes
describe what Edgev0.9.14changed. - Other Edge versions are unverified. Nexus
v0.5.1is tested only against
Edgev0.9.14. It still reads Edgev0.9.13's answers, asv0.5.0does, but
run the pinned pair. Edgev0.9.12or earlier is refused. - No prebuilt Nexus image. The release is a tagged source build: the
Dockerfile uses a digest-pinned Node 22 base in both stages andnpm ci
against the committed lockfile. The tag, the base digest and the lockfile are
the reproducible inputs; byte-for-byte image equality across Docker platforms
is not promised. Record the local image ID you build with each deployment.
Highlights
- A trusted password reset revokes the credentials an account already held.
The first reset that gives an account a trusted proof of its address revokes
every credential of the account and its applications, durably and with retry,
and cancels the account's pending access requests. See
behaviour changes. - Single sign-on links an existing account only on a trusted proof. Redeeming
an email-verification link no longer authorizes linking. - Publishing refuses an upstream that loops back into the gateway, even with
NEXUS_ALLOW_PRIVATE_UPSTREAMS=true. - The data-plane attestation counts a restarted data plane once. A data plane
counts towardNEXUS_EXPECTED_DATA_PLANESonly once it has settled. - Gateway access cleanup trusts only Edge's own "not found", and a failed grant
revocation keeps the grantee's pending tool request. - Credential and notification writes are rate-limited per account.
Install
From a clean shell, with Docker Compose v2 and openssl:
git clone https://github.com/ferrum-edge/ferrum-nexus.git
cd ferrum-nexus
git checkout --detach v0.5.1
cp docker/docker-compose.example.yml docker-compose.yml
set -a
. ./release/compatibility.env
set +a
export NEXUS_SECRET_KEY=$(openssl rand -hex 32)
export NEXUS_DB_PASSWORD=$(openssl rand -hex 16)
export FERRUM_ADMIN_JWT_SECRET=$(openssl rand -hex 32)
export FERRUM_BASIC_AUTH_HMAC_SECRET=$(openssl rand -hex 32)
docker compose up -dSave the four secrets in a secret manager before going further: a restart or
restore needs the same values. The portal is at http://127.0.0.1:8787 and
docker compose logs nexus prints the first-run bootstrap token. The
getting-started walkthrough continues from there to a
published API and an authenticated request through the gateway.
Upgrading from v0.5.0
v0.5.0 is the supported upgrade source. A v0.4.0 or older database also
upgrades in one run (CI covers every release), but read the
v0.5.0 notes
first: an upgrade from v0.4.0 also upgrades Edge to v0.9.14, in the same window,
and has its own prerequisites. From v0.5.0, only Nexus changes. Follow the
production upgrade procedure:
- Check the prerequisites.
- Node. Unchanged since
v0.4.0: a source install needs Node
^22.22.2 || ^24.15.0 || >=26.0.0. The container image carries Node
22.23.3. - Edge. Unchanged: Edge
v0.9.14, as pinned forv0.5.0. - Upstreams on the gateway's host. Find any API whose upstream names or
resolves to the gateway's public URL,FERRUM_GATEWAY_PUBLIC_URLor the
Admin API host, or, when any of those is a loopback address, to any loopback
address. Its next publish, revision, upstream change or gateway restore is
refused; see behaviour changes. - Proxies in front of Edge. A proxy between Nexus and the Admin API must
pass Edge's404bodies and theDateheader through unchanged.
- Node. Unchanged since
- Stop and drain every Nexus instance, request handlers and background
workers alike. Older and newer writers must never run together:
013_account_recovery_jobsadds the table that records the revocation a trusted
password reset owes. Av0.5.0instance neither writes that row when it
completes a reset nor checks it before issuing a credential, so it would skip
the revocation or issue a credential while one is owed, and it runs no worker to
drain the table. - Back up Nexus and Edge together, as one point in time, following the
backup and restore runbook. This backup
is your rollback. - Run the migration once from the new Nexus image
(node server/dist/db/migrate-cli.js). It applies
013_account_recovery_jobs; re-running it is safe. Nexus also migrates at
startup, so a single-instance deployment may skip this step. - Start
v0.5.1on every instance. Verify it as the procedure says:
schema_migrationslists001_initialthrough013_account_recovery_jobs;
GET /api/health/edge, read as an administrator, reportsstatus: "ok"and
public_egress_guaranteed: truefor a local public-only data plane or a fully
attested control plane; and a known client still calls an API through the
gateway with its existing credential. On a control-plane/data-plane pairing,
health can readdegraded(an administrator reads
backend_egress_unverified) for up to a minute after Nexus starts, and a
backend write refused meanwhile carriesdetails.data_plane_attestation
data_plane_recently_connected; see
behaviour changes.
On the Compose stack, from the checkout you installed from, with the four
secrets you saved at install time exported again (never newly generated
values):
docker compose stop nexus
git fetch --tags origin
git checkout --detach v0.5.1
set -a
. ./release/compatibility.env
set +a
docker compose up -d --buildTake the paired backup (step 3) after docker compose stop nexus and before
docker compose up -d --build. The Edge image is unchanged, so Compose keeps the
running gateway and its ferrumdata volume as they are, and Nexus migrates the
retained pgdata database when it starts.
What the migration does, on every backend:
013_account_recovery_jobsadds theaccount_recovery_jobstable (a
collection with the same two indexes on MongoDB): at most one row per account,
holding the credential revocation a trusted password reset owes until a worker
lands it, with a foreign key touserson SQL backends that cascades on delete.
It only adds an empty table and copies no data, so no retained account owes a
revocation after the upgrade. On MySQL it is a replayable
CREATE TABLE IF NOT EXISTS.
Behaviour changes to plan for
All are listed in the changelog.
- The first trusted password reset revokes existing credentials. A completed
POST /api/auth/reset-passwordon an account with no recorded proof of its
current address, or only an email-verification proof, records a trusted proof
and, in the same transaction, cancels the account's pending access requests and
queues the revocation of every credential held by the account and its
applications, a provider's API test-consumer credentials included. After the
upgrade this applies to most retained accounts: every account that has not yet
completed a reset or been provisioned or linked by an identity provider for its
current address. Itsauth.password_resetaudit row records
credentials_revocation_pending: trueandcancelled_access_requests. Tell
users that a password reset can end their API keys, and that they re-issue them
and re-request access afterwards. - Password resets completed before the upgrade are not revisited.
v0.5.1
does not retroactively revoke credentials or cancel requests for accounts whose
password was reset onv0.5.0or earlier; the migration copies no data. Review
the accounts whoseauth.password_resetaudit rows predate the upgrade, and
revoke or deny anything among their credentials, applications and pending
requests that the account holder does not recognise. - Issuance answers
409 CONFLICTwhile a recovery is pending. Issuing or
rotating a credential for the account or its applications, and issuing a
provider's test-consumer credential, is refused with409 CONFLICTuntil the
revocation lands. A worker retries an unreachable gateway with a backoff capped
at 5 minutes. After 8 failed attempts the account may issue again, and
credential.recovery_stalledis audited for an administrator; when the
revocation finally lands it spares credentials issued after that point. A
revocation it cannot place without emptying a credential type that holds another
account's keys stalls for an administrator to reconcile. Watch for
credential.recovery_stalledand forcredential.revokerows with
reason: "account_recovery". - Email verification alone no longer authorizes single sign-on linking. With
link_existing_accountson, an existing account is linked only on a proof that
a completed password reset or an identity provider recorded. An account verified
only by link, including every account verified that way underv0.5.0, is
refused (account_exists) until its holder completes a password reset, which
also triggers the revocation above. Manual role changes now check linked identity
trust at every privilege increase, includingadmintosuper_admin. - Publishing refuses an upstream on the gateway's own origins. Publish, a
PATCHofupstream_url, a revision that moves a proxy following its document,
and a gateway restore answer400 SPEC_INVALIDwithdetails.reason
gateway_originwhen the upstream names or resolves to any of the gateway's
origins: the storedgateway.public_url,FERRUM_GATEWAY_PUBLIC_URLand the
Admin API host fromFERRUM_ADMIN_URL, all of them together. The comparison is
by host, not port. Addresses are canonicalized first, so an IPv4-mapped, NAT64
or 6to4 form of the gateway's address matches, and every loopback or unspecified
address (127.0.0.0/8,0.0.0.0,::1,::) counts as one host. The gateway
origins resolve through the system resolver, which honours/etc/hosts, so
localhostand other names defined there work; each lookup is bounded at
5 seconds and an answer is cached for 30. A gateway origin that cannot be
resolved fails the write closed withgateway_unresolvable. The check runs even
withNEXUS_ALLOW_PRIVATE_UPSTREAMS=true, so a development or single-host
deployment whose gateway is on loopback can no longer publish a loopback
upstream. Proxies already deployed are not touched until their next such write. NEXUS_EXPECTED_DATA_PLANEScounts only settled data planes. A data plane
counts once it has existed for 60 seconds, by which time Edgev0.9.14has
dropped the stale stream of a process it replaced: either this Nexus process saw
itsnode_idlisted that long ago, or the answer carries the gateway'sDate
header and thenode_id's earliestconnected_atis 90 seconds old on both
Nexus's clock and that header. Until enough data planes count, health is
degraded(an administrator readsbackend_egress_unverified) and backend
writes are refused withdetails.data_plane_attestation
data_plane_recently_connected, ordata_plane_clock_skewwhen a
connected_atcontradicts the clocks. Expect that for about a minute and a half
after a data plane restarts, unless enough others already count, and after Nexus
itself starts while data planes are that new. TheDateheader must reach Nexus
as the control plane wrote it: a reverse proxy that replaces it with its own
clock defeats the check, and without the header Nexus counts only data planes it
has itself seen for 60 seconds, so writes are refused for the first minute after
every Nexus start. Keep Nexus and the control plane on synchronized time. The
value itself is unchanged: the namespace's whole data-plane inventory. See
CP/DP pairings and data-plane attestation.- A consumer counts as gone only on Edge's own
404. Gateway access cleanup,
and the rollback of a failed revocation, read a404as absence only when its
body is Edge'sConsumer not foundanswer. Any other404, such as an unknown
route or a proxy's error page, now fails with502 EDGE_PROTOCOL_ERROR
(details.reasonunconfirmed_absence) so the cleanup is reported and retried
instead of counted as removed access. PointFERRUM_ADMIN_URLat the Admin API
itself, or through a proxy that passes its404bodies through. - A restored grant restores its pending tool request. When a revocation the
gateway refused is rolled back, a pending tool request it cancelled returns to
pending;access.revoke_rollbacknames it intool_request_restored, or
recordstool_request_skipped: "account_recovery"while a recovery of the
grantee is outstanding. - New rate limits. Issue, rotate and revoke under
/api/credentialsallow 20
requests a minute per route and account, andPOST /api/notifications/read60 a
minute per account; past them,429. Like every Nexus rate limit, they apply
only withNEXUS_RATE_LIMIT_ENABLED(the default) and count per process. A
notification read that changes nothing no longer writes an audit row. - New audit action and details:
credential.recovery_stalled;
credential.revokewithreason: "account_recovery"and, where a delete could
not be placed,placement: "whole-type-fallback"; theauth.password_reset
fields above; and theaccess.revoke_rollbackfields above. Update any tooling
that reads the audit log.
Rollback
Rolling back to v0.5.0 re-opens the weaknesses this release closes (see
security), so prefer fixing forward. Settle recovery journals before
rolling back.
Rollback is a restore of the backup taken in step 3, Nexus and Edge together:
restore the Edge database and keep running Edge v0.9.14 on it, and restore the
Nexus database and run v0.5.0 on it. Never run v0.5.0 over a database v0.5.1
migrated: it would ignore owed revocations and issue credentials while one is owed.
Every post-upgrade change is lost with the restore. For an account that completed
a password reset after the upgrade, that brings back its password from before the
reset, the sessions the reset ended, the credentials it revoked and the access
requests it cancelled, and v0.5.0 does not hold back new issuance for it.
Before restoring, list the accounts with an auth.password_reset audit row since
the upgrade, and note which of those rows recorded
credentials_revocation_pending: true; the restore removes those rows. After the
rollback, have an
administrator disable each of those accounts, which ends its sessions and removes
its gateway identity (disabling an administrator needs a super_admin), and keep
them disabled until v0.5.1 is running again. Re-enable an account only after its
disable teardown has completed, and only when its holder is ready to complete a
password reset under v0.5.1 straight away. Where the noted post-upgrade reset
recorded credentials_revocation_pending: true, the new reset revokes the account's earlier
credentials and cancels its pending requests again; for the other accounts, have
an administrator revoke the credentials and deny the requests their holders do not
recognise. Treat the restored keys as possibly exposed.
A password reset completed on v0.5.0 during the rollback is not revisited after
the re-upgrade; review those accounts as for
resets completed before the upgrade.
Security
v0.5.1 closes privately reported weaknesses in account recovery, single sign-on
linking, privilege changes, upstream admission and per-account write limits:
- a trusted password reset revokes the credentials and cancels the access requests
that a previous holder of the account left behind, durably, and blocks new
issuance until it lands; - an email-verification link no longer authorizes single sign-on linking, and every
manual privilege increase checks the trust of linked identities; - publishing refuses an upstream that would route a proxy back into the gateway,
whateverNEXUS_ALLOW_PRIVATE_UPSTREAMSsays; - credential mutations and notification reads are rate-limited per account.
Gateway-origin detection runs when Nexus writes a proxy: re-pointing DNS after a
publish, or moving the gateway, is invisible to it, and is left to Edge's own
request-time egress screening (FERRUM_BACKEND_ALLOW_IPS).
Upgrade any deployment running v0.5.0 or earlier.
Schema and upgrades
v0.5.1freezes013_account_recovery_jobson every backend.
server/src/db/released-migrations.tslists it withrelease: 'v0.5.1'
beside001_initial(v0.1.0),002/003(v0.2.0),004to006
(v0.3.0),007to011(v0.4.0) and012(v0.5.0), each with a SHA-256
checksum per backend, and CI fails on any edit to them. Later releases change the
schema only with forward migrations that upgrade av0.5.1database in place;
see schema versioning and upgrades.- Every release is an upgrade source. The released-baseline upgrade test
builds a database asv0.1.0,v0.2.0,v0.3.0,v0.4.0,v0.5.0and
v0.5.1each left it, migrates it with the current code and reads every value
back. - No upgrade from pre-release checkouts. Databases created by buildout
checkouts beforev0.1.0are not supported; recreate them
(development reset). - Per backend. SQLite and PostgreSQL apply each migration and its ledger
row in one transaction. MySQL commits DDL statement by statement; its runner
accepts only replay-safe forms and checks live definitions before replaying
one. MongoDB requires a replica set; a standalone server
(NEXUS_DB_ALLOW_STANDALONE=true) carries no upgrade guarantee. - Downgrades are not supported. Roll back by restoring the pre-upgrade
backup, never by running an older image over an upgraded database.
Operations
- Persistence and secrets. Retain the PostgreSQL
pgdataand Edge
ferrumdatavolumes together. KeepNEXUS_SECRET_KEY,
FERRUM_ADMIN_JWT_SECRET,FERRUM_BASIC_AUTH_HMAC_SECRETand the database
password stable across restarts, upgrades and restores, and store them
outside the source tree. Recovery journals are encrypted under
NEXUS_SECRET_KEYand take part in its key rotation. - Backup and restore. Back up Nexus and Edge together, as one point in
time, following the backup and restore runbook.
Treat a recovery journal's manifest and chunk rows as one record and never
trim them by hand. The Nexus database alone cannot rebuild Edge consumers,
credentials, proxies or plugins: without an Edge backup, show-once
credentials must be re-issued. - TLS. The sample binds the portal and the gateway listener to loopback for
local HTTP. For a network deployment, terminate TLS at a trusted reverse
proxy, setNEXUS_PUBLIC_URLto the HTTPS origin and
NEXUS_COOKIE_SECURE=true, configure trusted proxies, and keep the Edge
Admin API private. See
TLS operations. - Topology. Run one active Nexus writer. An active/passive standby must
serve no requests and run no gateway-mutating background work until it is
promoted. Active-active Nexus is unsupported; see
supported topologies.
Known limitations
- Edge serves one data-plane namespace per process: keep
FERRUM_NAMESPACE
equal on both sides. - A control plane with remote data planes is reported public-only only from
Edgev0.9.14's data-plane attestation withNEXUS_EXPECTED_DATA_PLANES
set. Nexus reads one control plane, so several control plane replicas, a load
balancer in front of them or data-plane failover withhold the guarantee; such
a fleet publishes only withNEXUS_ALLOW_PRIVATE_UPSTREAMS=true, which also
skips Nexus's own upstream screening, except the gateway-origin check. - The attestation is self-reported by authenticated data planes, not a
cryptographic attestation of the data-plane host. The 60-second settle assumes
the control plane terminates each data plane's HTTP/2 connection itself,
directly or through an L4 pass-through: behind a proxy that terminates HTTP/2,
a dead data plane's stream can stay listed for minutes and a restarted data
plane can count twice. Edge reports no stream liveness, so a data plane whose
restarted process subscribes to another control plane can still be covered by
its stale stream for that window. A disconnected data plane that keeps serving
cached configuration is not listed. - Gateway-origin detection runs at write time only; see security.
- A password reset revokes credentials only on the account's first trusted proof
of its current address, and a reset completed before the upgrade is not
revisited; see behaviour changes. A revocation
that cannot be placed without emptying a credential type shared with another
account stalls for an administrator. - The public-only DNS-rebinding fixture
(e2e/public-only/) runs on demand with a
packaged image and covers the local data-plane profile only; it is not part
of the required CI checks. - A namespace past Edge's conditional bound (64 MiB of canonical
representation, or 256 MiB of base64 spec content) answers507, so
enforcement conversions, restores, and credential and access changes are
refused there until it shrinks. - An unconfirmed gateway deployment mutation is never resolved automatically;
the operator runbook
resolves it by observation. - Other gateway compensation is held in memory: a process that dies between
Edge applying such a change and its undo running leaves no record
(docs/security.md). - SMTP must be configured for real email delivery, and, unless the provider
creates the accounts, for any account but the founder to link a single
sign-on identity. - Rate limits, MCP tool-call budgets included, are enforced per gateway process
unlessFERRUM_RATE_LIMIT_SYNC_MODE=redisis set. - The MCP bridge does not expose
HEAD,OPTIONSorTRACEoperations.
Release step
This file is published as the GitHub release notes for tag v0.5.1. Earlier
notes are kept at their tags:
v0.5.0,
v0.4.0,
v0.3.0,
v0.2.0
and
v0.1.0.
- Merge the release change and require every check,
acceptanceincluded,
to pass on the merge commit. - Create tag
v0.5.1at that commit and publish a GitHub release for it with
these notes. - Require a green run of the verbatim quickstart gate for the tag
(.github/workflows/quickstart-gate.yml, run by the tag push). In a clean
hosted runner it checks out the tag, runs the README's full-stack block —
the lines between thecompose-quickstartmarkers, exactly as written —
waits a bounded time for PostgreSQL, Nexus and the gateway to be healthy,
then follows the getting-started walkthrough on that
stack: the founding registration with the logged bootstrap token, a
publishedkey_authAPI, an approved access request, an issued key, a
200through the gateway on:8000carrying the expected body, a401
without the key and a403after revocation. Any other outcome fails the
run, and the stack is torn down either way. Run it again for any release
from Actions → Verbatim quickstart gate → Run workflow;refdefaults
to the latest published release.