From 2a1fd02dcf0d6efb62a18f6ee4086fd595dd6757 Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Wed, 26 Apr 2017 21:46:31 +0200 Subject: [PATCH] [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@7966416bd75618856bce07ea3ee41510da7351fd --- .../resources/rest-api-spec/test/multi_cluster/10_basic.yaml | 2 +- .../resources/rest-api-spec/test/remote_cluster/10_basic.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/10_basic.yaml b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/10_basic.yaml index d8448a19772..30171d05e7d 100644 --- a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/10_basic.yaml +++ b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/10_basic.yaml @@ -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"] } ] diff --git a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/remote_cluster/10_basic.yaml b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/remote_cluster/10_basic.yaml index 587a67fba0c..5095a538973 100644 --- a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/remote_cluster/10_basic.yaml +++ b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/remote_cluster/10_basic.yaml @@ -22,7 +22,7 @@ setup: "cluster": ["monitor"], "indices": [ { - "names": "*", + "names": ["test_index", "aliased_test_index"], "privileges": ["read", "read_cross_cluster", "view_index_metadata"] } ]