<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PG TDE on Mimus</title><link>https://mimus.pgsty.com/docs/tde/</link><description>Recent content in PG TDE on Mimus</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://mimus.pgsty.com/docs/tde/index.xml" rel="self" type="application/rss+xml"/><item><title>Back up, restore and migrate</title><link>https://mimus.pgsty.com/docs/tde/recovery/</link><guid>https://mimus.pgsty.com/docs/tde/recovery/</guid><description>&lt;h2 id="backup"&gt;Choose the physical backup path&#10;&lt;/h2&gt;&#10;&lt;p&gt;Use the binaries paired with the source revision. Set &lt;code&gt;PGHOST&lt;/code&gt;, &lt;code&gt;PGPORT&lt;/code&gt; and &lt;code&gt;PGUSER&lt;/code&gt; for a replication-authorized connection. Choose a new &lt;code&gt;BACKUP&lt;/code&gt; path on protected storage. Use data checksums on the source, keep the default online page verification enabled and suspend key rotation until the backup finishes. These examples assume the default tablespace layout. With encrypted WAL, r4 excludes cascading physical replication and a restarted standby receiving WAL again from the start of a segment (RISK-36).&lt;/p&gt;</description></item><item><title>Keys and WAL encryption</title><link>https://mimus.pgsty.com/docs/tde/keys/</link><guid>https://mimus.pgsty.com/docs/tde/keys/</guid><description>&lt;h2 id="providers"&gt;Where the keys live&#10;&lt;/h2&gt;&#10;&lt;p&gt;Relation keys are stored wrapped in the data directory. A database principal key from its provider unwraps them. The provider can be database-scoped or global. In the &lt;a href="https://mimus.pgsty.com/docs/tde/tables/"&gt;file example&lt;/a&gt; the provider lives outside the data directory. For a deployment, choose a supported KMS such as Vault or KMIP and test its reachability and authentication from every intended recovery host. Record provider identity, key names and versions. Keep credentials, certificates and file keyrings recoverable independently of the database host. &lt;a href="https://mimus.pgsty.com/docs/tde/upstream/global-key-provider-configuration/"&gt;Percona key management&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Enable TDE and encrypt a table</title><link>https://mimus.pgsty.com/docs/tde/tables/</link><guid>https://mimus.pgsty.com/docs/tde/tables/</guid><description>&lt;h2 id="enable"&gt;Prepare a new database&#10;&lt;/h2&gt;&#10;&lt;p&gt;Use a matching Mimus 19.0.1 installation containing the &lt;code&gt;pg_tde&lt;/code&gt; library, extension SQL and control file. On a new test cluster add &lt;code&gt;pg_tde&lt;/code&gt; to &lt;code&gt;shared_preload_libraries&lt;/code&gt; in &lt;code&gt;postgresql.conf&lt;/code&gt;, retaining other required libraries. Restart with the matching server. Connect with &lt;code&gt;psql&lt;/code&gt; as an administrator to the database in which you will create the table.&lt;/p&gt;&#10;&lt;p&gt;For this exercise, create a directory outside &lt;code&gt;PGDATA&lt;/code&gt; named &lt;code&gt;/var/lib/mimus-keys&lt;/code&gt; on the server, owned by the database service account with mode 0700. Use a fresh file name. The server will manage the keyring. File providers are suitable for local exercises; anyone who takes the backup and the readable keyring can recover the data.&lt;/p&gt;</description></item></channel></rss>