- Decentralization Manager
- Get started
- Production deployment
Production deployment
Run with Docker · Configuration reference
Production architecture
Section titled “Production architecture”Each participating organization deploys one Decentralization Manager node. A node has three listeners. Each listener needs a different exposure:
| Listener | Default port | Protocol | Expose to |
|---|---|---|---|
| HTTP | 8080 | Plain HTTP: operator UI, operator API, tenant API and /healthz | Operators and wallet providers, through a TLS-terminating ingress or proxy |
| Noise | 9000 | The Noise protocol (NN_PSK2) over raw TCP | Other nodes, through a TCP pass-through load balancer or a direct port |
| Metrics | 9464 | Plain HTTP at /metrics, with no authentication | The metrics collector, inside the private network only |
The node also needs private network access to the Admin API and the Ledger API of its Canton participant. It needs persistent storage, an identity provider, a secret store, log collection, metrics collection and backups.
Peer traffic does not use TLS
Section titled “Peer traffic does not use TLS”Peer traffic uses the Noise protocol directly over TCP. Noise encrypts each connection and authenticates the peer with keys from the peer records. A TLS-terminating proxy or an HTTP load balancer in front of the Noise port breaks peering.
- Expose the Noise port through a layer 4 (TCP) load balancer, or through a direct port.
- Set
DECPM_PUBLIC_ADDRESSto the host name or IP address that peers dial. - Restart the node after you change
DECPM_PUBLIC_ADDRESS.
The repository deployment guide uses two Kubernetes Services. A ClusterIP Service carries the HTTP port behind the Ingress. A LoadBalancer Service carries the Noise port over TCP. Neither Service exposes the metrics port.
Choose the image
Section titled “Choose the image”Each release has two images on Amazon ECR Public:
| Image | Runs as | DECPM_DIR default |
|---|---|---|
public.ecr.aws/dlc-link/decentralization-manager:<tag> | uid 0 | / |
public.ecr.aws/dlc-link/decentralization-manager:<tag>-nonroot | uid 65532 | /home/nonroot |
- Both images hold the same binary and take the same configuration.
- Prefer the
-nonrootimage. An admission policy withrunAsNonRoot: trueand norunAsUserrejects the root image, because that image declares uid 0. - Pin an explicit release tag, such as
v1.13.0, or an image digest. Do not uselatest. - The images are
linux/amd64images. - The images are distroless and contain no shell. Run init containers and debug tools from a separate utility image.
- Releases before v1.6.0 used the repository name
public.ecr.aws/dlc-link/canton-decparty-manager.
Neither image needs root. The binary binds ports above 1024 and writes only under its data directory. Give the pod fsGroup: 65532, so that uid 65532 can write to a new volume.
Move an existing node to uid 65532
Section titled “Move an existing node to uid 65532”A volume that the root image wrote holds root-owned files. The node sets the mode of data/noise.key to 0600 at every start when the mode differs. fsGroup adds group permissions, so the mode differs. Uid 65532 cannot change the mode of a file that it does not own. The node then logs Failed to chmod key file and keeps running without the Noise listener. A node without the Noise listener cannot peer.
Change the owner of the volume once, before the first start as uid 65532. On Kubernetes, add a temporary root init container ahead of the other init containers. This example mounts the volume at /app:
initContainers: - name: chown-data image: busybox:latest command: ["sh", "-c", "chown -R 65532:65532 /app"] securityContext: runAsUser: 0 runAsNonRoot: false volumeMounts: - name: data mountPath: /appRemove the init container after one successful start. A namespace under the restricted Pod Security Standard rejects a root init container. In that case, run the same chown -R from a one-off root pod that mounts the volume. For a Docker bind mount, run sudo chown -R 65532:65532 on the host directory.
Required controls
Section titled “Required controls”- Pin a release tag or an image digest.
- Run as uid 65532, with
allowPrivilegeEscalation: falseand all capabilities dropped. - Run one replica per node. The repository manifest uses
replicas: 1with aReadWriteOncevolume for the Noise key and the SQLite database. - Never set
--insecureorDECPM_INSECURE. Insecure mode starts only ondevnet. The node refuses to start in insecure mode ontestnetormainnet. - Set
DECPM_CANTON_NETWORKexplicitly. The network defaults todevnetwhenDECPM_CANTON_NETWORKis unset. - Configure Keycloak or Auth0 for the operator UI. See Authentication and operator roles.
- Set
DECPM_ADMIN_ROLE. Without it, every authenticated user is an admin. - Set
DECPM_DB_ENCRYPTION_KEY. Without it, the node stores party credentials in plaintext. - Terminate TLS for the HTTP listener at the ingress or proxy. The node itself serves plain HTTP.
- Use TLS or mTLS to the Canton APIs when the participant serves it. Otherwise, keep the Canton APIs on a private network.
- Keep the metrics port inside the private network, or set
DECPM_METRICS_PORT=0. - Set
DECPM_TENANT_API_KEYSonly on a node that hosts an external party or adds hosts to a local party. - Keep the encryption key, the tenant API keys and the Canton client keys in a secret store, not in the image.
- Persist the data directory on a volume, and back it up.
The /v0/tenant/* endpoints accept a tenant API key instead of an identity-provider token. Wallet providers that call them must reach the HTTP listener.
Health checks
Section titled “Health checks”GET /healthz on the HTTP port returns 200 with {"status":"ok"}. It needs no token and does no I/O. Use it as a liveness probe. It does not check Canton, the peers or the database.
The HTTP listener starts after the node reads its participant ID from the Admin API and runs the database migrations. If the Admin API is unreachable at startup, the process exits. The container then restarts.
The repository manifest defines no probes. This example adds them:
startupProbe: httpGet: path: /healthz port: 8080 periodSeconds: 5 failureThreshold: 60livenessProbe: httpGet: path: /healthz port: 8080 periodSeconds: 10Use httpGet probes. The image contains no shell for exec probes. GET /node-health reports whether the Admin API and the Ledger API are reachable. It needs a token.
Deployment sequence
Section titled “Deployment sequence”- Choose the release tag and the image variant.
- Provision the namespace, the secret store, the persistent volume and the network policy.
- Configure the identity-provider client for the operator UI.
- Create the HTTP Service behind the Ingress and the TCP load balancer for the Noise port.
- Set
DECPM_PUBLIC_ADDRESSto the Noise address, and deploy one replica. - Verify the login,
/healthz, the Canton connection, persistence, metrics and logs. - On an AWS KMS participant, grant
kms:Signon the party keys. See Sign with AWS KMS. - Save the first party configuration.
- Exchange peer records with the other operators. See Connect peers.
- Run one low-risk workflow, and record the deployment evidence.
The repository deployment guide has complete Kubernetes manifests and the identity-provider setup.
Persistent data
Section titled “Persistent data”The volume holds data/noise.key and data/decpm.db. A deleted volume gives the node a new Noise key. Every peer must then update its record for this node. A deleted volume also removes the peer list and the party credentials.
Back up the volume with an application-consistent procedure, and test the restore. Protect the backups as sensitive material. Backup, recovery, and upgrades gives the procedure.
Logs and metrics
Section titled “Logs and metrics”The node writes one JSON object per line to stdout. DECPM_LOG_FORMAT=text gives the console format. RUST_LOG sets the log filter. The metrics listener serves Prometheus metrics at /metrics on DECPM_METRICS_PORT. Monitoring and logging lists the metrics and the alerts.
Upgrades
Section titled “Upgrades”The node runs its SQLite migrations at startup. For most releases, a new image tag is the only upgrade step.
A coordinator invites only peers that use the same Noise wire version and report version 0.1.9 or later. All nodes of a Decentralized Party must still run the same release.
A release that changes the Noise wire version needs a lockstep upgrade of the whole mesh. Nodes on different wire versions reject each other’s frames. A mixed mesh fails the health preflight of every workflow run.
| Wire change | First release | What changed |
|---|---|---|
No version byte to 0xD1 | v1.4.0 | Every frame starts with a protocol version byte, for concurrent workflows. Earlier releases, such as v1.0.0, have no version byte. |
0xD1 to 0xD2 | v1.8.0 | The ACS moves from an inline snapshot to block-by-block streaming. |
0xD2 to 0xD3 | Releases after v1.13.0 | Contracts invitations need deployment-intent commitments. Membership workflows end with a RetireLegacyKeys phase. |
Backup, recovery, and upgrades gives the lockstep upgrade procedure and the extra steps for the 0xD3 upgrade.
Production checklist
Section titled “Production checklist”- A pinned release tag or digest, preferably the
-nonrootimage - One replica and a persistent volume owned by uid 65532
- The identity provider,
DECPM_ADMIN_ROLEand operator roles -
DECPM_DB_ENCRYPTION_KEYin the secret store - TLS at the ingress, and TLS or mTLS to Canton where the participant serves it
- A raw TCP path to the Noise port, and
DECPM_PUBLIC_ADDRESSset - The metrics port kept private, or turned off
- The first party configuration saved before the HTTP listener opens to other users
-
kms:Signgranted on AWS KMS participants - Liveness probes on
/healthz, logs, metrics, alerts and resource limits - A tested backup and restore
- A lockstep upgrade and rollback plan for wire-version releases
- Incident and support contacts
Technical sources
Section titled “Technical sources”- Deployment guide
- Release Dockerfile
- Release workflow
- Architecture: Noise protocol server
- Noise wire version and key file
- Minimum peer version
- Server startup and listeners
- Liveness endpoint
- Authentication middleware
- Signing with AWS KMS party keys
Related pages
Section titled “Related pages”- Configuration reference
- Authentication and operator roles
- Security architecture
- Monitoring and logging
- Backup, recovery, and upgrades
- Compatibility, releases, and troubleshooting
Next step
Section titled “Next step”Lock down operator access: Authentication and operator roles.
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: