Skip to content

Commit 5d6dd63

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

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
@@ -502,7 +502,7 @@ static RoleDescriptor kibanaSystem(String name) {
502502
TransportDeleteIndexAction.TYPE.name()
503503
)
504504
.build(),
505-
// For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions.
505+
// For ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera and IRONSCALES specific actions.
506506
// Kibana reads, writes and manages this index
507507
// for configured ILM policies.
508508
RoleDescriptor.IndicesPrivileges.builder()
@@ -515,7 +515,8 @@ static RoleDescriptor kibanaSystem(String name) {
515515
"logs-island_browser.device-*",
516516
"logs-cyera.classification-*",
517517
"logs-cyera.issue-*",
518-
"logs-cyera.datastore-*"
518+
"logs-cyera.datastore-*",
519+
"logs-ironscales.incident-*"
519520
)
520521
.privileges(
521522
"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
@@ -1896,7 +1896,7 @@ public void testKibanaSystemRole() {
18961896
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
18971897
});
18981898

1899-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
1899+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera, IRONSCALES) that `kibana_system`
19001900
// has full management access to
19011901
// This includes read, write, create, delete, and all ILM-related management actions.
19021902
Arrays.asList(
@@ -1908,7 +1908,8 @@ public void testKibanaSystemRole() {
19081908
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19091909
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19101910
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1911-
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
1911+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1912+
"logs-ironscales.incident-" + randomAlphaOfLength(randomIntBetween(1, 10))
19121913
).forEach((index_qualys_extra_hop) -> {
19131914
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19141915

0 commit comments

Comments
 (0)