Repository navigation
Summary:
canton-rs v0.9.0introduces a cleaner 13-command hierarchical CLI (with full backward-compatible aliases), an embedded Canton Studio web UI, a read-only MCP server for AI tools, declarative project deployment with remote DAR lockfiles, a full transaction simulation & parallel testing suite, and broad security hardening.
🔒 Security & Integrity
- Workspace-Wide Security Hardening: Resolved 43 red-team audit findings across protobuf/Daml-LF decoding depth limits, mediator quorum saturation, HTTP/JSON escaping, symlink traversal checks in snapshot/HTML export, and bounded memory limits on long-running server collections.
- Read-Only Isolation by Default: Both
canton-rs ui(Canton Studio Live Inspector) andcanton-rs mcpenforce loopback binding by default and block ledger mutations, preventing accidental writes against connected Canton nodes. - Verified Remote DAR Lockfiles:
canton-rs deployvalidates remotehttps://,gh:, andoci://DAR artifacts with SHA-256 digests and supports--frozen-lockfileand--offlinereproducible deployments.
✨ Highlights & New Features
- 13-Command Hierarchical CLI (Backward-Compatible): Consolidated 22 flat commands into 13 top-level commands grouped around daily workflows (
test,simulate,deploy,ui,mcp,trace,console), cluster/token ops (daemon,token), and 4 domain namespaces (node,dar,splice,db). All 10 legacy commands (participant,sequencer,mediator,json-api,ledger-api,dpm,script,scan,pqs,localnet) remain available as hidden aliases with a single-line stderr deprecation notice (suppressible viaCANTON_RS_NO_DEPRECATION_WARNINGS=1) and are scheduled for removal inv1.0.0. - Canton Studio Embedded Web UI (
canton-rs ui): Zero-Docker, zero-NPM, zero-CDN local web UI combining an isolated In-Memory Lab (Scenarios & Sandbox) with a strictly read-only Live Node Inspector (ACS, SSE updates, DAR browser, node telemetry, and copyable CLI/curl snippets) that works with bothcanton-rsand existing JVM Canton nodes.canton-rs ui --url http://127.0.0.1:7575
- Read-Only MCP Server (
canton-rs mcp): Local stdio and Streamable HTTP Model Context Protocol server exposing read-only ledger, ACS, PQS, DAR inspection, and diagnostics tools for AI coding assistants. - Declarative Project Deploy & Remote DARs (
canton-rs deploy): One-command idempotent deployment from project profiles with package vetting, party reconciliation, and content-addressedhttps:///gh:/oci://DAR caching. - Transaction Simulator, Parallel Test Runner &
.simrunViewer (canton-rs simulate,canton-rs test): Dry-run commands on live or snapshot forks with zero side effects, inspect sequencer traffic byte breakdowns and contention hotspots (--diagnose,--fail-on-contention), run parallel isolated Daml Script suites (--format text|json|junit,--shuffle-seed), and inspect.simrun/1bundles in a 5-tab TUI or zero-network offline HTML report. - SCU Downgrade Warnings, CIP-0056/0112 Presets & OTel Tracing: Added
canton-rs dar check-upgrade --downgrade-risk, multi-party synchronizer routing diagnostics, local CIP-0056/0112 pre-approval presets, Terraform-styledaemon plan/apply --plan-hashsafety gates, and pure-Rust OTLP tracing withcanton-rs trace.
🛠️ Fixes & Improvements
- Supervisor Snapshot & Restore DAR Paths: Normalized relative
dars:paths fromdaemon init --with-sample-darand bundled.darartifacts cleanly acrossdaemon snapshot,daemon restore, andsimulate --from-snapshot. - Accurate SCU Plan Diffs: Updated
daemon planto comparemain_package_idvialf_archiveinstead of raw.darfile SHA-256, eliminating false-positive upgrade warnings on unchanged packages. - CLI Flag Consistency: Unified
--url/--token-envaliases ondb pqs sync, symmetric signer-key aliases ondb verify-archiveanddar audit-pack verify, and global connection/auth flags acrosstoken,daemon contracts, anddaemon tx.
📦 Install & Upgrade
macOS & Linux (install.sh)
CANTON_RS_VERSION=v0.9.0 curl -fsSL https://getcantonrs.dev/install.sh | shHomebrew (macOS & Linux)
brew upgrade cantonrs/tap/canton-rsVerify Checksums
shasum -a 256 -c SHA256SUMS --ignore-missing🧭 Upstream Compatibility & Scope
- Protocol Compatibility: Canton
3.7.x(PV36–37) · Daml-LF2.1–2.4(default2.3) · Splice0.10.x· PostgreSQL16(oracle-verified against Canton3.7.2and Splice0.10.1). - Known Scope: Deprecated top-level CLI aliases remain functional throughout
v0.9.xand will be removed inv1.0.0.canton-rsis a local development, testing, simulation, and compatible runtime tool; it does not replace public Canton Network Global Synchronizer SV operations.
Full Changelog: v0.8.1...v0.9.0