Repository navigation
Ferrum Nexus v0.5.0
Ferrum Nexus v0.5.0 — release notes
Released 2026-10-08. Paired with Ferrum Edge v0.9.14. 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.0 lets the holder of an explicit MCP tool subset request
more tools on its existing grant without losing access, announces renamed agent
tools, completes the hardening of the public-only egress guarantee for
control-plane/data-plane topologies, and reports a deployment mutation Edge proves
it did not commit under its own error kind. It upgrades a v0.4.0 database in
place with one forward migration, and the gateway's database carries over
unchanged. Read the upgrade before starting: it
requires every older Nexus writer to be stopped and drained, needs Nexus and Edge
upgraded in one window, and changes an error kind that clients and alerts may key
on. The full list of changes is in the
changelog.
Supported combination
| Component | Version | Pinned as |
|---|---|---|
| Ferrum Nexus | v0.5.0 |
Git tag v0.5.0; 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 digest above is
the multi-architecture image index; it resolves to
sha256: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). - What changed on the Edge side. Edge
v0.9.14keeps every contract Nexus
depends on: egress policy schema 2, deployment snapshot v2 and its
deployment_snapshot.v2tokens, and the acknowledgement shape. A control
plane's egress policy answer gains the optionaldata_plane_attestation
object, a conditional mutation whose store fails before commit answers503
withdurablenot_startedornot_committedinstead ofunknown, and the
ConfigSync protocol revision is now3, so a control plane and its data
planes must run the same build. Edgev0.9.14adds no core schema change, so
the gateway database opens in place. Read Edge's
upgrade guide
and its
changelog
for the data-plane changes your clients may notice, such as backend HTTP/2
resets now classified asprotocol_errorand charged to the target's circuit
breaker, and a buffered response read timeout answering504instead of502. - Other Edge versions are unverified. Nexus
v0.5.0is tested only against
Edgev0.9.14. It still reads Edgev0.9.13's answers, which keeps an
Edge-only rollback possible (see rollback), but run the pinned pair.
Edgev0.9.12or earlier is refused, as inv0.4.0. - 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
- Request more MCP tools on an existing grant. A holder of an explicit tool
subset loses a tool when its provider redefines or renames it. It can now ask
for that tool, or any other uncovered one, on the grant it already holds
(POST /api/grants/:id/tool-requests), and the provider decides it like any
access request. REST access and the tools already approved stay in place
throughout. See the API reference and the
subset rollout. - Renamed tools are announced. An agents edit that renames a tool drops it
from explicit subsets, as before, and its holders now get an in-app notice
naming the old and new name, as for a redefined tool. - Attested public-only egress for control-plane/data-plane pairings. With
Edgev0.9.14andNEXUS_EXPECTED_DATA_PLANESset, a control plane whose
connected data planes all attest public-only egress publishes under the
default public profile, with no opt-out. See
CP/DP pairings and data-plane attestation. - A deployment mutation Edge did not commit is named. It reports
details.kinddeployment_not_committedinstead of
deployment_acknowledgement_uncertain; see
behaviour changes. - Fewer gateway reads per spec build. A revision, rollback, agents edit,
restore or conversion of an agent API no longer reads every all-tools
grantee's consumer from the gateway; enrollment runs only when agents are
turned on or a retained selection is given its exposure IDs.
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.0
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.4.0
v0.4.0 is the supported upgrade source. A v0.3.0, v0.2.0 or v0.1.0
database also upgrades in one run (CI covers every release), but read the
v0.4.0 notes
first: those releases ran an older Edge, and their upgrade has its own
prerequisites (Node floor, public-only egress, settling recovery journals). Upgrade
Nexus and Edge together, in one maintenance window, following 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. - Gateway egress. Unchanged for a single Edge process that answers the
Admin API and serves the traffic: it still needs
FERRUM_BACKEND_ALLOW_IPS=publicwithout allow CIDRs. A control plane with
remote data planes can now be admitted on its data planes' attestation, but
only withNEXUS_EXPECTED_DATA_PLANESset; see
data-plane attestation.
A pairing that publishes today underNEXUS_ALLOW_PRIVATE_UPSTREAMS=true
keeps doing so. - Clients and alerts. Update anything keyed on
deployment_acknowledgement_uncertainor on the gateway's502rate; see
behaviour changes.
- Node. Unchanged since
- Settle gateway recovery work on the old pairing. Tokens Edge
v0.9.13
issued keep verifying on Edgev0.9.14, so this is not required, but it keeps
the upgrade window free of conversions in flight. Run
POST /api/apis/:id/restore-gatewayfor every API whosegateway_stateis
repair_requireduntil it completes, and ask providers not to change
spec_enforcementor restore gateways until the upgrade is done. See
Upgrading to Edge v0.9.14. - Stop and drain every Nexus instance, request handlers and background
workers alike. Older and newer writers must never run together:
012_access_request_grantadds the field that marks a request for more tools
on a grant, and av0.4.0instance, which does not read it, would list and
decide such a request as a request for access.v0.4.0also reads the
egress policy answer as a closed key set, so it refuses every backend write
once a control plane answers with Edgev0.9.14's attestation. - Back up Nexus and Edge together, as one point in time, following the
backup and restore runbook. This backup
is your rollback. - Upgrade Edge to
v0.9.14on its existing database. The control plane
and every data plane must run the same build: upgrade them together. A data
plane on an older build cannot connect, and the control plane cannot list it
in its attestation. Keep Nexus stopped until step 7. - Run the migration once from the new Nexus image
(node server/dist/db/migrate-cli.js). It applies
012_access_request_grant; re-running it is safe. Nexus also migrates at
startup, so a single-instance deployment may skip this step. - Start
v0.5.0on every instance, withNEXUS_EXPECTED_DATA_PLANESset
first on a control-plane/data-plane pairing that should have the attested
guarantee. Verify it as the procedure says:schema_migrationslists
001_initialthrough012_access_request_grant;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 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.0
set -a
. ./release/compatibility.env
set +a
docker compose up -d ferrum-edge
docker compose up -d --buildTake the paired backup (step 4) after docker compose stop nexus and before
docker compose up -d ferrum-edge. The Compose stack runs a single local Edge
process, so NEXUS_EXPECTED_DATA_PLANES does not apply to it. The gateway keeps
the ferrumdata volume as it is, and Nexus migrates the retained pgdata
database when it starts.
What the migration does, on every backend:
012_access_request_grantadds a nullablegrant_idto each access
request on SQL backends, and setsgrant_id: nullon retained MongoDB
documents. A set value marks a request for more tools on that grant; every
retained request keepsnulland stays a request for access. It changes no
other data. On MySQL it is an additive nullable column, which the runner checks
before replaying an interrupted upgrade.
Data-plane attestation and NEXUS_EXPECTED_DATA_PLANES
Nexus grants a control plane the public-only guarantee only from the
data_plane_attestation object Edge v0.9.14 adds to its egress policy
answer, and only when all of these hold: NEXUS_EXPECTED_DATA_PLANES is set,
at least that many distinct data planes (node_id) are connected, every
connected data plane sent a report, every report is public mode without allow
CIDRs, and Edge's aggregate matches the listed reports, which Nexus recomputes.
Anything else reads "not guaranteed": backend writes are refused unless an
opt-out admits them, and health reads degraded.
- Unset (the default) or blank, an attestation never grants the guarantee.
A control plane then behaves as it did withv0.4.0. - Set it to the namespace's whole data-plane inventory: the number of
running data-plane processes (replicas or pods) across every control plane,
not only those connected to the control plane atFERRUM_ADMIN_URL. Each
process reports its own randomnode_id, even when replicas share one CP/DP
secret. Never set it lower than the real inventory, and raise it before new
data planes connect. - It must be a positive integer (up to 1,000,000); anything else refuses
startup. - Several control plane replicas, a load balancer in front of them, or data
planes that fail over between control planes leave the control plane Nexus
reads with a short count, so the guarantee is withheld. Nexus cannot combine
answers from several control planes.
Writes admitted on an attestation record egress_profile: public-guaranteed
with enforcement_scope: admission-only. The verdict is re-read for every
backend write and health probe, with no caching or grace period. The
operations guide
covers restarts, stale streams and what the attestation does not prove.
Behaviour changes to plan for
All are listed in the changelog.
- A deployment mutation Edge did not commit has a new error kind. An
acknowledgement whosedurableisnot_startedornot_committednow answers
502 EDGE_ERRORwithdetails.kinddeployment_not_committedinstead of
deployment_acknowledgement_uncertainat every status other than a
409/412precondition refusal or a507size refusal, which keep their
kinds: Edgev0.9.14's503store failure, and equally an Edge400or
501that carries such an acknowledgement. Its message becomes "The gateway did not
commit the deployment mutation; nothing was applied. Retain recovery state",
and so does theerrortext of the failure audit rows. Only
durable: "unknown"and any other unconfirmed answer stay
deployment_acknowledgement_uncertain. The recovery journal is kept and never
resent under either kind. Update any client, alert or audit query keyed on the
old kind or message; the
operator runbook
covers both. - Some backend failures move from
502to504. Edgev0.9.14answers a
buffered response read timeout with504. Nexus's per-API metrics count by
status code only, so adjust any alert keyed on the502bucket. - Agent selections are bounded after Path Item references resolve.
Publishing, revising, rolling back or restoring an agent API, aPATCHof
agentsorspec_enforcement, and the provider's operation picker refuse a
document with more than 3,000 operations once Path Item references resolve
(400 SPEC_INVALID). The upload limit counts only the method keys each path
declares, so a document can pass the upload and still be refused for agents.
Routes APIs without agents are unaffected. - A renamed tool is pruned as
tool_renamed.access.tools_prunerecords
reason: "tool_renamed"instead oftool_removedwhen an agents edit renames
a tool. - Attestation entries need an RFC 3339
connected_at. An attestation with
any otherconnected_atis set aside as malformed and grants nothing. - Access requests carry
grant_id. Request DTOs gain a nullablegrant_id,
set on a request for more tools on that grant. - New audit actions:
access.tools_request,access.tools_approveand
access.tools_approve_rollback; update any tooling that reads the audit log.
Rollback
Rollback is a restore of the backup taken in step 4, Nexus and Edge together:
restore the Edge database and run Edge v0.9.13 on it, and restore the Nexus
database and run v0.4.0 on it. Never run v0.4.0 over a database v0.5.0
migrated. Tool requests filed or approved after the upgrade are lost with every
other post-upgrade change. Rolling back Edge alone to v0.9.13
keeps Nexus v0.5.0 working: the attestation disappears, so a pairing that
relied on it reads "not guaranteed" again and its writes are refused unless an
opt-out admits them. Settle recovery journals before either rollback.
Security
v0.5.0 completes the hardening of the public-only egress guarantee for
control-plane/data-plane topologies. A control plane is reported public-only,
and its backend writes admitted under the default public profile, only from a
complete and self-consistent data-plane attestation that covers at least
NEXUS_EXPECTED_DATA_PLANES distinct data planes, every one of them public-only
without allow CIDRs. An attestation that is malformed, inconsistent, out of scope
or carries an entry whose connected_at is not an RFC 3339 date-time is set
aside and grants nothing.
Upgrade any deployment running v0.4.0.
Schema and upgrades
v0.5.0freezes012_access_request_granton every backend.
server/src/db/released-migrations.tslists it withrelease: 'v0.5.0'
beside001_initial(v0.1.0),002/003(v0.2.0),004to006
(v0.3.0) and007to011(v0.4.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.0database 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.0andv0.5.0each
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. - The attestation is self-reported by authenticated data planes, not a
cryptographic attestation of the data-plane host. A data plane that restarts
without closing its stream counts twice until Edge drops the stale stream, so
the count can briefly cover one missing data plane. A disconnected data plane
that keeps serving cached configuration is not listed. - 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.0. Earlier
notes are kept at their tags:
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.0at 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.