diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java index 2abf304213c..b82955a21c3 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java @@ -335,10 +335,19 @@ public class AuthorizationService extends AbstractComponent { } } + private static String IndexActionSubRequestPrimary = IndexAction.NAME + "[p]"; + private static String IndexActionSubRequestReplica = IndexAction.NAME + "[r]"; + private static String DeleteActionSubRequestPrimary = DeleteAction.NAME + "[p]"; + private static String DeleteActionSubRequestReplica = DeleteAction.NAME + "[r]"; + private static boolean isCompositeAction(String action) { return action.equals(BulkAction.NAME) || action.equals(IndexAction.NAME) || action.equals(DeleteAction.NAME) || + action.equals(IndexActionSubRequestPrimary) || + action.equals(IndexActionSubRequestReplica) || + action.equals(DeleteActionSubRequestPrimary) || + action.equals(DeleteActionSubRequestReplica) || action.equals(MultiGetAction.NAME) || action.equals(MultiTermVectorsAction.NAME) || action.equals(MultiSearchAction.NAME) ||