2016-03-08 17:15:40 -05:00
|
|
|
admin:
|
2016-03-15 13:10:40 -04:00
|
|
|
cluster:
|
|
|
|
- all
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: '*'
|
|
|
|
privileges: [ all ]
|
|
|
|
run_as:
|
|
|
|
- '*'
|
2016-03-08 17:15:40 -05:00
|
|
|
|
|
|
|
# Search and write on both source and destination indices. It should work if you could just search on the source and
|
2016-06-17 11:53:55 -04:00
|
|
|
# write to the destination but that isn't how security works.
|
2016-03-08 17:15:40 -05:00
|
|
|
minimal:
|
2016-07-06 15:48:20 -04:00
|
|
|
cluster:
|
|
|
|
- cluster:monitor/main
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: source
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|
|
|
|
- names: dest
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|
2016-03-08 17:15:40 -05:00
|
|
|
|
|
|
|
# Read only operations on indices
|
|
|
|
readonly:
|
2016-07-06 15:48:20 -04:00
|
|
|
cluster:
|
|
|
|
- cluster:monitor/main
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: '*'
|
2016-03-08 14:20:54 -05:00
|
|
|
privileges: [ read ]
|
2016-03-08 17:15:40 -05:00
|
|
|
|
|
|
|
# Write operations on destination index, none on source index
|
|
|
|
dest_only:
|
2016-07-06 15:48:20 -04:00
|
|
|
cluster:
|
|
|
|
- cluster:monitor/main
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: dest
|
|
|
|
privileges: [ write ]
|
2016-03-08 17:15:40 -05:00
|
|
|
|
|
|
|
# Search and write on both source and destination indices with document level security filtering out some docs.
|
|
|
|
can_not_see_hidden_docs:
|
2016-07-06 15:48:20 -04:00
|
|
|
cluster:
|
|
|
|
- cluster:monitor/main
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: source
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|
2016-03-08 17:15:40 -05:00
|
|
|
query:
|
|
|
|
bool:
|
|
|
|
must_not:
|
|
|
|
match:
|
|
|
|
hidden: true
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: dest
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|
2016-03-08 17:15:40 -05:00
|
|
|
|
|
|
|
# Search and write on both source and destination indices with field level security.
|
|
|
|
can_not_see_hidden_fields:
|
2016-07-06 15:48:20 -04:00
|
|
|
cluster:
|
|
|
|
- cluster:monitor/main
|
2016-03-08 17:15:40 -05:00
|
|
|
indices:
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: source
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|
2016-03-08 17:15:40 -05:00
|
|
|
fields:
|
|
|
|
- foo
|
|
|
|
- bar
|
2016-03-15 13:10:40 -04:00
|
|
|
- names: dest
|
|
|
|
privileges:
|
2016-03-08 14:20:54 -05:00
|
|
|
- read
|
2016-03-15 13:10:40 -04:00
|
|
|
- write
|
|
|
|
- create_index
|
|
|
|
- indices:admin/refresh
|