Skip to content

Commit 648aad5

Browse files
[Sentinel One] - Fix Cannot execute ILM policy delete step (#133793) (#134114)
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 42d63e7 commit 648aad5

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
@@ -467,7 +467,8 @@ static RoleDescriptor kibanaSystem(String name) {
467467
.indices(
468468
"logs-m365_defender.vulnerability-*",
469469
"logs-microsoft_defender_endpoint.vulnerability-*",
470-
"logs-microsoft_defender_cloud.assessment-*"
470+
"logs-microsoft_defender_cloud.assessment-*",
471+
"logs-sentinel_one.application_risk-*"
471472
)
472473
.privileges(
473474
"read",
@@ -476,10 +477,11 @@ static RoleDescriptor kibanaSystem(String name) {
476477
TransportDeleteIndexAction.TYPE.name()
477478
)
478479
.build(),
479-
// For ExtraHop and QualysGAV specific actions. Kibana reads, writes and manages this index
480+
// For ExtraHop, QualysGAV, and SentinelOne Application Dataset specific actions. Kibana reads, writes and manages this
481+
// index
480482
// for configured ILM policies.
481483
RoleDescriptor.IndicesPrivileges.builder()
482-
.indices("logs-extrahop.investigation-*", "logs-qualys_gav.asset-*")
484+
.indices("logs-extrahop.investigation-*", "logs-qualys_gav.asset-*", "logs-sentinel_one.application-*")
483485
.privileges(
484486
"manage",
485487
"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
@@ -1668,7 +1668,8 @@ public void testKibanaSystemRole() {
16681668
Arrays.asList(
16691669
"logs-m365_defender.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
16701670
"logs-microsoft_defender_endpoint.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1671-
"logs-microsoft_defender_cloud.assessment-" + randomAlphaOfLength(randomIntBetween(0, 13))
1671+
"logs-microsoft_defender_cloud.assessment-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1672+
"logs-sentinel_one.application_risk-" + randomAlphaOfLength(randomIntBetween(0, 13))
16721673
).forEach(indexName -> {
16731674
final IndexAbstraction indexAbstraction = mockIndexAbstraction(indexName);
16741675
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(indexAbstraction), is(false));
@@ -1861,11 +1862,12 @@ public void testKibanaSystemRole() {
18611862
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
18621863
});
18631864

1864-
// Tests for third-party agent indices (ExtraHop, QualysGAV) that `kibana_system` has full management access to
1865+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne) that `kibana_system` has full management access to
18651866
// This includes read, write, create, delete, and all ILM-related management actions.
18661867
Arrays.asList(
18671868
"logs-extrahop.investigation-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1868-
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10))
1869+
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1870+
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10))
18691871
).forEach((index_qualys_extra_hop) -> {
18701872
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
18711873

0 commit comments

Comments
 (0)