Repository navigation
VOLTTRON 9.2.0
VOLTTRON 9.2.0
This is a minor release. It fixes five security advisories and includes the other fixes listed under "What changed". Several of the security fixes change behavior that working installations relied on, so read "Upgrade steps" before you upgrade. Only 9.2.0 is patched: the fixes are not back-ported, and SECURITY.md now lists 9.2.x and later as the supported versions.
Upgrade steps
Before you upgrade
- Give each agent that uses the ActuatorAgent the
actuator_controlcapability. This covers scheduling, cancelling, setting and reverting. Thedriver_writecapability no longer grants actuator use, andactuator_controlis not granted to any agent by default. Grant it withvctl auth update <index>(capabilities field). Device write and revert requests from the VOLTTRON User Interface (VUI) answer 403 until an operator allows them; issue #3379 tracks that opt-in and is still open. - Add two entries for each peer platform if you use cross-platform pub/sub with authentication enabled.
- A CURVE (the ZeroMQ CURVE key mechanism) auth entry that holds the peer's exact public key (not a pattern) and no identity.
- A discovery entry with the same key.
- Sites that rely on a wildcard
/.*/entry lose cross-platform pub/sub until they add these entries. Cross-platform pub/sub does not work while the platform runs in setup mode; it resumes after a restart in normal mode. - After the change, a message from another platform is accepted only from a mapped platform. Its sender is as the remote platform reported it, and it reaches only
all_platformssubscribers. A remote publish carries no user, and the user of a call or publish from another platform is the empty string.
- Check who shares
VOLTTRON_HOMEbefore you start the new version. Startup removes group and other write fromVOLTTRON_HOME. A home that is writable by group or others and owned by another user stops startup; runchmod go-won it as its owner. Keystore directories you own become mode 0700. A symlinked home is resolved to its real path, andget_home()now returns that path. The agent installer removes group write from an unpacked agent's tree. If you shareVOLTTRON_HOMEwith another user or group, change that arrangement before you upgrade. - Update any code that builds a
RouterorGreenRouter(involttron/platform/main.py). Both classes now requireenable_auth, so code that builds one must pass it. Router operations (shutdown, stop agent, routing table, auth updates and protected-topic updates) are accepted only from permitted senders. - Upgrade the platform that runs VOLTTRON Central, not only the managed platforms. Then review the access changes in step 7 for your users.
After the first start
- Review the auth file and the logs. Auth entries are checked more strictly at load.
- An entry with an empty
user_idis refused and skipped. - A reserved user id is honored only for a CURVE entry whose key equals the key the platform holds for that id.
- The platform reads its own key only from a file owned by the platform user and closed to group and other writes, in directories closed the same way.
- An entry that fails these checks is skipped with a warning. The entry stays in the auth file; only the load skips it.
- An entry with an empty
- Expect these protected-topic and agent message checks. A protected topic is refused for a publisher that the auth service has not reported. An agent accepts a capabilities update only from the auth service, and its pub/sub subsystem ignores messages that do not come from its router.
- Expect these VOLTTRON Central changes.
- Users who are not in the admin group get read-only access. Writes, configuration changes, BACnet, agent control and agent install need the admin group.
- Methods are matched exactly.
- Sessions end after 30 minutes idle or 240 minutes in total, and a second login by the same user ends the first.
- VOLTTRON Central no longer sends logins to an address taken from the request.
- A websocket opens only when its owner answers the authorize call.
- The VolttronCentralPlatform agent restricts the exports of
VCConnection, theroute_requestmethods, agent uploads (capped at 64 MiB) and subscription prefixes (status, iam/ and configure/). - The log out control in the VOLTTRON Central interface clears only the browser; it does not end the session on the server. To end a session early, close the browser and let the session reach its idle limit, or log in again, which ends the earlier session.
What changed
- security: five advisories are fixed (see "Security fixes").
- feat: the ActuatorAgent requires
actuator_controlfor scheduling and writing (#3365). - security: the web service's
auto_allow_csrandis_auto_allow_csrRPC methods and its auto-approve mode are removed, so every certificate signing request waits for an administrator (#3380). The test harness gets astart_csr_approverhelper. - fix: the forwarder reconnects and resends when the target socket has closed (#3376).
- fix:
vctlbounds auth RPC waits by--timeout, and bounds the--timeoutmaximum override (#3367, #3371). - fix: actuator conflict-override tests use the list return type (#3375).
- test, ci, chore and docs: driver override grant tests (#3377), forwarder test assertions (#3385, #3376), pending-agent cleanup and assertions in the web tests (#3354), the services/core agent tests run in CI (#3373), Bandit assert checks skipped in test code (#3361), and the README badge (#3387).
Security fixes
Each advisory lists 9.2.0 as its patched version.
- GHSA-x5j6-gfgc-6rcf: RPC capability checks used the routing identity a peer chose instead of its authenticated user. Affects 7.0 through 9.1.0.
- GHSA-xh5h-5fvj-99gh: the external RPC path forwarded a caller-supplied user to local agents, bypassing capability checks. Affects 5.0 through 9.1.0.
- GHSA-hhj6-8cjv-fmhr: the external publish path did not set the sender, so a peer could publish as another agent. Affects 5.0 through 9.1.0.
- GHSA-g6ff-7vj6-5p87: VOLTTRON Central and VolttronCentralPlatform did not authorize management requests. Affects 7.0 through 9.1.0.
- GHSA-7rr5-xwmv-23hh: on RabbitMQ platforms, any bus peer could turn on automatic approval of certificate signing requests. Affects 6.0 through 9.1.0.
Migration notes
- Database: no migration. Auth entries that are invalid or use a reserved id are skipped on load but kept in the file.
- Breaking changes: yes, for callers that depended on the old behavior. Each is listed in "Upgrade steps" (steps 1 to 8).
Resolved issues
#3354, #3361, #3367, #3371, #3373, #3375, #3376, #3377, #3385, #3387, #3391, #3392, #3395, #3398