Update documentation for enable_key_list_policy

The current suggests the option expects a string of either "enabled" or "disabled" but this results in an error `'acl.enable_key_list_policy' expected type 'bool', got unconvertible type 'string', value: 'enabled'`. Setting to a boolean value resolves this, also had a quick look at the code (d2b58cd0d6/agent/config/runtime.go (L109)) and it suggests this too
This commit is contained in:
Olatunde Alex-Oni 2021-08-16 11:22:53 +02:00 committed by Blake Covarrubias
parent c5975b5dfb
commit 9ea02121b7
1 changed files with 3 additions and 4 deletions

View File

@ -609,10 +609,9 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."
In "deny" mode, ACLs are an allowlist: any operation not specifically In "deny" mode, ACLs are an allowlist: any operation not specifically
allowed is blocked. **Note**: this will not take effect until you've enabled ACLs. allowed is blocked. **Note**: this will not take effect until you've enabled ACLs.
- `enable_key_list_policy` ((#acl_enable_key_list_policy)) - Either "enabled" - `enable_key_list_policy` ((#acl_enable_key_list_policy)) - Boolean value, defaults to false.
or "disabled", defaults to "disabled". When enabled, the `list` permission will When true, the `list` permission will be required on the prefix being recursively read from the KV store.
be required on the prefix being recursively read from the KV store. Regardless Regardless of being enabled, the full set of KV entries under the prefix will be filtered
of being enabled, the full set of KV entries under the prefix will be filtered
to remove any entries that the request's ACL token does not grant at least read to remove any entries that the request's ACL token does not grant at least read
permissions. This option is only available in Consul 1.0 and newer. permissions. This option is only available in Consul 1.0 and newer.