Skip to content

Commit f0d6a4c

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

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
@@ -538,7 +538,7 @@ static RoleDescriptor kibanaSystem(String name) {
538538
TransportDeleteIndexAction.TYPE.name()
539539
)
540540
.build(),
541-
// For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions.
541+
// For ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera and IRONSCALES specific actions.
542542
// Kibana reads, writes and manages this index
543543
// for configured ILM policies.
544544
RoleDescriptor.IndicesPrivileges.builder()
@@ -551,7 +551,8 @@ static RoleDescriptor kibanaSystem(String name) {
551551
"logs-island_browser.device-*",
552552
"logs-cyera.classification-*",
553553
"logs-cyera.issue-*",
554-
"logs-cyera.datastore-*"
554+
"logs-cyera.datastore-*",
555+
"logs-ironscales.incident-*"
555556
)
556557
.privileges(
557558
"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
@@ -1917,7 +1917,7 @@ public void testKibanaSystemRole() {
19171917
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
19181918
});
19191919

1920-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
1920+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera, IRONSCALES) that `kibana_system`
19211921
// has full management access to
19221922
// This includes read, write, create, delete, and all ILM-related management actions.
19231923
Arrays.asList(
@@ -1929,7 +1929,8 @@ public void testKibanaSystemRole() {
19291929
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19301930
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19311931
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1932-
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
1932+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1933+
"logs-ironscales.incident-" + randomAlphaOfLength(randomIntBetween(1, 10))
19331934
).forEach((index_qualys_extra_hop) -> {
19341935
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19351936

0 commit comments

Comments
 (0)