Skip to content

Commit

Permalink
add ilm deletion step permission for the findings index
Browse files Browse the repository at this point in the history
  • Loading branch information
Omolola-Akinleye committed Nov 18, 2024
1 parent 5d9385f commit 2b25257
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,10 @@ static RoleDescriptor kibanaSystem(String name) {
// action
RoleDescriptor.IndicesPrivileges.builder()
.indices(
".logs-endpoint.diagnostic.collection-*",
"logs-apm-*",
"logs-apm.*-*",
"logs-cloud_security_posture.findings-*",
"logs-cloud_security_posture.vulnerabilities-*",
"metrics-apm-*",
"metrics-apm.*-*",
"traces-apm-*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,9 @@ public void testKibanaSystemRole() {
kibanaRole.indices().allowedIndicesMatcher("indices:monitor/" + randomAlphaOfLengthBetween(3, 8)).test(indexAbstraction),
is(true)
);

// Ensure privileges necessary for ILM policies in Cloud Security Posture Package
assertThat(kibanaRole.indices().allowedIndicesMatcher(TransportDeleteIndexAction.TYPE.name()).test(indexAbstraction), is(true));
});

// cloud_defend
Expand Down

0 comments on commit 2b25257

Please sign in to comment.