Skip to content
Merged
Show file tree
Hide file tree
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 @@ -694,24 +694,35 @@ public static RoleDescriptor kibanaSystemRoleDescriptor(String name) {
.indices(".ml-annotations*", ".ml-notifications*")
.privileges("read", "write")
.build(),

// APM agent configuration - system index defined in KibanaPlugin
RoleDescriptor.IndicesPrivileges.builder()
.indices(".apm-agent-configuration")
.privileges("all")
.allowRestrictedIndices(true)
.build(),

// APM custom link index creation - system index defined in KibanaPlugin
RoleDescriptor.IndicesPrivileges.builder()
.indices(".apm-custom-link")
.privileges("all")
.allowRestrictedIndices(true)
.build(),

// APM source map index creation - system index defined in KibanaPlugin
RoleDescriptor.IndicesPrivileges.builder()
.indices(".apm-source-map")
.privileges("all")
.allowRestrictedIndices(true)
.build(),

// APM telemetry queries APM indices in kibana task runner
RoleDescriptor.IndicesPrivileges.builder().indices("apm-*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder().indices("logs-apm.*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder().indices("metrics-apm.*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder().indices("traces-apm.*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder().indices("traces-apm-*").privileges("read", "read_cross_cluster").build(),

// Data telemetry reads mappings, metadata and stats of indices
RoleDescriptor.IndicesPrivileges.builder().indices("*").privileges("view_index_metadata", "monitor").build(),
// Endpoint diagnostic information. Kibana reads from these indices to send telemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ public void testKibanaSystemRole() {
".reporting-" + randomAlphaOfLength(randomIntBetween(0, 13)),
".apm-agent-configuration",
".apm-custom-link",
".apm-source-map",
ReservedRolesStore.ALERTS_LEGACY_INDEX + randomAlphaOfLength(randomIntBetween(0, 13)),
ReservedRolesStore.ALERTS_BACKING_INDEX + randomAlphaOfLength(randomIntBetween(0, 13)),
ReservedRolesStore.ALERTS_INDEX_ALIAS + randomAlphaOfLength(randomIntBetween(0, 13)),
Expand Down