Key management modes
| Mode | Description | Best for |
|---|---|---|
| Quelden-managed | Quelden’s HSM infrastructure holds master keys | Getting started quickly |
| BYOK (Bring Your Own Key) | Your cloud KMS holds master keys | AWS / Azure / GCP customers |
| HYOK (Hold Your Own Key) | Your on-premise HSM holds master keys | Air-gapped, regulated environments |
In all three modes, Quelden cannot decrypt your files. The difference is who controls the master key and where it is stored.
AWS KMS (BYOK)
Prerequisites
- An AWS account with KMS access
- A symmetric CMK (Customer Managed Key) in your preferred region
- An IAM role Enclave can assume via cross-account role assumption
Setup
- In AWS IAM, create a role
enclave-kms-rolewith the following trust policy:
-
Attach a policy allowing
kms:Encrypt,kms:Decrypt,kms:GenerateDataKeyon your CMK. -
In Enclave, navigate to Settings → Key Management → Add KMS and enter:
- KMS type: AWS
- Key ARN
- Role ARN
- External ID (shown in the Enclave UI)
- Click Verify — Enclave will perform a test wrap/unwrap to confirm connectivity.
Azure Key Vault (BYOK)
- Create a Key Vault in your Azure subscription
- Create an RSA-HSM key (4096-bit recommended)
- Register an Enclave service principal in your Azure AD tenant
- Grant the service principal
Key WrapandKey Unwrappermissions on the vault
GCP Cloud KMS (BYOK)
- Create a KeyRing and CryptoKey in Cloud KMS
- Create a service account with
cloudkms.cryptoKeyEncrypterDecrypterrole - Download the service account JSON key
- Upload it in Settings → Key Management → Add KMS
On-premise HSM via KMIP (HYOK)
Enclave supports any KMIP 1.4+ compliant HSM:- Thales Luna Network HSM
- Entrust nShield
- Utimaco
- AWS CloudHSM (KMIP mode)
Configuration
- Provision a KMIP client certificate for Enclave (from your HSM admin)
- In Enclave: Settings → Key Management → Add KMIP
- Enter:
- KMIP endpoint (host:port)
- Client certificate (PEM)
- Client key (PEM)
- CA certificate (PEM)
Key rotation
Key rotation is managed in your KMS. After rotating the master key:- Trigger a re-wrap in Enclave via Settings → Key Management → Rotate
- Enclave decrypts existing KEKs with the old master key and re-wraps them with the new one
- The rotation event is recorded in the audit log with the old and new key IDs

