update README

pull/140/head
Muhammad Atif Ali 1 year ago
parent b3069d26b6
commit d0ae47e9fd

@ -31,13 +31,13 @@ module "vault" {
Then you can use the Vault CLI in your workspaces to fetch secrets from Vault: Then you can use the Vault CLI in your workspaces to fetch secrets from Vault:
```shell ```shell
vault kv get -mount=coder my-secret vault kv get -namespace=coder -mount=secrets coder
``` ```
or using the Vault API: or using the Vault API:
```shell ```shell
curl -H "X-Vault-Token: ${VAULT_TOKEN}" -X GET "${VAULT_ADDR}/v1/coder/data/my-secret" curl -H "X-Vault-Token: ${VAULT_TOKEN}" -X GET "${VAULT_ADDR}/v1/coder/secrets/data/coder"
``` ```
## Configuration ## Configuration

Loading…
Cancel
Save