Skip to content

Commit

Permalink
update snapshot-agent doc
Browse files Browse the repository at this point in the history
  • Loading branch information
krastin committed Dec 22, 2023
1 parent c19ead9 commit 955bc95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Before you set up data integration between Vault and Consul on Kubernetes, compl
First, store the snapshot agent config in Vault:

```shell-session
$ vault kv put secret/consul/snapshot-agent-config key="<snapshot agent JSON config>"
$ vault kv put consul-kv/secret/snapshot-agent-config key="<snapshot agent JSON config>"
```

## Create Vault policy
Expand All @@ -41,7 +41,7 @@ The path to the secret referenced in the `path` resource is the same values that
<CodeBlockConfig filename="snapshot-agent-config-policy.hcl">

```HCL
path "secret/data/consul/snapshot-agent-config" {
path "consul-kv/data/secret/snapshot-agent-config" {
capabilities = ["read"]
}
```
Expand Down Expand Up @@ -91,7 +91,7 @@ global:
client:
snapshotAgent:
configSecret:
secretName: secret/data/consul/snapshot-agent-config
secretName: consul-kv/data/secret/snapshot-agent-config
secretKey: key
```
Expand Down

0 comments on commit 955bc95

Please sign in to comment.