Skip to content

Commit 5959bb1

Browse files
authored
Merge branch '9.2' into backport/9.2/pr-137558
2 parents d4a4fb1 + b66fa0a commit 5959bb1

File tree

48 files changed

+326
-558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+326
-558
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

docs/changelog/138438.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 138438
2+
summary: Change `DatabaseNodeService` error logs to warnings
3+
area: Ingest Node
4+
type: bug
5+
issues: []

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/DatabaseNodeService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void checkDatabases(ProjectState projectState) {
371371
try {
372372
retrieveAndUpdateDatabase(projectId, name, metadata);
373373
} catch (Exception ex) {
374-
logger.error(() -> "failed to retrieve database [" + name + "]", ex);
374+
logger.warn(() -> "failed to retrieve database [" + name + "]", ex);
375375
}
376376
});
377377

@@ -468,13 +468,13 @@ void retrieveAndUpdateDatabase(ProjectId projectId, String databaseName, GeoIpTa
468468
Files.delete(retrievedFile);
469469
},
470470
failure -> {
471-
logger.error(() -> "failed to retrieve database [" + databaseName + "]", failure);
471+
logger.warn(() -> "failed to retrieve database [" + databaseName + "]", failure);
472472
try {
473473
Files.deleteIfExists(databaseTmpFile);
474474
Files.deleteIfExists(retrievedFile);
475475
} catch (IOException ioe) {
476476
ioe.addSuppressed(failure);
477-
logger.error("unable to delete tmp database file after failure", ioe);
477+
logger.warn("unable to delete tmp database file after failure", ioe);
478478
}
479479
}
480480
);
@@ -519,7 +519,7 @@ void updateDatabase(ProjectId projectId, String databaseFileName, String recorde
519519
}
520520
logger.info("successfully loaded database file [{}]", file.getFileName());
521521
} catch (Exception e) {
522-
logger.error(() -> "failed to update database [" + databaseFileName + "]", e);
522+
logger.warn(() -> "failed to update database [" + databaseFileName + "]", e);
523523
}
524524
}
525525

@@ -533,7 +533,7 @@ void removeStaleEntries(ProjectId projectId, Collection<String> staleEntries) {
533533
assert existing != null;
534534
existing.shutdown(true);
535535
} catch (Exception e) {
536-
logger.error(() -> "failed to clean database [" + staleEntry + "] for project [" + projectId + "]", e);
536+
logger.warn(() -> "failed to clean database [" + staleEntry + "] for project [" + projectId + "]", e);
537537
}
538538
}
539539
}

muted-tests.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,6 @@ tests:
55
- class: org.elasticsearch.packaging.test.PackagesSecurityAutoConfigurationTests
66
method: test20SecurityNotAutoConfiguredOnReInstallation
77
issue: https://github.com/elastic/elasticsearch/issues/112635
8-
- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcSqlSpecIT
9-
method: test {case-functions.testSelectInsertWithLcaseAndLengthWithOrderBy}
10-
issue: https://github.com/elastic/elasticsearch/issues/112642
11-
- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcSqlSpecIT
12-
method: test {case-functions.testUcaseInline1}
13-
issue: https://github.com/elastic/elasticsearch/issues/112641
14-
- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcSqlSpecIT
15-
method: test {case-functions.testUpperCasingTheSecondLetterFromTheRightFromFirstName}
16-
issue: https://github.com/elastic/elasticsearch/issues/112640
17-
- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcSqlSpecIT
18-
method: test {case-functions.testUcaseInline3}
19-
issue: https://github.com/elastic/elasticsearch/issues/112643
20-
- class: org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT
21-
method: test {case-functions.testUcaseInline1}
22-
issue: https://github.com/elastic/elasticsearch/issues/112641
23-
- class: org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT
24-
method: test {case-functions.testUcaseInline3}
25-
issue: https://github.com/elastic/elasticsearch/issues/112643
26-
- class: org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT
27-
method: test {case-functions.testUpperCasingTheSecondLetterFromTheRightFromFirstName}
28-
issue: https://github.com/elastic/elasticsearch/issues/112640
29-
- class: org.elasticsearch.xpack.sql.qa.security.JdbcSqlSpecIT
30-
method: test {case-functions.testSelectInsertWithLcaseAndLengthWithOrderBy}
31-
issue: https://github.com/elastic/elasticsearch/issues/112642
328
- class: org.elasticsearch.packaging.test.WindowsServiceTests
339
method: test30StartStop
3410
issue: https://github.com/elastic/elasticsearch/issues/113160

x-pack/plugin/core/src/main/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
exports org.elasticsearch.xpack.core.eql;
7070
exports org.elasticsearch.xpack.core.esql;
7171
exports org.elasticsearch.xpack.core.esql.action;
72-
exports org.elasticsearch.xpack.core.esql.action.internal; // TODO: qualify to esql when modularized
7372
exports org.elasticsearch.xpack.core.frozen;
7473
exports org.elasticsearch.xpack.core.graph.action;
7574
exports org.elasticsearch.xpack.core.graph;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/esql/action/EsqlQueryRequestBuilder.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/esql/action/internal/SharedSecrets.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

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/esql/action/EsqlQueryRequestBuilderTests.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

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)