Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -345,7 +345,10 @@ static RoleDescriptor kibanaSystem(String name) {
// ingested by Fleet integrations
// in order to provide support for response actions related to malicious events
// for such agents.
RoleDescriptor.IndicesPrivileges.builder().indices("logs-sentinel_one.*", "logs-crowdstrike.*").privileges("read").build(),
RoleDescriptor.IndicesPrivileges.builder()
.indices("logs-sentinel_one.*", "logs-crowdstrike.*", "logs-microsoft_defender_endpoint.*", "logs-m365_defender.*")
.privileges("read")
.build(),
// For ILM policy for APM, Endpoint, & Synthetics packages that have delete
// action
RoleDescriptor.IndicesPrivileges.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ public void testKibanaSystemRole() {
// Tests for third-party agent indices that `kibana_system` has only `read` access
Arrays.asList(
"logs-sentinel_one." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-crowdstrike." + randomAlphaOfLength(randomIntBetween(0, 13))
"logs-crowdstrike." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-microsoft_defender_endpoint." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-m365_defender." + randomAlphaOfLength(randomIntBetween(0, 13))
).forEach((index) -> {
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index);
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(indexAbstraction), is(false));
Expand Down