# PostgreSQL Percona TDE

**URL:** <https://forums.percona.com/t/postgresql-percona-tde/41340>\
**Category:** PG\_TDE – Transparent Data Encryption (TDE)\
**Tags:** percona, postgres\
**Created:** [October 14, 2026, 11:27am UTC](https://forums.percona.com/t/postgresql-percona-tde/41340 "2026-10-14T11:27:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kase007](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kase007](https://forums.percona.com/u/kase007)\
**Post date:** [October 14, 2026, 11:27am UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/1 "2026-10-14T11:27:37Z")

</div>

Hello all,

I have a question regarding TDE funcionality.

Currently, I have a running cluster with TDE connected to hashicorp Vault. In case the vault became unreachable and PostgreSQL shutdown it wont startup. There is CLI tool pg\_tde\_change\_key\_provider, that should be able to offline change the provider to a file where I do have the backup of key stored in Vault. However, once I start the instance pointing to the file it fails because of the size of the key. Is there a way how to exract correct TDE readable key or any other way how to start the instance when I have the key in file as well?

Many thanks for any hints.

---

<div class="post-metadata">

**Author:** ![zsolt.parragi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/zsolt.parragi/32/16648_2.png) [@zsolt.parragi](https://forums.percona.com/u/zsolt.parragi)\
**Post date:** [October 14, 2026, 12:31pm UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/2 "2026-10-14T12:31:11Z")

</div>

Hello!

No, currently there’s no way to do this. pg\_tde\_change\_key\_provider is meant to change the settings of the key provider - for example if the Vault server’s address changed after taking the backup, or while a server was offline, not to point an existing configuration to a completely different provider type.

---

<div class="post-metadata">

**Author:** ![kase007](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kase007](https://forums.percona.com/u/kase007)\
**Post date:** [October 14, 2026, 12:46pm UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/3 "2026-10-14T12:46:29Z")

</div>

Hi,

thanks for your reply!

then in case of vault being unreachable we simply have to accept that risk?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 14, 2026, 2:38pm UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/4 "2026-10-14T14:38:54Z")

</div>

@kase007 Correct. This is why it is important to have your KMS in a highly-available configuration, and ensure you are taking backups of your KMS. Vault/openBao fully support multiple nodes for HA, and have native backup/restore snapshot commands.

---

<div class="post-metadata">

**Author:** ![kase007](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kase007](https://forums.percona.com/u/kase007)\
**Post date:** [October 15, 2026, 6:05am UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/5 "2026-10-15T06:05:57Z")

</div>

Hi,

thanks for reply!

I understand. We have Hashicorp in HA of 5 nodes with regulars backups. The problem is that the PostgreSQL instance is connecting to a single endpoint from where it is routed to primary vault. We had a scenario where the certificate expired and the Instance therefore could not connect to the vault. If the Instance would be restarted, it wont start up until the certificate is extended. I am just afraid as this instance is for very critical project across the Europe and US. With the expired cert the backups were not possible to be made. Is there a solution at least to make the backups?

---

<div class="post-metadata">

**Author:** ![Nam\_Dinh\_Phuong](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nam_dinh_phuong/32/14586_2.png) [@Nam\_Dinh\_Phuong](https://forums.percona.com/u/Nam_Dinh_Phuong)\
**Post date:** [November 9, 2026, 2:18am UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/6 "2026-11-09T02:18:01Z")

</div>

Hi kase007,

Whether a backup can still be taken depends on the backup method and encryption configuration. For example, the documented `pg_tde_basebackup -E` workflow requires access to the server key, so a Vault TLS failure can prevent that operation.

Could you please share:

- PostgreSQL and pg\_tde versions.

- Backup tool/version and the command being used, with credentials removed. Is that pgbackrest or…?

- The complete backup error.

- Whether WAL encryption is enabled.

- Whether the expired certificate belongs to the load balancer/proxy or Vault itself.

A consistent storage snapshot may provide an emergency way to preserve the encrypted database without retrieving keys. However, it must capture the complete PostgreSQL cluster, including pg\_tde metadata, WAL, and all tablespaces, with simultaneous snapshots where multiple volumes are involved. A normal file copy of a running database is not sufficient.

We are looking forward to hearing back from you.

Warm regards,

N

---

<div class="post-metadata">

**Author:** ![Riccardo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/riccardo/32/24560_2.png) [@Riccardo](https://forums.percona.com/u/Riccardo)\
**Post date:** [November 21, 2026, 2:13pm UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/7 "2026-11-21T14:13:52Z")

</div>

> [@zsolt.parragi](#):
>
> not to point an existing configuration to a completely different provider type.

Reading the documentation [pg\_tde\_change\_key\_provider - Percona Transparent Data Encryption for PostgreSQL](https://docs.percona.com/pg-tde/command-line-tools/pg-tde-change-key-provider.html) : says

> A tool for modifying the configuration of a key provider, possibly also changing its type.

so the last part is not correct, or the latest version supports changing the type?

Because I have a possible customer where internet connection might be not stable, in that case I should change the way to get the decryption key and don´t use at all my openbao server.

thank you!

---

<div class="post-metadata">

**Author:** ![lauraharris](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lauraharris](https://forums.percona.com/u/lauraharris)\
**Post date:** [November 23, 2026, 2:31pm UTC](https://forums.percona.com/t/postgresql-percona-tde/41340/8 "2026-11-23T14:31:18Z")

</div>

The documentation wording and zsolt’s answer can both be true: the tool may let you edit a provider definition, including its type, but that is not the same as migrating an existing cluster whose data keys are still wrapped by the old Vault provider. If Vault/openBao is unreachable and the old key material is not available locally, switching provider type won’t make the instance start. For the unstable-connection customer, test a documented local/file fallback and restore procedure first; don’t plan to switch a live critical cluster during an outage.
