Merge branch 'secrets-restructure' of github.com:influxdata/docs-v2 into secrets-restructure
commit
58f7562bf8
|
@ -33,6 +33,10 @@ For this example, install Vault on your local machine and start a Vault dev serv
|
|||
vault server -dev
|
||||
```
|
||||
|
||||
{{% note %}}
|
||||
The InfluxDB API supports KV engine v2 only.
|
||||
{{% /note %}}
|
||||
|
||||
## Define Vault environment variables
|
||||
|
||||
Use [Vault environment variables](https://www.vaultproject.io/docs/commands/index.html#environment-variables)
|
||||
|
@ -126,15 +130,10 @@ For each organization, InfluxDB creates a [secrets engine](https://learn.hashico
|
|||
using the following pattern: `/secret/data/<org-id>`
|
||||
|
||||
{{% note %}}
|
||||
The InfluxDB API supports KV engine v2 only.
|
||||
When you create a secrets engine, enable the `kv-v2` version by running: `vault secrets enable kv-v2`.
|
||||
{{% /note %}}
|
||||
|
||||
#### Enable KV secrets engine v2
|
||||
|
||||
To pass the correct version of the KV secrets engine when you enable a secrets engine, run: `vault secrets enable kv-v2`.
|
||||
|
||||
Secrets are stored in Vault as key value pairs in their respective secrets engines.
|
||||
|
||||
```
|
||||
/secret/data/031c8cbefe101000 ->
|
||||
this_key: foo
|
||||
|
|
Loading…
Reference in New Issue