The validator security guide says to keep participant keys in a KMS or HSM. Today the only supported options are AWS KMS and Google Cloud KMS (and I think Azure), so operators who self-host, run on another cloud, or have to use their own HSM have no maintained way to follow that advice.
Saxon has released two Apache-2.0 Canton KMS drivers:
Both pass Digital Asset’s KMS driver test suite and have run a DevNet validator end to end. They also load unchanged in the Splice 0.10.0 participant image.
Dev Fund proposal PR #950 ( Proposal: Self-Hosted KMS Drivers for Canton Validators (RFP 26) by IanLawrence · Pull Request #950 · canton-foundation/canton-dev-fund · GitHub ) asks for a year of maintenance for both drivers across Canton and Splice releases, a PKCS#11 driver for hardware HSMs (tested on a YubiHSM 2), and the testing and documentation other operators need to adopt them. The proposal’s success measure is independent operators running the drivers. It responds to RFP 26 (Key Management and Signing Controls) and RFP 7.
The proposal still needs a Tech & Ops Champion. If you run validators and this would be useful to you, or if you can champion the proposal, please reply here or comment on the PR. We’d also like to hear from anyone who needs a particular HSM or KMS supported.
Cheers!
Good to see this. Is the PKCS#11 driver intended to cover network-attached HSMs via vendor PKCS#11 modules as well as USB tokens like the YubiHSM 2? For self-hosted validators, keeping the HSM off the validator host is often important, so it would help to know whether that is in the first year’s scope.
Thanks, good question @noahevans
Yes, network-attached HSMs are part of the design. The driver talks only to the standard PKCS#11 interface and loads whatever vendor module the operator configures, with the module path, slot and PIN source set in the driver config. It has no code specific to YubiHSM or any other vendor, so a network HSM’s client library is handled the same way as a local token’s.
The YubiHSM 2 doesn’t actually tie the keys to the validator host either. Its PKCS#11 module talks to yubihsm-connector over HTTP, so the HSM can sit on a separate machine. That’s the setup we plan to use for the hardware test, so the off-host case gets tested from the start.
What the first year does not commit to is testing specific network HSMs like Thales Luna, Entrust nShield or AWS CloudHSM. We don’t have that hardware. The committed tests are SoftHSM2 in CI and a YubiHSM 2 before release. Two things vary between vendors and are worth knowing about now:
- Key types: Ed25519, Canton’s default, needs PKCS#11 3.0 CKM_EDDSA. Where a module doesn’t support it, the participant can be configured to use ECDSA P-256/P-384 instead.
- Latency: every signing operation goes over the network to the HSM. Canton’s session signing keys keep most of that off the hot path, but we’d want to measure it on real network HSMs before making any claims.
If an operator running a network HSM wants to try the driver during Milestone 2, we’d be glad to work with them and publish the results alongside the YubiHSM report.
In the meantime, for anyone who wants keys off the validator host now, the OpenBao/Vault Transit driver already does that. It isn’t an HSM, but the keys are non-exportable and stay on the OpenBao server.
A question from another validator operator today led us to test a setup I think some operators may want: an offline root namespace key with the node’s intermediate key held in a KMS. Splice’s own offline-root test doesn’t use a KMS yet (TODO(#917)), so here’s what we found (local Canton 3.6.4, Scaleway driver).
What worked
- The root key was generated and used only in a separate offline process. It signed the root delegation and a delegation to an intermediate key in Scaleway Key Manager.
- The participant registered keys that the key owner had created in advance, initialised from the two certificates, joined a synchronizer, pinged and hosted a party. The node never held the root key.
- Rotation: a second KMS intermediate plus a revocation of the first, both signed offline. The party kept its ID, and the revoked key could no longer authorise anything.
- The node’s API key could only read, sign and decrypt. Creating, deleting or disabling keys was refused.
That’s the split a hosting operator wants. The client holds the root offline and controls the KMS, and if the operator is breached, the client revokes the intermediate and issues a new one without changing party IDs.
Two things to watch
- init_id with delegation files makes the node generate its other keys in the KMS unless you set init.generate-topology-transactions-and-keys = false. With use-only credentials, create the keys in advance and register them.
- Disabling the keys in the KMS stopped the node only after about 3 minutes, because session signing keys keep it signing for their lifetime. It’s a lever, not an instant kill switch.
If you’re running, or planning, an offline-root setup with a KMS, I’d like to hear how it goes.