Using OpenBao as a key provider
Configure an OpenBao secrets engine, token, and pg_tde key provider.
This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.
You can configure pg_tde to use OpenBao as a global key provider for managing encryption keys securely.
Note
This guide assumes that your OpenBao server is already set up and accessible. OpenBao configuration is outside the scope of this document, see OpenBao’s official documentation for more information.
Example usage
To register an OpenBao server as a global key provider:
Parameter descriptions
provider-nameis the name to identify this key providersecret_token_pathis a path to the file that contains an access token with read and write access to the above mount pointurlis the URL of the OpenBao servermountis the mount point where the keyring should store the keys- [optional]
ca_pathis the path of the CA file used for SSL verification - [optional]
namespaceis the namespace within the OpenBao server. Read more about the namespace support in OpenBao` (NOTE: You can use a namespace without ca_path. In this case, specify NULL as the ca_path value)
The following example is for testing purposes only. Use secure tokens and proper SSL validation in production environments:
For more information on related functions, see the link below:
Percona pg_tde Function Reference