Configure Key Management (KMS)¶
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
, follow these two steps:
- Configure a Key Provider
- Set the Global Principal Key
Note
While keyfiles may be acceptable for local or testing environments, KMS integration is the recommended approach for production deployments.
Select your prefered configuration from the links below:
KMIP Configuration Vault Configuration Keyring File Configuration (not recommended)