Skip to content

Commit

Permalink
Only perform operator check for migration reindex actions when featur…
Browse files Browse the repository at this point in the history
…e flag is present (elastic#118388) (elastic#118404)

* Only perform operator check for migration reindex actions when feature flag is present (elastic#118388)

* fixing cherry-pick
  • Loading branch information
masseyke authored Dec 10, 2024
1 parent 0bd0119 commit d203726
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.elasticsearch.xpack.security.operator;

import org.elasticsearch.cluster.metadata.DataStream;
import org.elasticsearch.common.util.FeatureFlag;

import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -635,8 +636,8 @@ public class Constants {
"internal:gateway/local/started_shards",
"internal:admin/indices/prevalidate_shard_path",
"internal:index/metadata/migration_version/update",
"indices:admin/migration/reindex_status",
"indices:admin/data_stream/reindex",
new FeatureFlag("reindex_data_stream").isEnabled() ? "indices:admin/migration/reindex_status" : null,
new FeatureFlag("reindex_data_stream").isEnabled() ? "indices:admin/data_stream/reindex" : null,
"internal:admin/repository/verify",
"internal:admin/repository/verify/coordinate"
).filter(Objects::nonNull).collect(Collectors.toUnmodifiableSet());
Expand Down

0 comments on commit d203726

Please sign in to comment.