Skip to content

Commit 46f362c

Browse files
[Sentinel One] - Fix Cannot execute ILM policy delete step (elastic#133793)
This PR focuses on the short term solution which add the logs-sentinel_one.application-* and logs-sentinel_one.application_risk-* indices under the kibana_system role with deletion privileges to prevent a failed deletion error when the index enters the deletion phase for the ILM lifecycle, in upcoming PR. As it ships transform pipeline too hence read, write permissions are also required. Current behavior: It shows permission issue while deleting the index. (cherry picked from commit bfde47a)
1 parent 1e553de commit 46f362c

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

docs/changelog/133793.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 133793
2+
summary: "[Sentinel One] Add `manage`, `create_index`, `read`, `index`, `write`, `delete`, permission for third party agent indices `kibana_system`"
3+
area: Authorization
4+
type: enhancement
5+
issues:
6+
- 133703

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ static RoleDescriptor kibanaSystem(String name) {
525525
.indices(
526526
"logs-m365_defender.vulnerability-*",
527527
"logs-microsoft_defender_endpoint.vulnerability-*",
528-
"logs-microsoft_defender_cloud.assessment-*"
528+
"logs-microsoft_defender_cloud.assessment-*",
529+
"logs-sentinel_one.application_risk-*"
529530
)
530531
.privileges(
531532
"read",
@@ -534,10 +535,11 @@ static RoleDescriptor kibanaSystem(String name) {
534535
TransportDeleteIndexAction.TYPE.name()
535536
)
536537
.build(),
537-
// For ExtraHop and QualysGAV specific actions. Kibana reads, writes and manages this index
538+
// For ExtraHop, QualysGAV, and SentinelOne Application Dataset specific actions. Kibana reads, writes and manages this
539+
// index
538540
// for configured ILM policies.
539541
RoleDescriptor.IndicesPrivileges.builder()
540-
.indices("logs-extrahop.investigation-*", "logs-qualys_gav.asset-*")
542+
.indices("logs-extrahop.investigation-*", "logs-qualys_gav.asset-*", "logs-sentinel_one.application-*")
541543
.privileges(
542544
"manage",
543545
"create_index",

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,8 @@ public void testKibanaSystemRole() {
17181718
Arrays.asList(
17191719
"logs-m365_defender.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
17201720
"logs-microsoft_defender_endpoint.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1721-
"logs-microsoft_defender_cloud.assessment-" + randomAlphaOfLength(randomIntBetween(0, 13))
1721+
"logs-microsoft_defender_cloud.assessment-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1722+
"logs-sentinel_one.application_risk-" + randomAlphaOfLength(randomIntBetween(0, 13))
17221723
).forEach(indexName -> {
17231724
final IndexAbstraction indexAbstraction = mockIndexAbstraction(indexName);
17241725
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(indexAbstraction), is(false));
@@ -1913,11 +1914,12 @@ public void testKibanaSystemRole() {
19131914
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
19141915
});
19151916

1916-
// Tests for third-party agent indices (ExtraHop, QualysGAV) that `kibana_system` has full management access to
1917+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne) that `kibana_system` has full management access to
19171918
// This includes read, write, create, delete, and all ILM-related management actions.
19181919
Arrays.asList(
19191920
"logs-extrahop.investigation-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1920-
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10))
1921+
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1922+
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10))
19211923
).forEach((index_qualys_extra_hop) -> {
19221924
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19231925

0 commit comments

Comments
 (0)