diff --git a/docs/changelog/138094.yaml b/docs/changelog/138094.yaml new file mode 100644 index 0000000000000..c9592b8b84ca5 --- /dev/null +++ b/docs/changelog/138094.yaml @@ -0,0 +1,6 @@ +pr: 138094 +summary: "[IRONSCALES] Add `manage`, `create_index`, `read`, `index`, `write`, `delete`, permission for third party agent indices `kibana_system`" +area: Authorization +type: enhancement +issues: + - 138093 diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java index f688f30e016ab..cf0bcadd5af94 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java @@ -552,7 +552,7 @@ static RoleDescriptor kibanaSystem(String name) { TransportDeleteIndexAction.TYPE.name() ) .build(), - // For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions. + // For ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera and IRONSCALES specific actions. // Kibana reads, writes and manages this index // for configured ILM policies. RoleDescriptor.IndicesPrivileges.builder() @@ -565,7 +565,8 @@ static RoleDescriptor kibanaSystem(String name) { "logs-island_browser.device-*", "logs-cyera.classification-*", "logs-cyera.issue-*", - "logs-cyera.datastore-*" + "logs-cyera.datastore-*", + "logs-ironscales.incident-*" ) .privileges( "manage", diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java index 72b1c67071064..5052bd98d9304 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java @@ -1979,7 +1979,7 @@ public void testKibanaSystemRole() { assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true)); }); - // Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system` + // Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera, IRONSCALES) that `kibana_system` // has full management access to // This includes read, write, create, delete, and all ILM-related management actions. Arrays.asList( @@ -1991,7 +1991,8 @@ public void testKibanaSystemRole() { "logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)), "logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)), "logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)), - "logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)) + "logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10)), + "logs-ironscales.incident-" + randomAlphaOfLength(randomIntBetween(1, 10)) ).forEach((index_qualys_extra_hop) -> { final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);