Skip to content

Prerequisites

Overview

GoalMinimum pathAdditional requirements
Review the architectureRepository and documentation accessNo running Canton environment.
Build from sourceRust, Node.js, Git and the build packagesCanton access is optional for a compile-only check.
Run one development nodeBuild tools or Docker, plus Canton Admin API and Ledger API accessAn identity provider, or insecure mode on devnet. Local storage and free ports.
Run a local multi-node meshDocker Compose, or several local processesOne participant for each node, and distinct ports for each node.
Deploy to productionA release image, Kubernetes or equivalent, and persistent storageAn identity provider, TLS for the HTTP listener, a raw TCP path to the Noise port, secret storage, monitoring and backup.

The repository requires:

  • Rust edition 2024, with Rust 1.94.1 or newer. The locked AWS SDK crates require that version.
  • Node.js ^20.19.0 or >=22.12.0 for the embedded frontend.
  • Docker for container builds and for the full integration test.
  • Daml SDK 3.4.11 through the dpm CLI, for Daml packages and tests.
  • Java 17 or newer, for Daml tests.
  • Git.

The build fetches its Git dependencies over HTTPS from public GitHub repositories. A source build needs no SSH key. The CI build installs pkg-config, libssl-dev, protobuf-compiler, libprotobuf-dev and cmake on Debian or Ubuntu.

A running node needs access to one Canton participant:

  • The Admin API, for topology, keys, identity, package upload and other privileged operations.
  • The Ledger API, for contracts, commands, user rights, party data and interactive submissions.

The operator must know these values for each API:

  • The host and the port.
  • Whether the endpoint serves plaintext, TLS or mTLS.
  • The certificate authority and the certificate name, where TLS applies.

The operator must also know the Canton synchronizer name and the network: devnet, testnet or mainnet.

The node reads its participant ID from the Admin API at startup. If the Admin API is unreachable, the process exits.

The operator UI needs one identity provider:

  • A Keycloak public client with Authorization Code and PKCE.
  • An Auth0 single-page application and an Auth0 API audience.

Each Decentralized Party also needs party credentials for Canton operations. These credentials are separate from the browser login. Document their owner, rotation, storage and actAs or readAs rights before you run workflows.

A node that hosts an external party, or that adds hosts to a local party, also needs tenant API keys in DECPM_TENANT_API_KEYS. The tenant API rejects every call when the node has no keys.

Insecure mode (--insecure or DECPM_INSECURE=true) replaces the identity provider for local development. It needs a Canton participant with unsafe shared-secret (HS256) authentication.

Insecure mode starts only on devnet. The process refuses to start in insecure mode on testnet or mainnet. The network defaults to devnet when DECPM_CANTON_NETWORK is unset. Set the network explicitly on every shared node.

Each Decentralization Manager node signs the ledger transactions of the party with the Daml key of its participant node. The crypto provider of the participant decides who holds that key:

Participant crypto providerHow Decentralization Manager signsSetup
JCEThe node exports the party’s Daml private key from the vault for each signature. It signs on the node and never stores the key.None.
AWS KMSThe key cannot leave AWS KMS. The node calls the AWS KMS Sign API with the key ID.IAM setup, see below.

Prepare these items for a node next to an AWS KMS participant:

  • AWS credentials that the AWS default credential chain of the node resolves. On Amazon EKS, attach an IAM role to the service account of the node.
  • The AWS region of the KMS keys. Set AWS_REGION when the credential chain does not resolve a region.
  • The kms:Sign permission on each party Daml key. Grant it in the key policy of each key.
  • Key metadata that holds a bare KMS key ID. The node rejects an ARN, an alias or a malformed ID.
  • EC-P256 keys. The node supports no other key spec for KMS signing.

Sign with AWS KMS gives the key policy and the failure modes.

The node uses these default ports:

PortVariableListener or connectionWho connects
8080DECPM_PORTHTTP: operator UI, operator API, tenant API and /healthzOperators and wallet providers
9000DECPM_NOISE_PORTNoise peer protocol over raw TCPOther nodes
9464DECPM_METRICS_PORTPrometheus metrics at /metrics, with no authenticationThe metrics collector only
5001DECPM_CANTON_LEDGER_PORTOutbound connection to the Canton Ledger APIThis node
5002DECPM_CANTON_ADMIN_PORTOutbound connection to the Canton Admin APIThis node

Peers dial the address in DECPM_PUBLIC_ADDRESS. Without it, the node gives peers its Noise listen address. That address defaults to 0.0.0.0. Set DECPM_PUBLIC_ADDRESS on every node that peers reach from another host.

These values are defaults. Confirm the actual ports, firewall rules, DNS, load balancers and TLS termination for each environment. Configuration reference lists every variable.

Plan persistent storage for the data directory. The node writes these files under <dir>/data/:

  • noise.key: the Noise identity of the node.
  • decpm.db: the SQLite database with peers, party credentials and workflow state.

The node reads an optional .env file from the -d or --dir directory, or from the working directory. DECPM_DIR does not choose the .env location. A lost Noise key forces every peer to update its record for this node. A production setup needs a tested procedure for backup and recovery.

Each release has two images on Amazon ECR Public:

  • public.ecr.aws/dlc-link/decentralization-manager:<tag> runs as uid 0.
  • public.ecr.aws/dlc-link/decentralization-manager:<tag>-nonroot runs as uid 65532.

Both images are linux/amd64 images. Run with Docker explains the mount path of each image.

Terminal window
rustc --version
cargo --version
node --version
docker version
dpm version
java -version
git --version
protoc --version

Run only the checks that your setup path needs.

  • You chose a release tag or an image.
  • The build tools match the versions above.
  • The node can reach the Canton Admin API and Ledger API.
  • The TLS or mTLS settings match what each Canton endpoint serves.
  • You configured the operator identity provider.
  • Party credentials and their Canton rights are available.
  • Each node next to an AWS KMS participant has AWS credentials and the kms:Sign permission.
  • The intended callers can reach the HTTP and Noise ports.
  • Untrusted networks cannot reach the metrics port, or the metrics listener is off.
  • You planned persistent storage, secret storage, backup, logs and monitoring.
  • Insecure mode is off on every shared or production node.

Choose a setup: Run locally or Run with Docker.