- Decentralization Manager
- Get started
- Prerequisites
Prerequisites
Choose a setup path
Section titled “Choose a setup path”| Goal | Minimum path | Additional requirements |
|---|---|---|
| Review the architecture | Repository and documentation access | No running Canton environment. |
| Build from source | Rust, Node.js, Git and the build packages | Canton access is optional for a compile-only check. |
| Run one development node | Build tools or Docker, plus Canton Admin API and Ledger API access | An identity provider, or insecure mode on devnet. Local storage and free ports. |
| Run a local multi-node mesh | Docker Compose, or several local processes | One participant for each node, and distinct ports for each node. |
| Deploy to production | A release image, Kubernetes or equivalent, and persistent storage | An identity provider, TLS for the HTTP listener, a raw TCP path to the Noise port, secret storage, monitoring and backup. |
Development tools
Section titled “Development tools”The repository requires:
- Rust edition 2024, with Rust
1.94.1or newer. The locked AWS SDK crates require that version. - Node.js
^20.19.0or>=22.12.0for the embedded frontend. - Docker for container builds and for the full integration test.
- Daml SDK
3.4.11through thedpmCLI, 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.
Canton access
Section titled “Canton access”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.
Authentication
Section titled “Authentication”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
Section titled “Insecure mode”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.
Signing keys and AWS KMS
Section titled “Signing keys and AWS KMS”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 provider | How Decentralization Manager signs | Setup |
|---|---|---|
| JCE | The 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 KMS | The 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_REGIONwhen the credential chain does not resolve a region. - The
kms:Signpermission 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.
Networking
Section titled “Networking”The node uses these default ports:
| Port | Variable | Listener or connection | Who connects |
|---|---|---|---|
8080 | DECPM_PORT | HTTP: operator UI, operator API, tenant API and /healthz | Operators and wallet providers |
9000 | DECPM_NOISE_PORT | Noise peer protocol over raw TCP | Other nodes |
9464 | DECPM_METRICS_PORT | Prometheus metrics at /metrics, with no authentication | The metrics collector only |
5001 | DECPM_CANTON_LEDGER_PORT | Outbound connection to the Canton Ledger API | This node |
5002 | DECPM_CANTON_ADMIN_PORT | Outbound connection to the Canton Admin API | This 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.
Persistent data
Section titled “Persistent data”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.
Container images
Section titled “Container images”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>-nonrootruns as uid 65532.
Both images are linux/amd64 images. Run with Docker explains the mount path of each image.
Preflight commands
Section titled “Preflight commands”rustc --versioncargo --versionnode --versiondocker versiondpm versionjava -versiongit --versionprotoc --versionRun only the checks that your setup path needs.
Readiness checklist
Section titled “Readiness checklist”- 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:Signpermission. - 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.
Technical sources
Section titled “Technical sources”- Repository README
- Operator guide
- Deployment guide
- Contribution prerequisites
- Signing with AWS KMS party keys
- Command-line flags
- Startup and
.envloading - Server startup and the insecure-mode check
- Vault export signer
- Build environment
- Workspace manifest
Related pages
Section titled “Related pages”- Run locally
- Run with Docker
- Production deployment
- Configuration reference
- Authentication and operator roles
- Sign with AWS KMS
- Compatibility, releases, and troubleshooting
Next step
Section titled “Next step”Choose a setup: Run locally or Run with Docker.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: