Upgrading a fabric to the 1.3 secure defaults¶
For a fabric running an earlier 1.3 build (security off, or on without namespacing), upgraded without a flag day.
Source: controller/docs/upgrade-1.3-secure-defaults.md. Production deployments with operator-issued certificates
follow Security profiles and Operator PKI instead.
Before you start¶
- Tenant names. A
tenant_idwith a.cannot be an identity; settenant_id_dot_replacement=-(or a letter or digit) on every node of that tenant, and check no other tenant already has the resulting name. - Plugins installed over the network (
pluginaddfrom a repository,pluginupload,putjar) must be signed: setplugin_signing_truststoreon every node that installs them (Signed plugins). Jars embedded in the agent jar are trusted as part of it. - Remote file reads (
getfiledata,getfileinfo) needfile_access_roots. - Callers that are not controllers. API users authenticate to wsapi (API authentication); a plugin
acts only as itself. Tools that sent MsgEvents with a forged
cresco_callerare refused. - Multi-tenant regions. A region or global managing agents of several tenants must be in a superuser tenant
(
broker_superuser_tenants, defaultcresco-system). From the build of 2026-11-11 a controller of a superuser tenant is no longer bound first come: every node that joins it, and every controller it joins, lists its key incontroller_trust_anchors(the SHA-256 the controller prints at start asThis node's identity key: ...). Without that the join is refused withDiscovery REFUSED controller ...: it claims the superuser tenant ..., which names the key to list. Oncecontroller_trust_anchorsis set on a node, it is the list of every controller that node may join (its global, and the peer regions it dials): list them all. A fabric of one tenant needs nothing. - API clients. wsapi's TLS certificate is verified by both clients by default (pycrescolib 1.4.0+, clientlib 1.3):
give every client the fingerprint from
ws.fingerprintor a copy ofws.crt.pem.
The upgrade window¶
Agents not yet upgraded (an earlier 1.3 build) stamp nothing, sign nothing and run without tenant namespacing (they write
their controller's raw inbox <region>_<agent> and listen on their own). A secured broker stamps such a node
agent:<tenant>/<region>/<agent> with role user only. During an explicit, time-bounded window they keep their own
membership (join over the legacy exchange, register, unregister, keep alive, ping) and nothing more: everything else
they send meets the action tables as a user, and their dataplane use is refused by the broker (DENY ... global.event
lines for them are expected). Open the window on every upgraded node they talk to (global, regions, upgraded agents):
discovery_auth=compat
discovery_compat_until=2026-12-15 # an ISO date (end of that day, UTC) or instant, at most 90 days ahead
- Every boot logs
WARNING: UPGRADE WINDOW OPEN until ...at ERROR level, repeated every hour while the window is open. Withoutdiscovery_compat_until(or with one more than 90 days ahead) compat is ignored, and an ERROR says so. - The window is decided when the node starts. A date more than 90 days ahead stays ignored for good: it does not open by itself as the date comes nearer; a restart within 90 days of it opens it.
- When the date passes the window closes by itself, without a restart: legacy exchanges, unsigned messages and
agent:registrations are refused from then on, and every boot logs that the window has CLOSED until the two settings are removed. - Not available under
security_profile=production.
While the window is open an upgraded controller also consumes its raw inbox (AgentConsumer also consumes the raw inbox
[<region>_<agent>] during the upgrade window at boot), answers earlier-build nodes there (the reply to a registration,
health pings), and answers a discovery locator in the format it was asked in. An earlier build keeps no identity key
across restarts, so its upgraded build presents a new key: the binding the legacy exchange made for that agent name is
replaced, once, by the key the upgraded agent proves over the authenticated exchange (Discovery: <region>/<agent>
UPGRADED: ...; the old key stays refused). A binding made by the authenticated exchange is never replaced this way.
Order¶
Controllers first, from the top: a parent must understand everything its children send.
- Global, with the window settings. Verify: no
REFUSING TO START,UPGRADE WINDOW OPEN,AgentConsumer also consumes the raw inbox, andDiscovery: accepting the LEGACY unauthenticated certificate exchangeonce its earlier-build agents rejoin; they register again. - Regions, one at a time, right after the global, with the same window settings. Each region rejoins its global over
the authenticated discovery exchange (controllers never use the legacy exchange, so a region of the earlier build is
not federated with an upgraded global until it is upgraded; its agents keep working with it). Verify per region:
Broker bridge from verified controller ...at the global, and that its not-yet-upgraded agents re-register and appear in the global'slistagents. - Agents, in any order, one at a time or in batches. The window settings are not needed on an agent. An upgraded
agent joins over the authenticated exchange (
discovery v2: authenticated AGENT exchangein its log,<region>/<agent> UPGRADEDat its controller), registers, and its messages are authenticated from then on. - Close the window: once every node is upgraded, remove
discovery_auth=compatanddiscovery_compat_untilfrom every node at its next restart, or let the date pass. An earlier-build node still running when it closes is refused from that moment (MESSAGE SIGNATURE: REFUSED an unsigned message (from agent:...)at its controller), and one that starts later is refused at discovery (Discovery: REFUSED a node of an earlier build).
A node not upgraded before the window ends is cut off when it ends.
Checking and rolling back¶
REFUSING TO START: ...lines name every configuration problem (exit 78);WARNING:lines name every temporary or insecure setting;MESSAGE SIGNATURE: REFUSED ...names refused messages (see Troubleshooting).controller/docs/tests/upgrade_window_live_test.sh <upgraded agent.jar> <earlier agent.jar> <dir> <python>proves this guide on one host: earlier-build agents join upgraded controllers in the window, are upgraded one by one (with and without the window settings), the window closes by its date while an earlier-build agent still runs, and the controllers restart without it.- Rolling a node back is possible while the window is open around it. Rolling the whole fabric back to insecure operation
needs
broker_security_enabled=falseon every node: never on a network you do not control.
Between 1.3 releases¶
Agent release 1.3.381¶
Upgrade the global first, then the region controllers, then the agents: a global or region controller of an earlier release does not answer the new question about a moved node, and that node's messages at its former address wait until it is upgraded. What changes:
- A moved node reads the inbox of its former address only when the fabric recorded its move (a second node with
the same agent name in another region could read it before). Standard profile: the moved node must keep its data
directory (its identity key); a move between any two regions works through the global; a fabric without a global
records no move. Production profile: issue the moved node with
cresco-pki.sh node ... --former <old region>from the root and revoke its old certificate. See tenancy. - Broker connections: one connect attempt per broker address at a time, shared by every caller, bounded
(
broker_connect_wait_ms, 60 s) and timed out (broker_connect_response_timeout_ms, 30 s; before, a connect could wait without end). An agent's recovery no longer waits for connects to a broker it has left, and a failure of one of the dataplane's dedicated connections no longer closes the shared one. The rareaddMessageListener error ... The Consumer is closedafter a re-join is gone.
Agent release 1.3.380¶
1.3.380 rolls node by node like any 1.3 release, but in this order: the global, then the region controllers, then the agents -- the node that records a peer is the one that enforces the new rules. Before the first node:
- Give every controller a fixed
agentname(andregionname) and restart it once on its current release, so it is recorded under that name. A controller without one takes a new generated name at each start; to an upgraded node that is a new name of a known key, which it records only on proof of the key, and a node of 1.3.379 or earlier sends none.
What changes:
- A node proves its key at discovery. Each side of the discovery exchange also signs it with the key of the certificate it presents. A node records something NEW -- a name, another key for a name, a replacement -- only on that proof. A node of 1.3.379 or earlier sends no proof: it keeps working where its name and key are already recorded (registries kept, fixed agent names: nothing to do), but a FIRST join or a re-key of such a node is refused until it is upgraded, or the recording node opens the upgrade window for the time of the upgrade.
- One controller per region, one global per node. Where a controller is recorded for a region, another identity
that claims that region is refused at discovery, in every tenant; the refusal prints the operator's line that replaces
the recorded controller (
<region>/<agent>=<key fingerprint>in<data>/security/peer-trust.json.rebindon each node that recorded it). A node takes one global, the first it joined; moving a region to another global is the same line on the region. See discovery. controller_trust_anchorsadmits, it no longer re-keys. A plain fingerprint admits a controller and replaces nothing recorded. To have a re-installed controller followed on every node without a rebind line, list it SCOPED:<region>/<agent>=<fingerprint>(configuration).- Rolling a node back to an earlier release after it proved its key: within
discovery_proof_grace_days(default 7) of its first proof it is taken as before, with a WARN; after that, open the upgrade window on the nodes that recorded it, or upgrade it again. - No TLS session between nodes is resumed. Every connection a node makes or accepts is a full handshake checked by its trust as it is at that moment, so a revoked key cannot come back on a session it had before. Cost: about a millisecond of CPU per reconnect; a controller that restarts had nothing resumable anyway.
- Revoking an agent by name at the global (
peer_identity_revokeorpeer-trust.json.revoke) now does something: the global reserves the name at once and asks that region's controller to revoke the key it holds for it. The global logs the key the region reports (Name revocation of <name>: REPORTED by ...) and does not revoke it on the region's word; to have every region refuse that key, revoke the reported fingerprint at the global. Theidentityhealth check is WARN until the region answers. - A registry restored from a backup says so at start (
PEER TRUST REGISTRY IS BEHIND ITS OWN RECORD ...): it has forgotten which peers proved their key and which controller is the global since the backup.
Agent release 1.3.379¶
A 1.3 release rolls onto another node by node, in any order. What changes for an operator in agent release 1.3.379:
- A node reads its own inbox only (tenancy). Agent names must be unique within a tenant.
- In a fabric with a global, region brokers no longer relay for each other
(which broker relays). While some region
controllers are still on the earlier release, the others keep logging
STRIPPED a forged callerfor what comes over those controllers' bridges; the lines stop with the last update. - A call for a node that cannot be reached is answered
route unavailableat once instead of waiting for its caller's timeout, and a request lives in a broker only as long as its caller waits (plus a minute for clocks). Keep every node's clock within a minute of the others. - Expired messages are discarded and counted (
msg.expired), no longer kept inActiveMQ.DLQ. - After a restart a node recovers its sessions in one round trip, and refuses a signed message it may have
accepted before it stopped (a new file,
security/replay-floor.bin, in the node's data directory: keep it with the node's identity). - A node on the earlier release does not know the new lost-session notice and ignores it; it recovers as before.
Keystores in FIPS mode¶
A node moved to the production profile runs FIPS approved-only, which reads no PKCS#12 keystore: convert its identity
keystore once (java -jar agent.jar --crypto convert-keystore ..., see FIPS). wsapi's own managed keystore
from an earlier standard-profile run is refused there too: convert it, or delete it and its password file to make a new
one (clients then pin the new fingerprint).