diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-03-12 19:57:20 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2017-04-30 23:37:05 -0400 |
| commit | 464584344f08329e0ac0877f735fb4c52c8a9425 (patch) | |
| tree | 9ccc88e7b2c5f97844d9b36bde99fd8976484601 /README.md | |
| parent | 8ec7eadff541012d702d6a94dced9371130983b7 (diff) | |
Supporting *_FILE env vars
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -622,6 +622,13 @@ This table describes the currently-supported authentication mechanisms and how t | [`userpass`](https://www.vaultproject.io/docs/auth/userpass.html) | Environment variables `$VAULT_AUTH_USERNAME` and `$VAULT_AUTH_PASSWORD` must be set to the appropriate values.<br/> If the backend is mounted to a different location, set `$VAULT_AUTH_USERPASS_MOUNT`. | | [`token`](https://www.vaultproject.io/docs/auth/token.html) | Determined from either the `$VAULT_TOKEN` environment variable, or read from the file `~/.vault-token` | +_**Note:**_ The secret values listed in the above table can either be set in environment +variables or provided in files. This can increase security when using +[Docker Swarm Secrets](https://docs.docker.com/engine/swarm/secrets/), for example. +To use files, specify the filename by appending `_FILE` to the environment variable, +(i.e. `VAULT_USER_ID_FILE`). If the non-file variable is set, this will override +any `_FILE` variable and the secret file will be ignored. + To use a Vault datasource with a single secret, just use a URL of `vault:///secret/mysecret`. Note the 3 `/`s - the host portion of the URL is left empty. |
