Skip to content

canton-rs v0.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:59

Summary: canton-rs v0.9.0 introduces 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) and canton-rs mcp enforce loopback binding by default and block ledger mutations, preventing accidental writes against connected Canton nodes.
  • Verified Remote DAR Lockfiles: canton-rs deploy validates remote https://, gh:, and oci:// DAR artifacts with SHA-256 digests and supports --frozen-lockfile and --offline reproducible 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 via CANTON_RS_NO_DEPRECATION_WARNINGS=1) and are scheduled for removal in v1.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 both canton-rs and 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-addressed https:// / gh: / oci:// DAR caching.
  • Transaction Simulator, Parallel Test Runner & .simrun Viewer (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/1 bundles 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-style daemon plan / apply --plan-hash safety gates, and pure-Rust OTLP tracing with canton-rs trace.

🛠️ Fixes & Improvements

  • Supervisor Snapshot & Restore DAR Paths: Normalized relative dars: paths from daemon init --with-sample-dar and bundled .dar artifacts cleanly across daemon snapshot, daemon restore, and simulate --from-snapshot.
  • Accurate SCU Plan Diffs: Updated daemon plan to compare main_package_id via lf_archive instead of raw .dar file SHA-256, eliminating false-positive upgrade warnings on unchanged packages.
  • CLI Flag Consistency: Unified --url / --token-env aliases on db pqs sync, symmetric signer-key aliases on db verify-archive and dar audit-pack verify, and global connection/auth flags across token, daemon contracts, and daemon tx.

📦 Install & Upgrade

macOS & Linux (install.sh)

CANTON_RS_VERSION=v0.9.0 curl -fsSL https://getcantonrs.dev/install.sh | sh

Homebrew (macOS & Linux)

brew upgrade cantonrs/tap/canton-rs

Verify Checksums

shasum -a 256 -c SHA256SUMS --ignore-missing

🧭 Upstream Compatibility & Scope

  • Protocol Compatibility: Canton 3.7.x (PV 36–37) · Daml-LF 2.1–2.4 (default 2.3) · Splice 0.10.x · PostgreSQL 16 (oracle-verified against Canton 3.7.2 and Splice 0.10.1).
  • Known Scope: Deprecated top-level CLI aliases remain functional throughout v0.9.x and will be removed in v1.0.0. canton-rs is 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