Skip to content

Commit

Permalink
Add Resolve Index API to the "read" permission for an index
Browse files Browse the repository at this point in the history
This commit allows the index "read" permission to also allow using the resolve index Action.

Resolves elastic#86977
  • Loading branch information
dakrone committed May 23, 2022
1 parent b651b6f commit 543d1dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public final class IndexPrivilege extends Privilege {
private static final Logger logger = LogManager.getLogger(IndexPrivilege.class);

private static final Automaton ALL_AUTOMATON = patterns("indices:*", "internal:transport/proxy/indices:*");
private static final Automaton READ_AUTOMATON = patterns("indices:data/read/*");
private static final Automaton READ_AUTOMATON = patterns("indices:data/read/*", ResolveIndexAction.NAME);
private static final Automaton READ_CROSS_CLUSTER_AUTOMATON = patterns(
"internal:transport/proxy/indices:data/read/*",
ClusterSearchShardsAction.NAME
Expand Down

0 comments on commit 543d1dc

Please sign in to comment.