Skip to content

Commit

Permalink
Add security priveledge
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerwolf committed Jan 30, 2025
1 parent 071c181 commit e13eb58
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
package org.elasticsearch.xpack.core.security.authz.privilege;

import org.elasticsearch.action.admin.indices.readonly.TransportAddIndexBlockAction;
import org.elasticsearch.action.search.TransportSearchShardsAction;
import org.elasticsearch.index.seqno.RetentionLeaseActions;
import org.elasticsearch.index.seqno.RetentionLeaseBackgroundSyncAction;
Expand Down Expand Up @@ -38,12 +39,13 @@ public final class SystemPrivilege extends Privilege {
RetentionLeaseActions.ADD.name() + "*", // needed for CCR to add retention leases
RetentionLeaseActions.REMOVE.name() + "*", // needed for CCR to remove retention leases
RetentionLeaseActions.RENEW.name() + "*", // needed for CCR to renew retention leases
"indices:admin/settings/update", // needed for DiskThresholdMonitor.markIndicesReadOnly
"indices:admin/settings/update", // needed for: DiskThresholdMonitor.markIndicesReadOnly, SystemIndexMigrator
CompletionPersistentTaskAction.NAME, // needed for ShardFollowTaskCleaner
"indices:data/write/*", // needed for SystemIndexMigrator
"indices:data/read/*", // needed for SystemIndexMigrator
"indices:admin/refresh", // needed for SystemIndexMigrator
"indices:admin/aliases", // needed for SystemIndexMigrator
TransportAddIndexBlockAction.TYPE.name() + "*", // needed for SystemIndexMigrator
TransportSearchShardsAction.TYPE.name(), // added so this API can be called with the system user by other APIs
ActionTypes.RELOAD_REMOTE_CLUSTER_CREDENTIALS_ACTION.name() // needed for Security plugin reload of remote cluster credentials
);
Expand Down

0 comments on commit e13eb58

Please sign in to comment.