Skip to content

Commit

Permalink
Adding reindexed alerts as data backing index prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Dec 18, 2024
1 parent 54fa074 commit 62b9221
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class ReservedRolesStore implements BiConsumer<Set<String>, ActionListene

/** Alerts, Rules, Cases (RAC) index used by multiple solutions */
public static final String ALERTS_BACKING_INDEX = ".internal.alerts*";
public static final String ALERTS_BACKING_INDEX_REINDEXED = ".reindexed-v8-internal.alerts*";

/** Alerts, Rules, Cases (RAC) index used by multiple solutions */
public static final String ALERTS_INDEX_ALIAS = ".alerts*";
Expand All @@ -54,7 +55,8 @@ public class ReservedRolesStore implements BiConsumer<Set<String>, ActionListene
public static final String PREVIEW_ALERTS_INDEX_ALIAS = ".preview.alerts*";

/** Alerts, Rules, Cases (RAC) preview index used by multiple solutions */
public static final String PREVIEW_ALERTS_BACKING_INDEX_ALIAS = ".internal.preview.alerts*";
public static final String PREVIEW_ALERTS_BACKING_INDEX = ".internal.preview.alerts*";
public static final String PREVIEW_ALERTS_BACKING_INDEX_REINDEXED = ".reindexed-v8-internal.preview.alerts*";

/** "Security Solutions" only lists index for value lists for detections */
public static final String LISTS_INDEX = ".lists-*";
Expand Down Expand Up @@ -885,8 +887,10 @@ private static RoleDescriptor buildEditorRoleDescriptor() {
RoleDescriptor.IndicesPrivileges.builder()
.indices(
ReservedRolesStore.ALERTS_BACKING_INDEX,
ReservedRolesStore.ALERTS_BACKING_INDEX_REINDEXED,
ReservedRolesStore.ALERTS_INDEX_ALIAS,
ReservedRolesStore.PREVIEW_ALERTS_BACKING_INDEX_ALIAS,
ReservedRolesStore.PREVIEW_ALERTS_BACKING_INDEX,
ReservedRolesStore.PREVIEW_ALERTS_BACKING_INDEX_REINDEXED,
ReservedRolesStore.PREVIEW_ALERTS_INDEX_ALIAS
)
.privileges("read", "view_index_metadata", "write", "maintenance")
Expand Down

0 comments on commit 62b9221

Please sign in to comment.