Skip to content

Commit 0bf84eb

Browse files
committed
Discovery system user remote actions
1 parent 5f871c5 commit 0bf84eb

File tree

1 file changed

+10
-1
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user

1 file changed

+10
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/SystemUser.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
package org.elasticsearch.xpack.core.security.user;
88

99
import org.elasticsearch.TransportVersion;
10+
import org.elasticsearch.action.admin.cluster.remote.RemoteClusterNodesAction;
11+
import org.elasticsearch.tasks.TaskCancellationService;
12+
import org.elasticsearch.transport.RemoteClusterService;
13+
import org.elasticsearch.xpack.core.action.XPackInfoAction;
1014
import org.elasticsearch.xpack.core.security.authc.Authentication;
1115
import org.elasticsearch.xpack.core.security.authc.CrossClusterAccessSubjectInfo;
1216
import org.elasticsearch.xpack.core.security.authc.Subject;
@@ -31,7 +35,12 @@ public class SystemUser extends InternalUser {
3135

3236
private static final RoleDescriptor REMOTE_ACCESS_ROLE_DESCRIPTOR = new RoleDescriptor(
3337
ROLE_NAME + "_cross_cluster_access",
34-
new String[] { "cross_cluster_search", "cross_cluster_replication" },
38+
new String[] {
39+
RemoteClusterService.REMOTE_CLUSTER_HANDSHAKE_ACTION_NAME,
40+
RemoteClusterNodesAction.TYPE.name(),
41+
TaskCancellationService.REMOTE_CLUSTER_BAN_PARENT_ACTION_NAME,
42+
TaskCancellationService.REMOTE_CLUSTER_CANCEL_CHILD_ACTION_NAME,
43+
XPackInfoAction.NAME },
3544
// Needed for CCR background jobs (with system user)
3645
new RoleDescriptor.IndicesPrivileges[] {
3746
RoleDescriptor.IndicesPrivileges.builder()

0 commit comments

Comments
 (0)