- Decentralization Manager
- Operations and reference
- Security architecture
Security architecture
Architecture overview · Audit and design acknowledgements
Security model
Section titled “Security model”Decentralization Manager combines several security layers. The layers are host controls, operator authentication, Canton authorization, encrypted peer communication, protected local state, supply-chain controls and on-ledger governance. No single layer secures the whole deployment.
Some actions can act as the Decentralized Party without a governance vote. How it works lists these paths and what limits each one.
Each organization operates its own Decentralization Manager node. The organization controls its accounts, identity provider, Canton credentials, local storage, network exposure, peer records and upgrades. On-ledger governance limits application actions. It does not protect a compromised host or incorrect off-ledger input.
Trust boundaries
Section titled “Trust boundaries”flowchart LR
A["Operator browser"] -->|"HTTPS and OIDC token"| B
W["Wallet or tenant client"] -->|"Tenant API key"| B
S["Metrics scraper"] -->|"No authentication"| M
G["Peer Decentralization Manager node"] <-->|"Noise transport, allowlisted keys"| P
subgraph DM["Decentralization Manager node"]
B["HTTP API and web UI"]
M["Metrics listener"]
P["Noise peer listener"]
D["Noise key, database, and DARs"]
end
B -->|"Token validation"| C["Identity provider"]
B -->|"Privileged connection"| E["Canton Admin API"]
B -->|"Party credentials"| F["Canton Ledger API"]
B -->|"kms:Sign, KMS-backed participants only"| K["AWS KMS"]
E --> H["Canton participant"]
F --> H
H --> I["Canton Network"]
Treat every arrow as a separate boundary. Each boundary needs its own authentication, authorization, encryption, validation, logging and failure handling.
Inbound surfaces
Section titled “Inbound surfaces”| Surface | Default port | Authentication | Hardening |
|---|---|---|---|
| HTTP API and web UI | 8080 (DECPM_PORT) | OIDC bearer token from Keycloak or Auth0. Privileged routes also need the role in DECPM_ADMIN_ROLE. | Set DECPM_ADMIN_ROLE. If it is unset, every authenticated caller acts as an admin. Put TLS in front of the port. |
Public paths: /, /index.html, static assets, /auth-config, /healthz, /.well-known/* | 8080 | None | These paths return the web UI, the public login settings and a liveness response. |
First PUT /party-config on a new node | 8080 | None, while the node stores no party credentials | Configure the first party right after the first start. Keep the HTTP port on a trusted network until then. |
Tenant API, /v0/tenant/* | 8080 | Bearer key from DECPM_TENANT_API_KEYS. The key bypasses the operator token and the admin role. | Leave the variable unset unless the node hosts external parties or adds hosts to a local party. Keep the keys in a secret store. |
| Noise peer listener | 9000 (DECPM_NOISE_PORT) | Allowlisted secp256k1 peer keys. Each peer pair derives a pre-shared key through ECDH. | Verify peer records out of band. Expose only this port to peers. |
Metrics listener, /metrics | 9464 (DECPM_METRICS_PORT) | None | Keep the port inside the private network. Set DECPM_METRICS_PORT=0 if no collector reads it. |
The metrics listener has no authentication. It binds to DECPM_HOST, the same address as the HTTP API. Metric labels include party IDs. The Monitoring and logging page describes the metrics.
Protected local state
Section titled “Protected local state”The data directory holds the Noise key file data/noise.key, the SQLite database and the DAR files. The database path defaults to data/decpm.db. The database stores the party credentials, the workflow payloads and each party’s public key bundle.
DECPM_DB_ENCRYPTION_KEY encrypts these database values with AES-256-GCM. Decentralization Manager derives the encryption key from the passphrase with SHA-256. When the variable is unset, the database stores the party credentials in plaintext.
- Use a long random passphrase, and keep it in a secret store.
- Back up the passphrase with the database. Decentralization Manager cannot read values that a different passphrase encrypted.
- Protect the data volume. The passphrase does not encrypt the Noise key file.
Daml key custody
Section titled “Daml key custody”Each participant node of a Decentralized Party holds two keys. The namespace key signs topology transactions. The Daml key signs ledger transactions for the party, for example the governance contract deployment.
The participant signs topology transactions itself. Canton has no API that signs a ledger transaction with a vault key. Decentralization Manager therefore signs the ledger transactions itself. The crypto provider of the participant decides how Decentralization Manager signs:
| Participant crypto provider | Location of the Daml private key | How Decentralization Manager signs |
|---|---|---|
| JCE | The participant’s vault. The key is exportable. | It exports the key over the Admin API with VaultService.ExportKeyPair each time it signs. It signs in memory with Ed25519 and then wipes the key bytes. It never stores the private key in its database or on disk. |
| AWS KMS | AWS KMS. The key cannot leave AWS KMS. | It calls the AWS KMS Sign API with the key ID that the participant reports. The Decentralization Manager IAM role needs kms:Sign on the key. |
Decentralization Manager selects the path from the key metadata. A key with a KMS key ID uses AWS KMS. A key without one uses the export path. Before each submission, Decentralization Manager verifies every signature against the public key that the participant registered.
KMS key ID validation
Section titled “KMS key ID validation”Decentralization Manager accepts only a bare AWS KMS key ID in the participant’s key metadata. A bare key ID is a UUID, or mrk- followed by 32 hexadecimal digits. Decentralization Manager rejects an ARN, an alias or a malformed ID before it calls Sign. The error is Invalid kms_key_id.
AWS resolves a bare key ID in the account and region of the Decentralization Manager credentials. Key metadata therefore cannot redirect signing to a key in another account. Sign with AWS KMS describes the IAM setup.
Coordinator and peer trust
Section titled “Coordinator and peer trust”A coordinator orders the workflow steps, collects the signatures and submits the result. It also builds the payloads: topology proposals, DAR files and prepared ledger submissions. A peer does not trust the content of these payloads. The Noise channel proves the identity of the coordinator, not the intent of the peer operator.
The peer operator accepts an invitation once per workflow run. The invitation names the party, the participant nodes, the threshold and the participant node that joins or leaves. It also names the DAR files and their hashes. Before a peer signs or installs anything, it checks the payload against the accepted invitation:
- The command belongs to the accepted workflow kind.
- Each topology proposal targets the accepted party, participant nodes and threshold. It also keeps the namespace of this node among the owners.
- For kick, add-party and change-threshold, each proposal must make exactly the expected change to the current on-chain state.
- The peer recomputes the hash of each prepared ledger submission. The submission must act as the accepted party and match the accepted contract creates.
- Each DAR file must match the accepted file name and SHA-256 hash.
These checks limit what a coordinator can get a signature for. They do not make the coordinator trustworthy. The architecture document lists the known gaps:
- During onboarding, a peer cannot verify the namespaces and signing keys of the other participant nodes.
- An add-party namespace change does not tie the added owner to the new participant node.
- A kick ties the removed owner to the participant node that leaves only through the records of each peer. The signing key that a kick removes is not tied to any participant node.
- A legacy
PartyToKeyMappingdoes not limit how many keys a proposal removes. - A peer that accepts a contracts invitation authorizes the contract creates that the invitation states. Review them before you accept.
- An older coordinator can send an invitation without DAR hashes. The peer then checks the file names only and logs a warning.
Reward delegation authority
Section titled “Reward delegation authority”A reward delegation lets any one listed assigner reassign the unassigned reward coupons of a Decentralized Party. The assigner needs no vote. The delegation contract fixes the beneficiary split. An assigner therefore controls the timing of an assignment, not its destination. Only a governance vote can replace or revoke the delegation.
Decentralization Manager also checks the identity of the delegation and the coupons:
- Before each assignment, it reads the template of the delegation from the ledger. It refuses the delegation unless the template is
Governance.Rewards.CouponReassignmentDelegation:CouponReassignmentDelegationin the configuredgovernance-rewards-automation-v1package. - It compares the full party ID of this node’s member with the assigner list.
- It assigns only
Splice.Amulet:RewardCouponV2coupons from the DSO that the delegation names.
Reward automation describes all the checks.
Governance limits
Section titled “Governance limits”Governance authorizes application actions on Canton. It does not prove that every input, package, host or external system is safe. Members must review the proposal, the referenced contracts, the package versions and the expected effects before they confirm.
GovernanceRules_ConfirmAction accepts a confirmation only while the live rules list the proposer as a member or an additional proposer. Decentralization Manager flags a proposal whose proposer the rules no longer list:
- The card in Approvals shows Proposer not authorized and hides Confirm.
- Cancel proposal, Revoke and Execute stay available. Only the proposer can cancel the proposal.
- If the node cannot read the rules contract or the proposer, the card keeps Confirm. The ledger then decides.
Do not treat a fixed approval count as a universal product property. GovernanceRules permits a 1-of-1 configuration for bootstrap and development. Audit and design acknowledgements explains this decision.
Control ownership
Section titled “Control ownership”| Boundary | Primary controls | Canonical procedure |
|---|---|---|
| Operator access | OIDC, PKCE, admin role, session and account controls | Authentication and operator roles |
| Canton connections | Separate Admin and Ledger credentials, least privilege, restricted network paths, TLS or mTLS | Production deployment |
| Daml key signing | Admin API restriction, AWS KMS key policy, kms:Sign scope | Sign with AWS KMS |
| Peer communication | Persistent Noise identity, encrypted transport, allowlisted keys, out-of-band verification | Connect peers |
| Tenant API | Tenant API keys, secret storage, network restriction | Decentralize an external party |
| Metrics | Private network for the metrics port, or DECPM_METRICS_PORT=0 | Monitoring and logging |
| Persistent data | Restricted storage, DECPM_DB_ENCRYPTION_KEY, protected backups, consistent recovery | Backup, recovery, and upgrades |
| DAR supply chain | Approved source, version pinning, hashes, review and package comparison | Package and contract operations |
| Governance | On-ledger proposals, confirmations, active rules, execution, expiry and result verification | Governance lifecycle |
| Reward automation | Fixed split, assigner list, delegation and coupon identity checks | Reward automation |
| Release compatibility | Approved versions, peer protocol, migrations, known issues and support status | Compatibility, releases, and troubleshooting |
Threat model and residual risks
Section titled “Threat model and residual risks”- Compromised operator account: can call the routes and use the Canton rights that the account has.
- Compromised host: can expose local credentials, falsify the UI, interrupt workflows or misuse the assigned Canton rights. On a JCE participant, it can also export the party’s Daml private key.
- Leaked tenant API key: gives access to every
/v0/tenant/*endpoint on the node without an operator token. - Exposed metrics port: discloses party IDs and operational counters to any caller.
- Unset database encryption key: leaves the party credentials readable to anyone who can read the database file.
- Wrong peer record: creates encrypted trust with the wrong endpoint. Encryption does not replace identity verification.
- Lost or replaced Noise identity: changes how peers recognize the node. The replacement needs coordination with every peer.
- Malicious or incompatible DAR: can affect application behavior, even after a successful distribution.
- Mixed peer versions: can interrupt coordination when the peer protocol changes.
- Compromised coordinator: can get signatures only for payloads that pass the peer checks. The known gaps above still apply.
- Coordinator failure: can stop workflow progress. It does not invalidate the existing Decentralized Party.
- Compromised reward assigner: can assign coupons early or late, but only to the approved split.
- Inconsistent restore: can keep only part of the identity, credential, package or workflow state.
- Sensitive logs or support exports: can leak credentials or confidential identifiers. Sanitize them before you share them.
Audit and disclosure
Section titled “Audit and disclosure”Quantstamp reviewed the governance Daml packages. Audit and design acknowledgements lists the reviewed revisions, the scope, the findings and the design acknowledgements. An audit is point-in-time evidence. It is not a guarantee for every deployment or later release.
Report a vulnerability through a private channel. Do not use public issues, discussions or pull requests.
- GitHub private vulnerability reporting (preferred): open the Security tab of the repository and select Report a vulnerability.
- Email:
eng@bitsafe.finance.
The project applies security fixes to the latest release and to the main branch.
Technical sources
Section titled “Technical sources”- Security policy
- Architecture
- Deployment guide
- Signing with AWS KMS party keys
- Audit design acknowledgements
- Authentication middleware
- Database encryption
- Signing backends
- Reward automation
Next step
Section titled “Next step”Apply the controls: Production deployment.
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: