Skip to content

v0.3.1: Security hardening

Choose a tag to compare

@MYCL94 MYCL94 released this 27 Sep 21:30
· 60 commits to main since this release
3fc1d29

Security release

v0.3.1 closes broken access control and namespace isolation gaps in the REST API. It only affects deployments running with REQUIRE_API_KEY_AUTH=true (multi-tenant or network exposed); single tenant local setups with auth off are unchanged. Upgrading is strongly recommended for any shared deployment.

Highlights:

  • Every agent management route now enforces authentication and ownership. Rotating a key, deleting an agent, exports/imports, and per-agent config are no longer reachable without a valid key, and a non-admin key acts only on its own namespace.
  • Raw Cypher (/query/cypher) is admin only and runs in a read transaction, so a non-admin cannot read another agent by UUID and APOC write bypasses are rejected by the database.
  • Ingestion, feedback, analytics, graph, replay, and synthesize routes are authenticated and namespace scoped; fleet-wide views (multiverse graph, top agents, swarm health and live log) are admin only.
  • Node deletion no longer trusts a spoofable header; WebSocket and the swarm SSE log authenticate via a ?token= key; deleting an agent now revokes its keys; privilege escalation via agent create/update is closed.
  • The backend logs a loud warning at startup when REQUIRE_API_KEY_AUTH is off. The first admin is provisioned with backend/scripts/bootstrap_admin.py.

Full detail is in CHANGELOG.md.


What's Changed

Bug fixes

  • fix(security): enforce auth + namespace isolation across the REST API (v0.3.1) by @MYCL94 in #45

Full Changelog: v0.3.0...v0.3.1