Update Consul ACL example

Fixes #5831
This commit is contained in:
Jeff Mitchell 2018-12-13 17:18:23 -05:00
parent 4c735a35d2
commit dd459e0d16

View File

@ -175,6 +175,40 @@ the following will work for most use-cases, assuming that your service name is
}
```
For Consul 1.4+, the following example takes into account the changed ACL
language:
```json
{
"key_prefix": {
"vault/": {
"policy": "write"
}
},
"node_prefix": {
"": {
"policy": "write"
}
},
"service": {
"vault": {
"policy": "write"
}
},
"agent_prefix": {
"": {
"policy": "write"
}
},
"session_prefix": {
"": {
"policy": "write"
}
}
}
```
## `consul` Examples
### Local Agent