Skip to content

Commit f01585a

Browse files
[IRONSCALES] - Fix Cannot execute ILM policy delete step (#138094) (#138485)
* Add ILM index for delete previlege * Add changelog entry --------- (cherry picked from commit 1ff2b5d) Co-authored-by: Mohit Jha <[email protected]>
1 parent 5d94f26 commit f01585a

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
@@ -552,7 +552,7 @@ static RoleDescriptor kibanaSystem(String name) {
552552
TransportDeleteIndexAction.TYPE.name()
553553
)
554554
.build(),
555-
// For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions.
555+
// For ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera and IRONSCALES specific actions.
556556
// Kibana reads, writes and manages this index
557557
// for configured ILM policies.
558558
RoleDescriptor.IndicesPrivileges.builder()
@@ -565,7 +565,8 @@ static RoleDescriptor kibanaSystem(String name) {
565565
"logs-island_browser.device-*",
566566
"logs-cyera.classification-*",
567567
"logs-cyera.issue-*",
568-
"logs-cyera.datastore-*"
568+
"logs-cyera.datastore-*",
569+
"logs-ironscales.incident-*"
569570
)
570571
.privileges(
571572
"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
@@ -1979,7 +1979,7 @@ public void testKibanaSystemRole() {
19791979
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
19801980
});
19811981

1982-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
1982+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera, IRONSCALES) that `kibana_system`
19831983
// has full management access to
19841984
// This includes read, write, create, delete, and all ILM-related management actions.
19851985
Arrays.asList(
@@ -1991,7 +1991,8 @@ public void testKibanaSystemRole() {
19911991
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19921992
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19931993
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1994-
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
1994+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1995+
"logs-ironscales.incident-" + randomAlphaOfLength(randomIntBetween(1, 10))
19951996
).forEach((index_qualys_extra_hop) -> {
19961997
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19971998

0 commit comments

Comments
 (0)