Skip to content

Commit 1ff2b5d

Browse files
[IRONSCALES] - Fix Cannot execute ILM policy delete step (#138094)
* Add ILM index for delete previlege * Add changelog entry --------- Co-authored-by: Mohit Jha <138874484+mohitjha-elastic@users.noreply.github.com>
1 parent c779717 commit 1ff2b5d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

docs/changelog/138094.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 138094
2+
summary: "[IRONSCALES] 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+
- 138093

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static RoleDescriptor kibanaSystem(String name) {
553553
TransportDeleteIndexAction.TYPE.name()
554554
)
555555
.build(),
556-
// For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions.
556+
// For ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera and IRONSCALES specific actions.
557557
// Kibana reads, writes and manages this index
558558
// for configured ILM policies.
559559
RoleDescriptor.IndicesPrivileges.builder()
@@ -566,7 +566,8 @@ static RoleDescriptor kibanaSystem(String name) {
566566
"logs-island_browser.device-*",
567567
"logs-cyera.classification-*",
568568
"logs-cyera.issue-*",
569-
"logs-cyera.datastore-*"
569+
"logs-cyera.datastore-*",
570+
"logs-ironscales.incident-*"
570571
)
571572
.privileges(
572573
"manage",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ public void testKibanaSystemRole() {
19821982
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
19831983
});
19841984

1985-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
1985+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera, IRONSCALES) that `kibana_system`
19861986
// has full management access to
19871987
// This includes read, write, create, delete, and all ILM-related management actions.
19881988
Arrays.asList(
@@ -1994,7 +1994,8 @@ public void testKibanaSystemRole() {
19941994
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19951995
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19961996
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1997-
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
1997+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1998+
"logs-ironscales.incident-" + randomAlphaOfLength(randomIntBetween(1, 10))
19981999
).forEach((index_qualys_extra_hop) -> {
19992000
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
20002001

0 commit comments

Comments
 (0)