From 50ed781c9f0266d473774c4fdac3546b79cab87a Mon Sep 17 00:00:00 2001 From: Dan Hermann Date: Thu, 2 Jul 2020 21:56:16 -0500 Subject: [PATCH] Mirror privileges over data streams to their backing indices (#58381) --- .../runConfigurations/Debug_Elasticsearch.xml | 4 +- .../20_unsupported_apis.yml | 9 - .../elasticsearch/action/IndicesRequest.java | 9 + .../shards/ClusterSearchShardsRequest.java | 5 + .../indices/stats/IndicesStatsRequest.java | 5 + .../fieldcaps/FieldCapabilitiesRequest.java | 5 + .../action/search/SearchRequest.java | 5 + .../authz/permission/IndicesPermission.java | 11 +- .../authz/IndicesAndAliasesResolver.java | 28 +- .../xpack/security/authz/RBACEngine.java | 30 +- .../authz/AuthorizedIndicesTests.java | 28 +- .../authz/IndicesAndAliasesResolverTests.java | 303 +++++++++++++++++- .../xpack/security/authz/RBACEngineTests.java | 43 +++ .../accesscontrol/IndicesPermissionTests.java | 48 +++ .../test/security/authz/50_data_streams.yml | 149 +++++++++ 15 files changed, 631 insertions(+), 51 deletions(-) create mode 100644 x-pack/plugin/src/test/resources/rest-api-spec/test/security/authz/50_data_streams.yml diff --git a/.idea/runConfigurations/Debug_Elasticsearch.xml b/.idea/runConfigurations/Debug_Elasticsearch.xml index 6b58e18d22266..0873e20eaaeb9 100644 --- a/.idea/runConfigurations/Debug_Elasticsearch.xml +++ b/.idea/runConfigurations/Debug_Elasticsearch.xml @@ -1,11 +1,11 @@