diff --git a/server/src/main/java/org/elasticsearch/action/bulk/SimulateBulkAction.java b/server/src/main/java/org/elasticsearch/action/bulk/SimulateBulkAction.java index d7c4a67b1bd2e..a799c60fe7b38 100644 --- a/server/src/main/java/org/elasticsearch/action/bulk/SimulateBulkAction.java +++ b/server/src/main/java/org/elasticsearch/action/bulk/SimulateBulkAction.java @@ -13,7 +13,7 @@ public class SimulateBulkAction extends ActionType { public static final SimulateBulkAction INSTANCE = new SimulateBulkAction(); - public static final String NAME = "indices:data/simulate/bulk"; + public static final String NAME = "indices:data/write/simulate/bulk"; private SimulateBulkAction() { super(NAME, BulkResponse::new); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java index 4bbce410539cc..2bc20b20e7a55 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java @@ -86,13 +86,13 @@ public final class IndexPrivilege extends Privilege { "indices:data/write/index[*", "indices:data/write/index:op_type/create", "indices:data/write/bulk*", - "indices:data/simulate/bulk*" + "indices:data/write/simulate/bulk*" ); private static final Automaton INDEX_AUTOMATON = patterns( "indices:data/write/index*", "indices:data/write/bulk*", "indices:data/write/update*", - "indices:data/simulate/bulk*" + "indices:data/write/simulate/bulk*" ); private static final Automaton DELETE_AUTOMATON = patterns("indices:data/write/delete*", "indices:data/write/bulk*"); private static final Automaton WRITE_AUTOMATON = patterns("indices:data/write/*", AutoPutMappingAction.NAME); diff --git a/x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java b/x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java index cba23bf5fdda8..285f4f8f99039 100644 --- a/x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java +++ b/x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java @@ -521,7 +521,7 @@ public class Constants { "indices:data/read/xpack/rollup/get/index/caps", "indices:data/read/xpack/rollup/search", "indices:data/read/xpack/termsenum/list", - "indices:data/simulate/bulk", + "indices:data/write/simulate/bulk", "indices:data/write/bulk", "indices:data/write/bulk[s]", "indices:data/write/bulk_shard_operations[s]",