Document allow_restricted_indices for indices privileges (#47514)

Document the allow_restricted_indices role descriptor field.
This commit is contained in:
Albert Zaharovits 2019-10-31 10:51:00 +02:00 committed by Albert Zaharovits
parent 989467ca1e
commit 00d3151eea
1 changed files with 10 additions and 1 deletions

View File

@ -50,6 +50,7 @@ The following describes the structure of an indices permissions entry:
"privileges": [ ... ], <2> "privileges": [ ... ], <2>
"field_security" : { ... }, <3> "field_security" : { ... }, <3>
"query": "..." <4> "query": "..." <4>
"allow_restricted_indices": false <5>
} }
------- -------
// NOTCONSOLE // NOTCONSOLE
@ -57,12 +58,20 @@ The following describes the structure of an indices permissions entry:
<1> A list of indices (or index name patterns) to which the permissions in this <1> A list of indices (or index name patterns) to which the permissions in this
entry apply. entry apply.
<2> The index level privileges the owners of the role have on the associated <2> The index level privileges the owners of the role have on the associated
indices (those indices that are specified in the `name` field) indices (those indices that are specified in the `names` field)
<3> Specification for document fields the owners of the role have read access to. <3> Specification for document fields the owners of the role have read access to.
See <<field-and-document-access-control>> for details. See <<field-and-document-access-control>> for details.
<4> A search query that defines the documents the owners of the role have read <4> A search query that defines the documents the owners of the role have read
access to. A document within the associated indices must match this query access to. A document within the associated indices must match this query
in order for it to be accessible by the owners of the role. in order for it to be accessible by the owners of the role.
<5> Restricted indices are a special category of indices that are used
internally to store configuration data. Only internal system
roles should normally grant privileges over the restricted indices.
**Toggling this flag is most discouraged because it could effectively grant
superuser privileges.** If however, for administrative purposes, you need to
create a role with privileges covering restricted indices, you must set
this field to `true` (default is `false`), and then the `names` field will
cover the restricted indices as well.
[TIP] [TIP]
============================================================================== ==============================================================================