Key management overview
This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.
This overview retains an older qualification of Vault KMIP. The 2.2.2 release notes explicitly announce Vault Enterprise KMIP support; consult those notes for the version-specific status. See site errata.
In production environments, storing encryption keys locally on the PostgreSQL server can introduce security risks. To enhance security, pg_tde supports integration with external Key Management Systems (KMS) through a Global Key Provider interface.
This section describes how you can configure pg_tde to use the local and external key providers.
To use an external KMS with pg_tde:
- Configure a Key Provider
- Set the Global Principal Key
While key files may be acceptable for local or testing environments, KMS integration is the recommended approach for production deployments.
When using HashiCorp Vault, KV v2 is the recommended and supported integration method.
The KMIP engine in Vault is not a validated configuration for pg_tde and is not recommended for production deployments.
Do not rotate encryption keys while a backup is running. This may result in an inconsistent backup and restore failure. This applies to all backup tools.
Schedule key rotations outside backup windows. After rotating keys, take a new full backup.
For more details, see Limitations of pg_tde.
pg_tde has been tested with the following key providers:
| KMS Provider | Description | Documentation |
|---|---|---|
| KMIP | Standard Key Management Interoperability Protocol. | Configure KMIP → |
| Vault | HashiCorp Vault integration (KV v2 API). | Configure Vault → |
| Fortanix | Fortanix DSM key management. | Configure Fortanix → |
| Thales | Thales CipherTrust Manager and DSM. | Configure Thales → |
| OpenBao | Community fork of Vault, supporting KV v2. | Configure OpenBao → |
| Akeyless | A cloud-based secrets management platform for securely storing and accessing credentials and encryption keys. | Configure Akeyless → |
| Keyring file (not recommended) | Local key file for dev/test only. | Configure keyring file → |