2017-12-13 10:19:31 -05:00
|
|
|
read_all:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
- names: bort
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
|
|
|
|
read_something_else:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: something_that_isnt_test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
|
|
|
|
read_test_a:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
field_security:
|
|
|
|
grant: [a]
|
|
|
|
|
|
|
|
read_test_a_and_b:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
field_security:
|
|
|
|
grant: ["*"]
|
|
|
|
except: [c]
|
|
|
|
|
|
|
|
read_test_without_c_3:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
query: |
|
|
|
|
{
|
|
|
|
"bool": {
|
|
|
|
"must_not": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"c": 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
read_bort:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main" # Used by JDBC's MetaData
|
|
|
|
indices:
|
|
|
|
- names: bort
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|