Skip to content

RootSign v0.2.1 — bare-install CLI fix + log-injection hardening

Choose a tag to compare

@oabolade oabolade released this 19 Aug 17:44
82afd06

Patch release. Bug fixes only — no new public API, nothing breaking. Upgrade with pip install -U rootsign.

The one that matters if you're trying RootSign for the first time

The rootsign CLI was unusable on a bare pip install rootsign. Every invocation died before the command could run:

$ rootsign version
ModuleNotFoundError: No module named 'sqlalchemy'

rootsign version, rootsign --help, rootsign verify --local and every rootsign-admin command were affected — including ones that touch no database at all. A module-level DB import in each console script's entry module pulled in the optional postgres extra at import time (#28, #33).

If you hit this on v0.2.0, v0.2.1 fixes it and nothing about your install needs to change beyond upgrading.

Fixed, and now covered by a CI tripwire that runs the console scripts themselves against a real bare install — import rootsign passing was never sufficient, because the entry points are a different import graph.

Security

  • Log injection (py/log-injection). tool_name is not always developer-authored — the MCP proxy reads it straight off the inbound tools/call JSON-RPC body, so a caller upstream could embed CRLF and forge lines in RootSign's own operational log, including lines impersonating its WARNING output. Now sanitized at the log sink. The ACTION_RECORD still stores the byte-exact tool name, so self_hash continues to bind the real request (ADR-001). (#25, #27)
  • Supply chain. The PyPI publish step is pinned to an immutable commit SHA rather than a mutable branch ref, and CI workflows declare least-privilege permissions. Dependabot now keeps the pin current. (#25, #26)

Better errors

Selecting a DB-backed path without the postgres extra now names the install command on every entry point, instead of a bare ModuleNotFoundError from deep in the import graph on some of them (#30):

Error: ROOTSIGN_BACKEND=postgres requires the database extra.
Install with:  pip install 'rootsign[postgres]'

Internal

Test and CI work that doesn't change the distribution: cross-backend hash parity is now asserted at the canonical SHA-256 input, not just the digest (#32); performance budgets moved out of the merge gate and assert on medians so hardware variance can't redden main (#29, #31).

Verified

The wheel published here was smoke-tested in a fresh no-extras virtualenv: rootsign version, rootsign --help and rootsign-admin --help all exit 0, DB-backed commands print the install hint and exit 1, and zero database packages are resolved.

Full changelog: v0.2.0...v0.2.1