Skip to content

Commit

Permalink
Allow users with read role to use the async_search/status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
quux00 committed Mar 20, 2024
1 parent 82221ff commit 88a711e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,20 @@
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 ALL_AUTOMATON = patterns(
"indices:*",
"internal:transport/proxy/indices:*",
"cluster:monitor/async_search/status"
);
private static final Automaton READ_AUTOMATON = patterns(
"indices:data/read/*",
"cluster:monitor/async_search/status",
ResolveIndexAction.NAME,
TransportResolveClusterAction.NAME
);
private static final Automaton READ_CROSS_CLUSTER_AUTOMATON = patterns(
"internal:transport/proxy/indices:data/read/*",
"cluster:monitor/async_search/status",
ClusterSearchShardsAction.NAME,
TransportSearchShardsAction.TYPE.name(),
TransportResolveClusterAction.NAME,
Expand Down

0 comments on commit 88a711e

Please sign in to comment.