# Key management overview

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

---

LLMS index: [llms.txt](/llms.txt)

---

> This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see [PG TDE on Mimus](/docs/tde/).

> [!NOTE] 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](/docs/tde/upstream/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](/docs/tde/upstream/global-key-provider-configuration/set-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](/docs/tde/upstream/index/tde-limitations/#limitations-when-using-pgtde).

`pg_tde` has been tested with the following key providers:

| KMS Provider       | Description                                           | Documentation |
|--------------------|-------------------------------------------------------|---------------|
| **KMIP**           | Standard Key Management Interoperability Protocol.    | [Configure KMIP →](/docs/tde/upstream/global-key-provider-configuration/kmip-server/) |
| **Vault**          | HashiCorp Vault integration (KV v2 API). | [Configure Vault →](/docs/tde/upstream/global-key-provider-configuration/vault/) |
| **Fortanix**       | Fortanix DSM key management.                          | [Configure Fortanix →](/docs/tde/upstream/global-key-provider-configuration/kmip-fortanix/) |
| **Thales**         | Thales CipherTrust Manager and DSM.                   | [Configure Thales →](/docs/tde/upstream/global-key-provider-configuration/kmip-thales/) |
| **OpenBao**        | Community fork of Vault, supporting KV v2.            | [Configure OpenBao →](/docs/tde/upstream/global-key-provider-configuration/openbao/) |
| **Akeyless**        | A cloud-based secrets management platform for securely storing and accessing credentials and encryption keys.            | [Configure Akeyless →](/docs/tde/upstream/global-key-provider-configuration/kmip-akeyless/) |
| **Keyring file** *(not recommended)* | Local key file for dev/test only.                  | [Configure keyring file →](/docs/tde/upstream/global-key-provider-configuration/keyring/) |

[PG.CENTER edition](https://github.com/pgsty/doc.pg.center/blob/4410c32dc9186a22859008303f474b72a779f583/content/percona/global-key-provider-configuration/overview.md) · [Upstream source](https://github.com/percona/pg_tde/blob/5dd7a9e4e3599d88546f5de67ff0f4ef3fe51a9a/documentation/docs/global-key-provider-configuration/overview.md)

---

Backlinks:

- [Keys and providers](/docs/tde/upstream/architecture/key-provider-management/)
- [Architecture overview](/docs/tde/upstream/architecture/overview/)
- [How pg_tde keeps data encrypted through PostgreSQL storage](/docs/tde/upstream/blog/guide/encryption-architecture/)
- [A production checklist for pg_tde](/docs/tde/upstream/blog/guide/production-checklist/)
- [Questions from the PostgreSQL TDE webinar](/docs/tde/upstream/blog/percona/webinar-qa/)
- [Features](/docs/tde/upstream/features/)
- [SQL functions](/docs/tde/upstream/functions/)
- [Local keyring](/docs/tde/upstream/global-key-provider-configuration/keyring/)
- [Configure multi-tenancy](/docs/tde/upstream/how-to/multi-tenant-setup/)
- [How it works](/docs/tde/upstream/index/how-does-tde-work/)
- [Get started](/docs/tde/upstream/install/)
- [2.1.0](/docs/tde/upstream/release-notes/release-notes-v2.1/)
- [Load the extension](/docs/tde/upstream/setup/)
- [Documentation errata](/docs/tde/upstream/site/errata/)
- [WAL encryption](/docs/tde/upstream/wal-encryption/)
