VMware Cloud Foundation (VCF) key provider design guidance (Day 16 of a Cybersecurity Awareness Month series), covering keys for VM encryption, virtual TPMs, and vSAN data-at-rest encryption. Other VCF encryption (TLS, vSAN in-transit, memory tiering, ESX config) uses ephemeral/per-host keys and needs no key provider.
Two provider types. A Standard Key Provider connects vCenter to external KMIP KMS servers: vCenter holds key IDs (not keys) and passes keys to hosts for VM encryption, while vSAN hosts contact the KMS directly. A Native Key Provider is built into vCenter; it generates a key derivation key, pushes it to every ESX host, and each host stores it in its TPM-sealed encrypted configuration. It serves only VCF, so other consumers (e.g., tape libraries) still need a KMS.
Wrapping keys (VCF 9.0+). A Standard Key Provider can store a single wrapping key in the KMS, with per-object key encryption keys stored alongside their objects and wrapped by it — fewer KMS keys and automatic rotation; existing VMs can migrate via a non-disruptive shallow rekey.
Boot/availability behavior. Standard Key Provider hosts cache keys in protected VMkernel memory (surviving temporary KMS outages and enabling HA without vCenter), but lose them on reboot and must re-fetch; vSAN hosts mount storage only after reaching the KMS. VM-encryption/vTPM VMs need vCenter up and able to reach the key server after a full restart. Key Persistence (TPM 2.0, off by default) keeps keys across reboots but is discouraged unless physical security is assured.
Design/mix-and-match. Up to 32 providers per vCenter, with per-cluster and vSAN-specific defaults. Common pattern: Standard provider for vSAN (keys stay in KMS, protecting against host theft) plus Native provider for vTPMs. A shallow rekey can move VMs and vSAN clusters between providers in either direction without downtime.
Availability rules. Run multiple key servers from the same vendor (different vendors need separate providers); separate hosts/racks/power/sites; no defined latency requirement, so remote/high-latency sites are viable; open KMIP TCP 5696 for vCenter and all vSAN hosts; monitor KMS certificates (30-day alarm default, re-trust after vCenter cert changes); configure the same provider for migrations/DR; give shared providers identical names and unique names to distinct ones (providers can't be renamed).
Avoid circular dependencies. Don't let key servers run on infrastructure they protect; watch for drift (Storage vMotion onto encrypted datastores, enabling vSAN encryption on the key server's cluster); check dependent DNS/time/networking/auth; consider a "dependency host."
Backups. Back up the Native Key Provider (password-protected file) and its password separately; treat vCenter backups as sensitive; back up KMS; be careful deleting in-use providers (running VMs continue but can't power on until restored); save each host's TPM-sealed config recovery key. Losing vCenter with no key/vCenter backup can make encrypted VMs permanently inaccessible, which also undermines cryptographic erase (NIST SP 800-88 Rev. 2).
Rotation. Wrapping keys rotate by default every 365 days (30–3,650 adjustable) or manually; shallow rekeys (key encryption key, online) vs deep rekeys (data encryption keys, VM off, no snapshots, flash wear); vSAN shallow rekeys suggested ~every 60 days; Native Key Provider rotation is manual (new provider, set default, rekey). Test recovery in a lab before relying on it.