Skip to main content

Third-party Daml apps

As an SV operator, you are most welcome to review, install, and use third-party Daml apps provided you install third-party Daml apps on a validator node separate from your SV node.Installing additional Daml apps on an SV node is not supported and may compromise its secure operations. In particular, please refrain from manually uploading additional .dar files to your SV node or manually connecting it to third-party synchronizers.

Using an external KMS for managing participant keys

By default, Canton participants use cryptographic keys that are generated by the participant itself and stored in the regular database used by the participant. To improve key security, participants can be configured to use an external Key Management System (KMS) to generate and store keys. Please consult the official Canton documentation on KMS support for additional details and a list of supported KMS providers. Participants deployed as part of a Splice deployment support the External Key Storage mode of KMS usage. In the following, we describe how to configure an SV so that its participant keys are managed by an external KMS. This guide assumes that you are following sv-helm for deploying your SV. Official support for the KMS-based operation of sequencers and mediators that are part of an SV deployment is planned for a future release.

Migrating an existing SV to use an external KMS for participant keys

It is not supported to migrate an existing participant from “non-KMS-based” to “KMS-based” operation, or to migrate from one KMS provider to another. The main reason for this is that a participant’s root namespace key cannot be rotated, and importing it from a potentially unsafe location into a KMS would diminish the security gain of using the KMS. Moreover, some KMS providers do not support importing existing keys at all and can only be used for managing keys generated by the KMS itself. One approach for switching to use KMS for SV participant keys while minimizing the risk of losing rewards is to:
  1. Set up a fresh SV from scratch with the desired KMS configuration. (Rest of this guide.) Coordinate with the other SV operators to onboard it with weight 0.
  2. Coordinate with the other SV operators to move your SV weight to the new SV, setting the weight of the older SV to 0.
  3. Transfer all relevant assets from the older SV to a validator or the new KMS-enabled SV.
  4. Coordinate with the other SV operators to offboard the older SV.
  5. Retire the older SV.

Configuring a fresh SV to use an external KMS

The setup of an SV participant to use an external KMS is identical to the setup of a validator participant with KMS. It involves configuration changes to the splice-participant Helm chart that depend on the KMS provider you choose. Please refer to the Canton documentation on configuring KMS support for determining the right configuration options to match your desired KMS provider and setup. We provide minimal Helm configuration examples for Google Cloud (GCP) KMS and Amazon Web Services (AWS) KMS below. Whatever KMS provider you choose, please note:
  • Values in the kms section of the participant Helm chart are implicitly mapped to the Canton participant crypto.kms config. This implies that all configuration keys supported by Canton are supported, not only the ones shown in the examples above. Key names in camelCase are automatically converted to kebab-case.
  • For setting extra environment variables and mounting files to configure authentication to the KMS, you can use the .additionalEnvVars, .extraVolumeMounts, and .extraVolumes fields of the Splice participant Helm chart (see the examples).
  • Make sure that your KMS configuration is always included in the values files you pass to helm install participant ... or helm upgrade participant ....
  • Canton participants use session keys to reduce the number of asymmetric cryptographic operations during protocol execution, improving performance and reducing (KMS) costs. By default, Splice participants use session encryption keys with a lifetime of one hour. The security implication for KMS-enabled participants is that an adversary with access to a memory snapshot might be able to obtain symmetric keys that allow decrypting up to one hour of encrypted messages. The default session key parameters can be overridden via configuration overrides. Please refer to the Canton documentation for an overview of the relevant parameters. The use of session signing keys is only supported for KMS-enabled participants and must be enabled explicitly (see the configuration examples for GCP and AWS below).
Also recall that you need to deploy a fresh participant in order for KMS to be used correctly, which implies that you will need to set up the remaining SV components afresh as well (see above).
Google Cloud KMS
The mock configuration below for GCP KMS is included in splice-node/examples/sv-helm/kms-participant-gcp-values.yaml:
Please refer to the Canton documentation for a list of supported configuration options and their meaning, as well as for instructions on configuring authentication to the KMS. Note again that Splice participants support the External Key Storage mode of KMS usage, so that (per the relevant Canton docs) the authentication credentials you supply must correspond to a GCP service account with the following IAM permissions:
  • cloudkms.cryptoKeyVersions.create
  • cloudkms.cryptoKeyVersions.useToDecrypt
  • cloudkms.cryptoKeyVersions.useToSign
  • cloudkms.cryptoKeyVersions.get
  • cloudkms.cryptoKeyVersions.viewPublicKey
For example, you can grant the Cloud KMS Admin and Cloud KMS Crypto Operator roles to the validator KMS service account.
Amazon Web Services KMS
The mock configuration below for AWS KMS is included in splice-node/examples/sv-helm/kms-participant-aws-values.yaml:
Please refer to the Canton documentation for a list of supported configuration options and their meaning, as well as for instructions on configuring authentication to the KMS. Note again that Splice participants support the External Key Storage mode of KMS usage, so that (per the relevant Canton docs) the authentication credentials you supply must correspond to an entity with the following IAM permissions:
  • kms:CreateKey
  • kms:TagResource
  • kms:Decrypt
  • kms:Sign
  • kms:DescribeKey
  • kms:GetPublicKey