mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Do not encourage root token use for vault
We should probably not encourage anyone to use a root token for vault keyring providers. We use "secret_token" elsewhere, so use that consistently.
This commit is contained in:
parent
b7d2f1599f
commit
e735727c8e
@ -83,14 +83,14 @@ You must do these steps for every database where you have created the extension.
|
||||
The Vault server setup is out of scope of this document.
|
||||
|
||||
```sql
|
||||
SELECT pg_tde_add_database_key_provider_vault_v2('provider-name','root_token','url','mount','ca_path');
|
||||
SELECT pg_tde_add_database_key_provider_vault_v2('provider-name','secret_token','url','mount','ca_path');
|
||||
```
|
||||
|
||||
where:
|
||||
|
||||
* `url` is the URL of the Vault server
|
||||
* `mount` is the mount point where the keyring should store the keys
|
||||
* `root_token` is an access token with read and write access to the above mount point
|
||||
* `secret_token` is an access token with read and write access to the above mount point
|
||||
* [optional] `ca_path` is the path of the CA file used for SSL verification
|
||||
|
||||
<i warning>:material-information: Warning:</i> This example is for testing purposes only:
|
||||
|
@ -77,14 +77,14 @@ Load the `pg_tde` at startup time. The extension requires additional shared memo
|
||||
The Vault server setup is out of scope of this document.
|
||||
|
||||
```
|
||||
SELECT pg_tde_add_global_key_provider_vault_v2('provider-name','root_token','url','mount','ca_path');
|
||||
SELECT pg_tde_add_global_key_provider_vault_v2('provider-name','secret_token','url','mount','ca_path');
|
||||
```
|
||||
|
||||
where:
|
||||
|
||||
* `url` is the URL of the Vault server
|
||||
* `mount` is the mount point where the keyring should store the keys
|
||||
* `root_token` is an access token with read and write access to the above mount point
|
||||
* `secret_token` is an access token with read and write access to the above mount point
|
||||
* [optional] `ca_path` is the path of the CA file used for SSL verification
|
||||
|
||||
<i warning>:material-information: Warning:</i> This example is for testing purposes only:
|
||||
|
Loading…
x
Reference in New Issue
Block a user