Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public class ReservedRolesStore implements BiConsumer<Set<String>, ActionListene
/** "Security Solutions" Entity Store and Asset Criticality indices for Asset Inventory and Entity Analytics */
public static final String ENTITY_STORE_V1_LATEST_INDEX = ".entities.v1.latest.security_*";
public static final String ASSET_CRITICALITY_INDEX = ".asset-criticality.asset-criticality-*";
public static final String PRIVILEGED_USER_MONITORING_INDEX = ".entity_analytics.monitoring*";

/** Index pattern for Universal Profiling */
public static final String UNIVERSAL_PROFILING_ALIASES = "profiling-*";
Expand Down Expand Up @@ -780,7 +781,8 @@ private static RoleDescriptor buildViewerRoleDescriptor() {
ReservedRolesStore.LISTS_INDEX_REINDEXED_V8,
ReservedRolesStore.LISTS_ITEMS_INDEX_REINDEXED_V8,
ReservedRolesStore.ENTITY_STORE_V1_LATEST_INDEX,
ReservedRolesStore.ASSET_CRITICALITY_INDEX
ReservedRolesStore.ASSET_CRITICALITY_INDEX,
ReservedRolesStore.PRIVILEGED_USER_MONITORING_INDEX
)
.privileges("read", "view_index_metadata")
.build(),
Expand Down Expand Up @@ -849,7 +851,7 @@ private static RoleDescriptor buildEditorRoleDescriptor() {
.build(),
// Security - Entity Store is view only
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this comment is out of date, as the following code now grants read-only access to multiple indices

RoleDescriptor.IndicesPrivileges.builder()
.indices(ReservedRolesStore.ENTITY_STORE_V1_LATEST_INDEX)
.indices(ReservedRolesStore.ENTITY_STORE_V1_LATEST_INDEX, ReservedRolesStore.PRIVILEGED_USER_MONITORING_INDEX)
.privileges("read", "view_index_metadata")
.build(),
// Alerts-as-data
Expand Down