From dbca30808f80e54a8725716499961f46fd62ba42 Mon Sep 17 00:00:00 2001 From: jaymode Date: Tue, 21 Jul 2015 10:22:53 -0400 Subject: [PATCH] update index privilege to include shard action for indices:data/write/update Original commit: elastic/x-pack-elasticsearch@d10b763c9168331f9b44d64bbeed9a94d2ef1a58 --- .../src/main/java/org/elasticsearch/shield/authz/Privilege.java | 2 +- shield/src/test/resources/org/elasticsearch/transport/handlers | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shield/src/main/java/org/elasticsearch/shield/authz/Privilege.java b/shield/src/main/java/org/elasticsearch/shield/authz/Privilege.java index 8e628870e54..d74182b0c6a 100644 --- a/shield/src/main/java/org/elasticsearch/shield/authz/Privilege.java +++ b/shield/src/main/java/org/elasticsearch/shield/authz/Privilege.java @@ -150,7 +150,7 @@ public abstract class Privilege

> { public static final Index SEARCH = new Index("search", SearchAction.NAME + "*", MultiSearchAction.NAME + "*", SuggestAction.NAME + "*"); public static final Index GET = new Index("get", GetAction.NAME + "*", MultiGetAction.NAME + "*"); public static final Index SUGGEST = new Index("suggest", SuggestAction.NAME + "*"); - public static final Index INDEX = new Index("index", "indices:data/write/index*", "indices:data/write/update"); + public static final Index INDEX = new Index("index", "indices:data/write/index*", "indices:data/write/update*"); public static final Index DELETE = new Index("delete", "indices:data/write/delete*"); public static final Index WRITE = new Index("write", "indices:data/write/*"); diff --git a/shield/src/test/resources/org/elasticsearch/transport/handlers b/shield/src/test/resources/org/elasticsearch/transport/handlers index 094ea355ae8..0abef1e44f4 100644 --- a/shield/src/test/resources/org/elasticsearch/transport/handlers +++ b/shield/src/test/resources/org/elasticsearch/transport/handlers @@ -46,6 +46,7 @@ indices:data/write/bulk[s] indices:data/write/bulk[s][r] indices:data/write/delete[r] indices:data/write/index[r] +indices:data/write/update[s] indices:monitor/recovery[s] indices:monitor/segments[s] indices:monitor/shard_stores