Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

Vault KVv2 API support for key storage #81

Closed dutow closed 9 months ago

dutow commented 10 months ago

This commit implements support for storing keys on a vault server instead of locally. The current implementation only supports the KV v2 engine, which is the default secrets engine in recent vault versions.

To use vault for key storage, the following settings have to be used in the keyring configuration file:

Multiple servers can use the same vault server, with the following restrictions:

The source also contains a sample keyring configuration file, keyring-vault.json. This configuration matches the settings of the vault development server (vault server -dev), only the ROOT_TOKEN has to be replaced to the token of the actual server process.

Implements #38