Skip to content

Commit 1d907cd

Browse files
committed
Add security priveledge
1 parent b68cb57 commit 1d907cd

File tree

1 file changed

+3
-1
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77
package org.elasticsearch.xpack.core.security.authz.privilege;
88

9+
import org.elasticsearch.action.admin.indices.readonly.TransportAddIndexBlockAction;
910
import org.elasticsearch.action.search.TransportSearchShardsAction;
1011
import org.elasticsearch.index.seqno.RetentionLeaseActions;
1112
import org.elasticsearch.index.seqno.RetentionLeaseBackgroundSyncAction;
@@ -38,12 +39,13 @@ public final class SystemPrivilege extends Privilege {
3839
RetentionLeaseActions.ADD.name() + "*", // needed for CCR to add retention leases
3940
RetentionLeaseActions.REMOVE.name() + "*", // needed for CCR to remove retention leases
4041
RetentionLeaseActions.RENEW.name() + "*", // needed for CCR to renew retention leases
41-
"indices:admin/settings/update", // needed for DiskThresholdMonitor.markIndicesReadOnly
42+
"indices:admin/settings/update", // needed for: DiskThresholdMonitor.markIndicesReadOnly, SystemIndexMigrator
4243
CompletionPersistentTaskAction.INSTANCE.name(), // needed for ShardFollowTaskCleaner
4344
"indices:data/write/*", // needed for SystemIndexMigrator
4445
"indices:data/read/*", // needed for SystemIndexMigrator
4546
"indices:admin/refresh", // needed for SystemIndexMigrator
4647
"indices:admin/aliases", // needed for SystemIndexMigrator
48+
TransportAddIndexBlockAction.TYPE.name() + "*", // needed for SystemIndexMigrator
4749
TransportSearchShardsAction.TYPE.name(), // added so this API can be called with the system user by other APIs
4850
ActionTypes.RELOAD_REMOTE_CLUSTER_CREDENTIALS_ACTION.name() // needed for Security plugin reload of remote cluster credentials
4951
);

0 commit comments

Comments
 (0)