Skip to content

Commit 2e96e66

Browse files
committed
Fix permissions
1 parent 33edd22 commit 2e96e66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/ccr/qa/security/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ leaderClusterTestCluster {
2222
setupCommand 'setupTestAdmin',
2323
'bin/elasticsearch-users', 'useradd', "test_admin", '-p', 'x-pack-test-password', '-r', "superuser"
2424
setupCommand 'setupCcrUser',
25-
'bin/elasticsearch-users', 'useradd', "test_ccr", '-p', 'x-pack-test-password', '-r', "manage_ccr"
25+
'bin/elasticsearch-users', 'useradd', "test_ccr", '-p', 'x-pack-test-password', '-r', "ccruser"
2626
waitCondition = { node, ant ->
2727
File tmpFile = new File(node.cwd, 'wait.success')
2828
ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public final class IndexPrivilege extends Privilege {
6363
ExplainLifecycleAction.NAME);
6464
private static final Automaton MANAGE_FOLLOW_INDEX_AUTOMATON = patterns(PutFollowAction.NAME, UnfollowAction.NAME,
6565
CloseIndexAction.NAME + "*");
66-
private static final Automaton MANAGE_LEADER_INDEX_AUTOMATON = patterns(ForgetFollowerAction.NAME);
66+
private static final Automaton MANAGE_LEADER_INDEX_AUTOMATON = patterns(ForgetFollowerAction.NAME + "*");
6767
private static final Automaton MANAGE_ILM_AUTOMATON = patterns("indices:admin/ilm/*");
6868

6969
public static final IndexPrivilege NONE = new IndexPrivilege("none", Automatons.EMPTY);

0 commit comments

Comments
 (0)