Skip to content

Key management overview

Choose a supported KMS and understand principal keys, provider scope, and deployment requirements.

This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.

Editorial correction

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:

  1. Configure a Key Provider
  2. Set the Global Principal Key
Note

While key files may be acceptable for local or testing environments, KMS integration is the recommended approach for production deployments.

Important

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.

Warning

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 ProviderDescriptionDocumentation
KMIPStandard Key Management Interoperability Protocol.Configure KMIP →
VaultHashiCorp Vault integration (KV v2 API).Configure Vault →
FortanixFortanix DSM key management.Configure Fortanix →
ThalesThales CipherTrust Manager and DSM.Configure Thales →
OpenBaoCommunity fork of Vault, supporting KV v2.Configure OpenBao →
AkeylessA 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 →

PG.CENTER edition · Upstream source