Privasys
Enclave Vaults

Overview

A distributed virtual HSM (vHSM) built on a constellation of attested SGX enclaves.

Enclave Vaults is a distributed virtual HSM (vHSM). Each vault instance is a small key-management service that runs inside an Intel SGX enclave: it holds typed key objects, executes cryptographic operations on them inside the enclave, and refuses to act outside the policy attached to each key. A constellation of independent vault instances forms a single logical key-management surface, with redundancy across machines and an information-theoretic distribution path for the secrets that warrant it.

This page is a one-screen orientation. The Architecture page describes the runtime in detail, the Access Control page covers policies, principals, and approvals, the Key lifecycle page covers expiry, renewal and constellations, and the Standard Interfaces page covers the PKCS#11, KMIP, and REST surfaces your existing software can use to reach a vault-held key.

Where Enclave Vaults sits

ApproachTrust anchorWhere the master key livesCost
Hardware Security ModuleTamper-resistant silicon, FIPS-certifiedOne device, or a small replicated cluster€30k to €100k per appliance
Cloud KMSThe cloud providerProvider-operated HSMsLow, but you trust the provider
Software vaultOperating systemProcess memory after unsealingLow, no hardware boundary
Enclave VaultsIndependent SGX enclaves, with Shamir Secret Sharing for the secrets that need itInside per-vault sealed storage; sensitive shared secrets are split across the constellationOpen source, runs on commodity SGX servers

Enclave Vaults is the right fit when you want HSM-style key custody without putting the trust of the system in any one device, provider, or operator.

Four properties to remember

  1. Keys live inside attested enclaves. Typed key objects (P-256 signing keys, AES data keys, HMAC keys) sit in one vault's sealed state. A threshold Ed25519 key is held by no vault at all: the vaults generate it together, each keeps a share, and any t of them sign together. Callers ask the vaults to Sign, Wrap, Unwrap or Mac. Raw key material does not cross the enclave boundary.
  2. Distributed trust for secrets. A secret the owner needs back in cleartext is stored as RawShare keys: it is split with Shamir Secret Sharing, one share per vault, and reconstructed by the owner from any k of them. A single compromised vault leaks one share, which reveals nothing about the secret.
  3. Every operation is gated by a policy that the enclave enforces. A KeyPolicy describes which OIDC identities, which calling enclaves, and which fresh approvals are required for each operation. The enclave refuses anything that does not match. There is no admin override.
  4. Keys expire. Every key lives at most 90 days. The vault is designed for temporary key management, such as carrying an app's keys across an upgrade, not for long-term storage: the app holds its keys, and a key that must live longer is renewed actively, the way a Let's Encrypt certificate is. See Key lifecycle.

Typed keys and in-enclave operations

The v0.19 redesign reorganised the vault around typed keys and in-enclave operations, and that is the shape today. The earlier information-theoretic distribution of opaque secrets across attested enclaves is still here as the RawShare key type.

  • Typed key objects with in-enclave operations. Aes256GcmKey, P256SigningKey and HmacSha256Key. These keys are non-exportable: the operation runs inside the enclave, only the result leaves. Signing covers both a message the vault hashes and a pre-computed digest the vault signs raw (the path TLS stacks and code signers use).
  • Threshold Ed25519 keys. FrostEd25519: the vaults generate one Ed25519 key together (FROST, RFC 9591), and any t of them produce a standard Ed25519 signature. No vault and no client ever holds the key, and it is never exportable. See Pattern C.
  • A richer KeyPolicy. Per-operation rules with conditions (OidcStepUp, an approval from the owner's wallet bound to the operation), a separate Mutability surface, and explicit principals: an owner, managers and auditors identified by OIDC, and the attested enclaves allowed to use the key.
  • A controlled lifecycle for caller-enclave version changes. When the customer application that consumes a key is rebuilt and its MRENCLAVE changes from v(N) to v(N+1), the new measurement is held in a pending slot until the key owner (and managers, if configured) explicitly approves promoting it into the key's attestation_profiles. The platform never auto-grants a new measurement access to existing key material; this is a protocol invariant.

A user-first KMS with standard interfaces

Two capabilities were added on top of that core.

  • A developer can own keys. Custody is no longer reserved for platform enclaves. Any user can create a vault, hold signing and wrapping keys in it, and author the policy that governs them, through the Privasys CLI (privasys vault ...) and a REST API shaped like the cloud KMS surfaces developers already know. The API is a client-side proxy, so the data plane stays a direct, attested channel to the constellation; the platform mints the grant and enforces quotas but never sees the key material.
  • Existing software reaches a vault key unchanged. A PKCS#11 3.1 module puts a vault-held key behind OpenSSL, Java, TLS servers, and code-signing tools, and a KMIP 2.1 gateway lets enterprise key-management software use the constellation as a remote key manager. See Standard Interfaces.

Components

ComponentRepositoryRole
Vault enclavePrivasys/enclave-vaultsRuns inside Intel SGX. Holds keys, runs in-enclave operations, enforces KeyPolicy.
Vault directoryServed by the control planePhonebook for the constellation, served from GET /api/v1/vaults. Returns the active set of (endpoint, measurement) tuples for clients to dial and verify. Treated as untrusted by every other component. (Replaced the standalone Attested Registry.)
PKCS#11 modulePrivasys/pkcs11-providerA Cryptoki 3.1 provider that proxies to a local agent holding the vault session. Consumption surface for OpenSSL, Java, and other PKCS#11 clients.
KMIP gatewayPrivasys/kmip-gatewayA KMIP 2.1 front-end deployed as an attested confidential workload.
Client SDK (Rust + Go)Privasys/enclave-vaults-clientThree layers: directory client (discover), Client (single-vault session), Constellation (fan-out, approvals, pending-profile lifecycle).
Privasys WalletPrivasys/authDefault surface for the live FIDO2 approvals required by sensitive policies.
Underlying enclave OSPrivasys/enclave-os-miniProvides attestation, RA-TLS, sealed storage, OIDC, and the module system the vault is built on.

Where it fits

Enclave Vaults is a vHSM that runs on Intel SGX: its assurance comes from attestation rather than a certified appliance enclosure with environmental sensors. The security model rests on Intel SGX isolation, on attested identity for every connection, and (for RawShare keys) on the unlinkability of Shamir shares across independent enclaves. For most threat models this improves on a single appliance taken on faith. Where a specific FIPS 140-3 certification is a legal requirement, a dedicated certified HSM serves that workload alongside it.

The standard interfaces serve the baseline operations. PKCS#11 and KMIP have no field for a wallet approval or an attested measurement, so keys gated on those conditions are used through the native API, where the richer policy is authored and enforced; over a standard interface those operations fail closed.

The architectural rationale is in the original blog post on rethinking secrets management. The typed-key redesign is covered in the v0.19 release post, and the standard interfaces in Enclave Vaults speaks PKCS#11 and KMIP.

Edit on GitHub