Skip to content
Percona PostgreSQL Blog· Slava Sarzhan·

Percona Operator for PostgreSQL 3.1.0 Adds pg_tde Encryption, Logical Replicas, Persistent Logging

Percona Operator for PostgreSQL 3.1.0: Transparent Data Encryption, Logical Replicas, and Persistent Logging

Key Takeaway

Percona Operator for PostgreSQL 3.1.0 ships transparent data encryption via pg_tde with HashiCorp Vault as key provider, covering tables, indexes, temporary tables and WAL.

Why It Matters

Encrypting WAL with keys held in Vault helps bring Kubernetes PostgreSQL into PCI DSS or HIPAA scope, but encryption only applies to data written after enabling it, so plan it at cluster provisioning.

Technical Breakdown · Distilled from the original source

Transparent data encryption with pg_tde

  • Enable via extensions.pg_tde.enabled: true; walEncryption: true separately extends encryption to WAL. The vault block sets host, mountPath, tokenSecret and caSecret; keep the Vault token and CA in Kubernetes Secrets.
  • Two-tier key model: a principal key in Vault wraps internal data keys, so rotating it is a Vault key-management operation rather than a full re-encryption.
  • In 3.1.0 pg_tde supports PostgreSQL 17 and 18 only, and encryption applies only to data written after enabling.

Logical replicas and persistent logging

  • logicalReplicas declares a read-only copy seeded with bootstrapMethod: pgbackrest from backup, keeping initial sync off the primary; databases: [] replicates all non-template databases except postgres; expose publishes the read endpoint.
  • Logical replicas are not managed by Patroni, so they are never promoted and the endpoint stays stable; tech preview, requires PostgreSQL 17+, and DDL is not replicated automatically.
  • logcollector.enabled: true runs a Fluent Bit sidecar reading on-disk PostgreSQL and pgBackRest logs as structured JSON, forwardable to S3 or OpenTelemetry; logs consume data volume space, so set rotation.

Other changes

  • Adds official RKE2 support and full ARM64 images; community PostgreSQL images and custom registries (K8SPG-1056), auto-growable pgBackRest disks (K8SPG-691), pgBouncer pause/resume (K8SPG-1115) and mTLS (K8SPG-952).
  • pg_cron and set_user are built in (K8SPG-1040); PostgreSQL 19 tech preview (K8SPG-1051).
  • PMM2 support removed (K8SPG-944), move to PMM3; extensions.builtin deprecated in favor of extensions.<name>.enabled, migrate before 3.4.0.
Source: Percona PostgreSQL Blog· percona.com

PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.

Read Official Source

Related PostgreSQL Reference