Skip to content

Commit e1241d8

Browse files
committed
Merge branch 'main' into multiple-resource-tests
2 parents 87a93c0 + 51d6e04 commit e1241d8

File tree

108 files changed

+2031
-1561
lines changed

Some content is hidden

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

108 files changed

+2031
-1561
lines changed

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## [Unreleased 3.x]
77
### Added
88

9+
### Changed
10+
- Ensure all restHeaders from ActionPlugin.getRestHeaders are carried to threadContext for tracing ([#5396](https://github.com/opensearch-project/security/pull/5396))
911
### Features
1012

1113
### Enhancements
14+
- Moved configuration reloading to dedicated thread to improve node stability ([#5479](https://github.com/opensearch-project/security/pull/5479))
1215
- Makes resource settings dynamic ([#5677](https://github.com/opensearch-project/security/pull/5677))
1316
- [Resource Sharing] Allow multiple sharable resource types in single resource index ([#5713](https://github.com/opensearch-project/security/pull/5713))
17+
- Adding Alerting V2 roles to roles.yml ([#5747](https://github.com/opensearch-project/security/pull/5747))
18+
- add suggest api to ad read access role ([#5754](https://github.com/opensearch-project/security/pull/5754))
19+
- Get list of headersToCopy from core and use getHeader(String headerName) instead of getHeaders() ([#5769](https://github.com/opensearch-project/security/pull/5769))
1420

1521
### Bug Fixes
1622
- Create a WildcardMatcher.NONE when creating a WildcardMatcher with an empty string ([#5694](https://github.com/opensearch-project/security/pull/5694))
1723
- Improve array validator to also check for blank string in addition to null ([#5714](https://github.com/opensearch-project/security/pull/5714))
1824
- Use RestRequestFilter.getFilteredRequest to declare sensitive API params ([#5710](https://github.com/opensearch-project/security/pull/5710))
1925
- Fix deprecated SSL transport settings in demo certificates ([#5723](https://github.com/opensearch-project/security/pull/5723))
2026
- Updates DlsFlsValveImpl condition to return true if request is internal and not a protected resource request ([#5721](https://github.com/opensearch-project/security/pull/5721))
27+
- [Performance] Call AdminDns.isAdmin once per request ([#5752](https://github.com/opensearch-project/security/pull/5752))
2128

2229
### Refactoring
2330
- [Resource Sharing] Make migrate api require default access level to be supplied and updates documentations + tests ([#5717](https://github.com/opensearch-project/security/pull/5717))
2431
- [Resource Sharing] Removes share and revoke java APIs ([#5718](https://github.com/opensearch-project/security/pull/5718))
2532
- Fix build failure in SecurityFilterTests ([#5736](https://github.com/opensearch-project/security/pull/5736))
33+
- [Resource Sharing]Refactor ResourceProvider to an interface and other ResourceSharing refactors ([#5755](https://github.com/opensearch-project/security/pull/5755))
34+
- Replace AccessController and remove restriction on word Extension ([#5750](https://github.com/opensearch-project/security/pull/5750))
35+
- Add security provider earlier in bootstrap process ([#5749](https://github.com/opensearch-project/security/pull/5749))
36+
- [GRPC] Fix compilation errors from core protobuf version bump to 0.23.0 ([#5763](https://github.com/opensearch-project/security/pull/5763))
2637

2738
### Maintenance
28-
- Bump `org.junit.jupiter:junit-jupiter` from 5.13.4 to 5.14.0 ([#5678](https://github.com/opensearch-project/security/pull/5678))
39+
- Bump `org.junit.jupiter:junit-jupiter` from 5.13.4 to 5.14.1 ([#5678](https://github.com/opensearch-project/security/pull/5678), [#5764](https://github.com/opensearch-project/security/pull/5764))
2940
- Bump `ch.qos.logback:logback-classic` from 1.5.18 to 1.5.20 ([#5680](https://github.com/opensearch-project/security/pull/5680), [#5724](https://github.com/opensearch-project/security/pull/5724))
3041
- Bump `org.scala-lang:scala-library` from 2.13.16 to 2.13.17 ([#5682](https://github.com/opensearch-project/security/pull/5682))
3142
- Bump `org.gradle.test-retry` from 1.6.2 to 1.6.4 ([#5706](https://github.com/opensearch-project/security/pull/5706))
@@ -38,9 +49,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3849
- Bump `com.github.spotbugs` from 6.4.2 to 6.4.4 ([#5727](https://github.com/opensearch-project/security/pull/5727))
3950
- Bump `com.autonomousapps.build-health` from 3.0.4 to 3.3.0 ([#5726](https://github.com/opensearch-project/security/pull/5726), [#5744](https://github.com/opensearch-project/security/pull/5744))
4051
- Bump `spring_version` from 6.2.11 to 6.2.12 ([#5725](https://github.com/opensearch-project/security/pull/5725))
52+
- Bump `org.springframework.kafka:spring-kafka-test` from 4.0.0-M5 to 4.0.0-RC1 ([#5742](https://github.com/opensearch-project/security/pull/5742))
53+
- Bump `com.google.errorprone:error_prone_annotations` from 2.42.0 to 2.43.0 ([#5743](https://github.com/opensearch-project/security/pull/5743))
4154
- Bump `actions/upload-artifact` from 4 to 5 ([#5740](https://github.com/opensearch-project/security/pull/5740))
4255
- Bump `actions/download-artifact` from 5 to 6 ([#5739](https://github.com/opensearch-project/security/pull/5739))
43-
- Bump `com.google.googlejavaformat:google-java-format` from 1.28.0 to 1.30.0 ([#5741](https://github.com/opensearch-project/security/pull/5741))
56+
- Bump `com.google.googlejavaformat:google-java-format` from 1.28.0 to 1.31.0 ([#5741](https://github.com/opensearch-project/security/pull/5741), [#5765](https://github.com/opensearch-project/security/pull/5765))
57+
- Bump `com.jayway.jsonpath:json-path` from 2.9.0 to 2.10.0 ([#5767](https://github.com/opensearch-project/security/pull/5767))
4458

4559
### Documentation
4660

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ configurations {
482482
// For integrationTest
483483
force "org.apache.httpcomponents:httpclient:4.5.14"
484484
force "org.apache.httpcomponents:httpcore:4.4.16"
485-
force "com.google.errorprone:error_prone_annotations:2.42.0"
485+
force "com.google.errorprone:error_prone_annotations:2.43.0"
486486
force "org.checkerframework:checker-qual:3.51.1"
487487
force "ch.qos.logback:logback-classic:1.5.20"
488488
force "commons-io:commons-io:2.20.0"
@@ -574,7 +574,7 @@ allprojects {
574574
integrationTestImplementation 'org.slf4j:slf4j-api:2.0.12'
575575
integrationTestImplementation 'com.selectivem.collections:special-collections-complete:1.4.0'
576576

577-
integrationTestImplementation ('com.jayway.jsonpath:json-path:2.9.0') {
577+
integrationTestImplementation ('com.jayway.jsonpath:json-path:2.10.0') {
578578
exclude(group: 'net.minidev', module: 'json-smart')
579579
}
580580
}
@@ -695,7 +695,7 @@ dependencies {
695695
runtimeOnly 'com.eclipsesource.minimal-json:minimal-json:0.9.5'
696696
runtimeOnly 'commons-codec:commons-codec:1.19.0'
697697
runtimeOnly 'org.cryptacular:cryptacular:1.2.7'
698-
compileOnly 'com.google.errorprone:error_prone_annotations:2.42.0'
698+
compileOnly 'com.google.errorprone:error_prone_annotations:2.43.0'
699699
runtimeOnly 'com.sun.istack:istack-commons-runtime:4.2.0'
700700
runtimeOnly 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.4'
701701
runtimeOnly 'org.ow2.asm:asm:9.9'
@@ -762,10 +762,10 @@ dependencies {
762762
testImplementation "org.apache.kafka:kafka-test-common-runtime:${kafka_version}"
763763
testImplementation "org.apache.kafka:kafka-test-common-internal-api:${kafka_version}"
764764
testImplementation 'commons-validator:commons-validator:1.10.0'
765-
testImplementation "org.springframework.kafka:spring-kafka-test:4.0.0-M5"
765+
testImplementation "org.springframework.kafka:spring-kafka-test:4.0.0-RC1"
766766
testImplementation "org.springframework:spring-beans:${spring_version}"
767-
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.0'
768-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.14.0'
767+
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.1'
768+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.14.1'
769769
testImplementation('org.awaitility:awaitility:4.3.0') {
770770
exclude(group: 'org.hamcrest', module: 'hamcrest')
771771
}
@@ -795,7 +795,7 @@ dependencies {
795795
compileOnly "org.opensearch:opensearch:${opensearch_version}"
796796

797797
//spotless
798-
implementation('com.google.googlejavaformat:google-java-format:1.30.0') {
798+
implementation('com.google.googlejavaformat:google-java-format:1.31.0') {
799799
exclude group: 'com.google.guava'
800800
}
801801
}

bwc-test/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def String extractVersion(versionStr) {
138138
node.setting("plugins.security.ssl.transport.pemcert_filepath", "esnode.pem")
139139
node.setting("plugins.security.ssl.transport.pemkey_filepath", "esnode-key.pem")
140140
node.setting("plugins.security.ssl.transport.pemtrustedcas_filepath", "root-ca.pem")
141-
node.setting("plugins.security.ssl.transport.enforce_hostname_verification", "false")
141+
node.setting("transport.ssl.enforce_hostname_verification", "false")
142142
node.setting("plugins.security.ssl.http.enabled", "true")
143143
node.setting("plugins.security.ssl.http.pemcert_filepath", "esnode.pem")
144144
node.setting("plugins.security.ssl.http.pemkey_filepath", "esnode-key.pem")

checkstyle/checkstyle.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,13 @@
228228
<property name="severity" value="error"/>
229229
</module>
230230

231-
<module name="RegexpSingleline">
232-
<property name="format" value="extension"/>
233-
<property name="ignoreCase" value="true"/>
234-
<property name="message" value="Extension should only be used sparingly to keep implementations as generic as possible" />
235-
<property name="severity" value="error"/>
236-
</module>
237-
238231
<module name="SuppressWithPlainTextCommentFilter">
239-
<property name="offCommentFormat" value="CS-SUPPRESS-ALL: .+"/> <!-- Require an explaination after surpressing -->
232+
<property name="offCommentFormat" value="CS-SUPPRESS-ALL: .+"/> <!-- Require an explanation after suppressing -->
240233
<property name="onCommentFormat" value="CS-ENFORCE-ALL"/>
241234
</module>
242235

243236
<module name="SuppressWithPlainTextCommentFilter">
244-
<property name="offCommentFormat" value="CS-SUPPRESS-SINGLE\: ([\w\|]+) .+"/> <!-- Require an explaination after surpressing -->
237+
<property name="offCommentFormat" value="CS-SUPPRESS-SINGLE\: ([\w\|]+) .+"/> <!-- Require an explanation after suppressing -->
245238
<property name="onCommentFormat" value="CS-ENFORCE-SINGLE()"/>
246239
<property name="checkFormat" value="$1"/>
247240
</module>

config/roles.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ alerting_read_access:
3535
- 'cluster:admin/opensearch/alerting/comments/search'
3636
- 'cluster:admin/opensearch/alerting/findings/get'
3737
- 'cluster:admin/opensearch/alerting/remote/indexes/get'
38+
- 'cluster:admin/opensearch/alerting/v2/alerts/get'
39+
- 'cluster:admin/opensearch/alerting/v2/monitor/get'
40+
- 'cluster:admin/opensearch/alerting/v2/monitor/search'
3841
- 'cluster:admin/opensearch/alerting/workflow/get'
3942
- 'cluster:admin/opensearch/alerting/workflow_alerts/get'
4043

@@ -69,6 +72,7 @@ anomaly_read_access:
6972
cluster_permissions:
7073
- 'cluster:admin/opendistro/ad/detector/info'
7174
- 'cluster:admin/opendistro/ad/detector/search'
75+
- 'cluster:admin/opendistro/ad/detector/suggest'
7276
- 'cluster:admin/opendistro/ad/detector/validate'
7377
- 'cluster:admin/opendistro/ad/detectors/get'
7478
- 'cluster:admin/opendistro/ad/result/search'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Version 3.3.2 Release Notes
2+
3+
Compatible with OpenSearch 3.3.2 and OpenSearch Dashboards 3.3.0
4+
5+
### Bug Fixes
6+
* Create a WildcardMatcher.NONE when creating a WildcardMatcher with an empty string ([#5694](https://github.com/opensearch-project/security/pull/5694))
7+
* Add security provider earlier in bootstrap process ([#5749](https://github.com/opensearch-project/security/pull/5749))
8+

sample-resource-plugin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ configurations.all {
5858

5959
// Duplicate dependencies with conflicting versions from org.opensearch.plugin:transport-grpc
6060
// Force versions present in security plugin
61-
force "com.google.errorprone:error_prone_annotations:2.42.0"
61+
force "com.google.errorprone:error_prone_annotations:2.43.0"
6262
force "com.google.protobuf:protobuf-java:${versions.protobuf}"
6363
force "com.google.guava:guava:${guava_version}"
6464
force "com.google.guava:failureaccess:1.0.3"

0 commit comments

Comments
 (0)