Key management modes
These modes control who holds the master (wrapping) key for envelope
encryption. In BYOK/HYOK the key lives in your own KMS/HSM; in Platform-managed
it lives in Kvelden’s HSM. In all modes files are encrypted with a per-file key —
but because Enclave can reach the wrapping key, it can decrypt server-side to
serve your downloads and any workflows you enable (DLP, signing). For content
that Enclave itself can never read, use a
Zero-Knowledge or ZK-Strict room, where keys are held
only on your devices.
Prerequisites
Before connecting a KMS:- Owner or Security Officer role in Enclave
- Network connectivity between your Enclave deployment and the KMS endpoint (relevant for private-cloud and on-premise deployments)
Key ownership & least-privilege permissions
Enclave is use-only: it wraps and unwraps file DEKs with your keys, but it never creates, disables, rotates, or deletes a key in your KMS. You create keys in your own KMS console (setting their key policy, rotation schedule, and grants) and adopt them into Enclave. Your KMS custodian owns the full key lifecycle — this is the separation of duties auditors expect (SOC 2, ISO 27001, PCI DSS). Because Enclave never manages key state, the credentials you grant it can be scoped to the minimum needed to encrypt and decrypt:- AWS KMS
- Thales CipherTrust (KMIP)
Scope the statement to the specific key ARN(s) you adopt.
A key you adopt must already exist and be usable by the credentials/identity you
configured. Archiving a key in Enclave only stops Enclave from using it — it does
not touch your KMS. To truly retire a key, do so in your KMS after migrating any
files still encrypted under it.
BYOK Connections
The BYOK Connections tab lists all KMS connections configured for your organisation. Click a connection name to view its provisioned keys and connection details.Adding a connection
- Navigate to Security → Key Management → BYOK Connections
- Click Add KMS Connection
- Select a provider and fill in the required fields
- Click Save — Enclave stores the configuration and runs an automatic connection test
The wizard does not ask you to configure a key scope. Scopes are assigned separately through Encryption Policies — see Encryption Policies.
Connection statuses
Use the Test Connection button on any row to re-verify at any time.
KMS providers
AWS KMS
BYOK via IAM Role (recommended) or static credentials. Supports symmetric CMKs in any AWS region.
Thales CipherTrust
HYOK via KMIP over mutual TLS. For on-premise HSMs and air-gapped environments.
Azure Key Vault and GCP Cloud KMS integrations are on the roadmap. Contact support@kvelden.com if either is a requirement for your deployment.
Disabling and deleting connections
- Disable — stops Enclave from using the connection for new operations. Existing encrypted data is unaffected.
- Delete — permanently removes the connection. Enclave will block deletion if any files are still encrypted under this KMS. Migrate or delete those files first.
Disable a connection before deleting it. You cannot delete an active connection.
Platform KMS
The Platform KMS tab shows KMS connections managed by the Kvelden platform team on behalf of your organisation, backed by Kvelden’s HSM infrastructure. A platform KMS appears here — and becomes selectable in your Encryption Policies — only once the platform team has provisioned a dedicated key for your organisation. Until then, no platform KMS option is shown.How it works
- Once provisioned for your organisation, the platform KMS remains available even after you add your own BYOK connection, and stays visible under this tab.
- You cannot disable or delete a platform KMS connection — these are managed exclusively by the Kvelden platform team.
- Adding a BYOK connection does not deactivate the platform KMS. Files uploaded before BYOK was configured remain wrapped under the platform key until you run a DEK Key Migration to move them.
What it protects
Platform KMS keys wrap the DEKs of all files that do not yet have a BYOK encryption policy applied. This ensures every file in your vault has a valid key wrapping layer from day one, even before any BYOK configuration is in place.Coexistence with BYOK
Platform KMS and BYOK connections operate side by side. Once you configure a BYOK connection and set an encryption policy, new file uploads use your BYOK key. Existing files continue to use the platform key until migrated. You control the migration timeline — see DEK Key Migration.Platform KMS connections are managed by the Kvelden platform team. Disable, delete, and test actions are not available to tenant users.
Provisioned Keys
Each BYOK KMS connection can have one or more CMKs (Customer Managed Keys) registered against it. A provisioned key is a reference to a specific key ID in your external KMS — Enclave uses it to wrap and unwrap file DEKs. Click any connection name in the BYOK Connections table to open the Connection Detail page, which shows:- Connection metadata (protocol, org unit, creation date, connection ID)
- All provisioned keys for that connection, along with their current health status
Provisioning a key
Provisioning adopts a key you already created in your KMS — Enclave does not create keys. Create the CMK in your AWS KMS / CipherTrust console first, grant it the use-only permissions above, then:- Click Provision a Key
- Provide either identifier (Enclave resolves and validates the other against your KMS):
At least one of Key Name / Key ID is required. For Thales the Name is
authoritative and rotation-safe: the current version’s name is always stored so a
later rotation is followed automatically.
- Click Adopt Key — Enclave validates the key with a test wrap/unwrap and registers it
Scope and encryption policy assignment are managed separately in Encryption Policies — see Encryption Policies.
Rotating a Thales key? When a CipherTrust key is provisioned with its Key Name, Enclave follows rotations automatically: new data uses the new version and older data stays readable. Use the Key Rotation panel to move existing files onto the current version on your schedule. Full lifecycle and safety runbook: Thales CipherTrust → Key rotation.
Key Health Check
The Run Health Check button on the connection detail page performs a live wrap-and-unwrap test against every provisioned key in that connection, in sequence. Use this to verify your KMS is reachable and that all keys are operational before a file operation or a scheduled audit. Running a check- Open the connection detail page (Security → Key Management → BYOK Connections → click a connection name)
- Click Run Health Check
- Enclave tests each key in turn — a progress indicator is shown per row as the check runs
- When all keys have been tested, a Health Summary banner appears at the top of the key table
Health Summary banner
Health Report
Once a health check has been run, a Download Report button appears alongside Run Health Check. Clicking it generates and downloads a branded PDF health report namedkms-health-report-{connection}-{date}.pdf.
Removing a key registration
- Click the Actions menu on the key row
- Select Remove Key Registration
Encryption Policies
Encryption Policies is a dedicated tab within Security → Key Management that controls which CMK is used for new file encryptions at each scope level. Policies decouple key provisioning from key selection — you can provision many keys across multiple connections and choose precisely which one is active for each scope.Policy table
Tenant default key
The top of the Encryption Policies page shows a Tenant Default Key status card:- Active — a tenant-wide policy is set; all unscoped files use this CMK for new encryptions
- No policy set — new uploads fall back to the Platform KMS until a BYOK policy is assigned
Assigning a policy
- Click Assign Policy
- Step 1 — Select scope level (Tenant-wide, Domain, or Department) and the KMS connection
- Step 2 — Pick a specific provisioned key, or leave as First active
- Click Assign to save
Only one policy per scope can be active at a time. Assigning a new policy to an existing scope replaces the current one immediately. Existing encrypted files are not affected.
Pinned CMK vs First active
Key scopes
A department-scoped policy overrides a domain-scoped policy, which overrides the tenant-wide policy.
Removing a policy
Click the Delete icon on a policy row to remove it. New encryptions in that scope fall back to the next broader scope policy (or to the Platform KMS if none exists).DEK Key Migration
DEK Key Migration lets you re-wrap all file encryption keys from one key or KMS vendor to another key — for example moving from the Platform KMS to your BYOK key, or from AWS KMS to Thales CipherTrust. File content is never re-encrypted or moved. What changes: The wrapped DEK stored for each file (the key wrapping layer only).What does not change: File ciphertext, storage location, permissions, or metadata. Files remain fully accessible during migration.
Migration vs. Rotation. Use DEK Key Migration to move DEKs to a different key or vendor. Use Key Rotation to move DEKs onto a newer version of the same key after you rotate it in your KMS.
Running a migration
1
Open DEK Key Migration
Navigate to Security → Key Management → BYOK Connections. The DEK Key Migration panel appears below the connections table.
2
Select source and target KMS
Use the From and To selectors to choose the source KMS and the target KMS.
3
Preview the migration
Click Preview Migration. Enclave counts:
4
Start the migration
Review the plan and click Start Migration. Enclave re-wraps DEKs in the background — you can navigate away and return to check progress.
Monitoring progress
Pausing, resuming, and cancelling
Migration History
Click View History to see all past migrations — route, status, initiated-by, file counts, and duration.Key Rotation
Key Rotation re-wraps the data keys of files that are still bound to an older version of a key onto its current version, after you rotate that key in your KMS. Like migration, it re-wraps the DEK only — file content is never touched and files stay readable throughout.Rotation vs. Migration. Rotation stays on the same key and just moves files onto its newest version. DEK Key Migration moves DEKs to a different key or KMS vendor.
When to use it
After you rotate a key in CipherTrust Manager, Enclave automatically wraps new data with the new version and notifies your Owners and Security Officers. Existing files stay readable on their original versions. Run a rekey when you want to move that existing data onto the current version — for example, before retiring an old key version in CipherTrust Manager.Running a rekey
1
Open Key Rotation
Navigate to Security → Key Management → BYOK Connections. The Key Rotation panel appears below the DEK Key Migration panel.
2
Select the key
Choose the CipherTrust key from the Key selector. Only Thales keys configured with a Key Name appear here.
3
Review the status
Enclave shows how the key’s files are distributed across versions:
4
Start the rekey
If any files are on an older version, click Rekey to current version and confirm. Enclave re-wraps them in the background — you can navigate away and return to check progress.