[TEST] Cross Cluster Search: specify index name when creating role (elastic/x-pack-elasticsearch#1208)

This makes sure that the user needs to have access only to the specific index that needs to be accessed on the remote clusters.

relates to elastic/x-pack-elasticsearch#1153

Original commit: elastic/x-pack-elasticsearch@7966416bd7
This commit is contained in:
Luca Cavanna 2017-04-26 21:46:31 +02:00 committed by GitHub
parent a7d9e92f25
commit 2a1fd02dcf
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ setup:
"cluster": ["all"],
"indices": [
{
"names": "*",
"names": ["test_index", "my_remote_cluster:test_index", "my_remote_cluster:aliased_test_index", "test_remote_cluster:test_index"],
"privileges": ["read", "read_cross_cluster", "view_index_metadata"]
}
]

View File

@ -22,7 +22,7 @@ setup:
"cluster": ["monitor"],
"indices": [
{
"names": "*",
"names": ["test_index", "aliased_test_index"],
"privileges": ["read", "read_cross_cluster", "view_index_metadata"]
}
]