Skip to content

Commit 6c620ac

Browse files
committed
Merge remote-tracking branch 'origin/main' into star-ff
Signed-off-by: Rishab Nahata <[email protected]>
2 parents 5eb7ac3 + 0cbd848 commit 6c620ac

File tree

69 files changed

+870
-587
lines changed

Some content is hidden

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

69 files changed

+870
-587
lines changed

.github/CODEOWNERS

+17-23
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,31 @@
1-
# CODEOWNERS manages notifications, not PR approvals
2-
# For PR approvals see /.github/workflows/maintainer-approval.yml
3-
4-
# Files have a single rule applied, the last match decides the owner
5-
# If you would like to more specifically apply ownership, include existing owner in new sub fields
6-
71
# To verify changes of CODEOWNERS file
82
# In VSCode
93
# 1. Install extension https://marketplace.visualstudio.com/items?itemName=jasonnutter.vscode-codeowners
104
# 2. Go to a file
115
# 3. Use the command palette to run the CODEOWNERS: Show owners of current file command, which will display all code owners for the current file.
126

137
# Default ownership for all repo files
14-
* @anasalkouz @andrross @ashking94 @bugmakerrrrrr @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jainankitk @kotwanikunal @linuxpi @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
8+
* @opensearch-project/opensearch-core-maintainers
159

16-
/modules/lang-painless/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
17-
/modules/parent-join/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
18-
/modules/transport-netty4/ @peternied
10+
/modules/lang-painless/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
11+
/modules/parent-join/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
12+
/modules/transport-netty4/ @opensearch-project/opensearch-core-maintainers @peternied
1913

20-
/plugins/identity-shiro/ @peternied @cwperks
14+
/plugins/identity-shiro/ @opensearch-project/opensearch-core-maintainers @peternied @cwperks
2115

22-
/server/src/internalClusterTest/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
23-
/server/src/internalClusterTest/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
16+
/server/src/internalClusterTest/java/org/opensearch/index/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
17+
/server/src/internalClusterTest/java/org/opensearch/search/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
2418

25-
/server/src/main/java/org/opensearch/extensions/ @peternied
26-
/server/src/main/java/org/opensearch/identity/ @peternied @cwperks
27-
/server/src/main/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
28-
/server/src/main/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
29-
/server/src/main/java/org/opensearch/threadpool/ @jed326 @peternied
30-
/server/src/main/java/org/opensearch/transport/ @peternied
19+
/server/src/main/java/org/opensearch/extensions/ @opensearch-project/opensearch-core-maintainers @peternied
20+
/server/src/main/java/org/opensearch/identity/ @opensearch-project/opensearch-core-maintainers @peternied @cwperks
21+
/server/src/main/java/org/opensearch/index/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
22+
/server/src/main/java/org/opensearch/search/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
23+
/server/src/main/java/org/opensearch/threadpool/ @opensearch-project/opensearch-core-maintainers @jed326 @peternied
24+
/server/src/main/java/org/opensearch/transport/ @opensearch-project/opensearch-core-maintainers @peternied
3125

32-
/server/src/test/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
33-
/server/src/test/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
26+
/server/src/test/java/org/opensearch/index/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
27+
/server/src/test/java/org/opensearch/search/ @opensearch-project/opensearch-core-maintainers @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
3428

35-
/.github/ @jed326 @peternied
29+
/.github/ @opensearch-project/opensearch-core-maintainers @jed326 @peternied
3630

37-
/MAINTAINERS.md @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @cwperks @dbwiddis @gaobinlong @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @peternied @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
31+
/MAINTAINERS.md @opensearch-project/opensearch-core-maintainers

.github/dependabot.yml

-8
Original file line numberDiff line numberDiff line change
@@ -1403,14 +1403,6 @@ updates:
14031403
labels:
14041404
- "dependabot"
14051405
- "dependencies"
1406-
- directory: /test/fixtures/old-elasticsearch/
1407-
open-pull-requests-limit: 1
1408-
package-ecosystem: gradle
1409-
schedule:
1410-
interval: weekly
1411-
labels:
1412-
- "dependabot"
1413-
- "dependencies"
14141406
- directory: /test/fixtures/s3-fixture/
14151407
open-pull-requests-limit: 1
14161408
package-ecosystem: gradle

.github/workflows/maintainer-approval.yml

-32
This file was deleted.

CHANGELOG.md

+6-11
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## [Unreleased 3.x]
77
### Added
88
- [Rule based auto-tagging] Add get rule API ([#17336](https://github.com/opensearch-project/OpenSearch/pull/17336))
9-
- Add multi-threaded writer support in pull-based ingestion ([#17912](https://github.com/opensearch-project/OpenSearch/pull/17912))
10-
- Unset discovery nodes for every transport node actions request ([#17682](https://github.com/opensearch-project/OpenSearch/pull/17682))
119
- Implement parallel shard refresh behind cluster settings ([#17782](https://github.com/opensearch-project/OpenSearch/pull/17782))
1210
- Bump OpenSearch Core main branch to 3.0.0 ([#18039](https://github.com/opensearch-project/OpenSearch/pull/18039))
13-
- [Star Tree] Support of Boolean Queries in Aggregations ([#17941](https://github.com/opensearch-project/OpenSearch/pull/17941))
1411
- Update API of Message in index to add the timestamp for lag calculation in ingestion polling ([#17977](https://github.com/opensearch-project/OpenSearch/pull/17977/))
15-
- Enabled default throttling for all tasks submitted to cluster manager ([#17711](https://github.com/opensearch-project/OpenSearch/pull/17711))
1612
- Add composite directory factory ([#17988](https://github.com/opensearch-project/OpenSearch/pull/17988))
13+
- Add pull-based ingestion error metrics and make internal queue size configurable ([#18088](https://github.com/opensearch-project/OpenSearch/pull/18088))
14+
- Enabled Async Shard Batch Fetch by default ([#18139](https://github.com/opensearch-project/OpenSearch/pull/18139))
1715

1816
### Changed
19-
- Change the default max header size from 8KB to 16KB. ([#18024](https://github.com/opensearch-project/OpenSearch/pull/18024))
20-
- Avoid invalid retries in multiple replicas when querying [#17370](https://github.com/opensearch-project/OpenSearch/pull/17370)
21-
* Enable concurrent_segment_search auto mode by default[#17978](https://github.com/opensearch-project/OpenSearch/pull/17978)
22-
- Skip approximation when `track_total_hits` is set to `true` [#18017](https://github.com/opensearch-project/OpenSearch/pull/18017)
2317
- [Star tree] Removing star tree indexing and queries added till 2.19 out of expermental [#18070](https://github.com/opensearch-project/OpenSearch/pull/18070)
2418

2519
### Dependencies
2620
- Bump `com.google.code.gson:gson` from 2.12.1 to 2.13.0 ([#17923](https://github.com/opensearch-project/OpenSearch/pull/17923))
2721
- Bump `com.github.spotbugs:spotbugs-annotations` from 4.9.0 to 4.9.3 ([#17922](https://github.com/opensearch-project/OpenSearch/pull/17922))
2822
- Bump `com.microsoft.azure:msal4j` from 1.18.0 to 1.20.0 ([#17925](https://github.com/opensearch-project/OpenSearch/pull/17925))
23+
- Update Apache HttpClient5 and HttpCore5 (CVE-2025-27820) ([#18152](https://github.com/opensearch-project/OpenSearch/pull/18152))
24+
- Bump `org.apache.commons:commons-collections4` from 4.4 to 4.5.0 ([#18101](https://github.com/opensearch-project/OpenSearch/pull/18101))
2925

3026
### Deprecated
3127

3228
### Removed
3329

3430
### Fixed
35-
- Fix ingest pipeline cannot be executed when retry the failed index requests for update_by_query API and reindex API ([#18003](https://github.com/opensearch-project/OpenSearch/pull/18003))
36-
- With creation of FilterFieldType, we need unwrap all the MappedFieldType before using the instanceof check. ([#17951](https://github.com/opensearch-project/OpenSearch/pull/17951))
3731
- Fix simultaneously creating a snapshot and updating the repository can potentially trigger an infinite loop ([#17532](https://github.com/opensearch-project/OpenSearch/pull/17532))
3832
- Remove package org.opensearch.transport.grpc and replace with org.opensearch.plugin.transport.grpc ([#18031](https://github.com/opensearch-project/OpenSearch/pull/18031))
33+
- Fix the native plugin installation error cause by the pgp public key change ([#18147](https://github.com/opensearch-project/OpenSearch/pull/18147))
3934

4035
### Security
4136

42-
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/aa0e724e...main
37+
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.0...main

build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ subprojects {
551551
includeClasses.add("org.opensearch.snapshots.SnapshotStatusApisIT")
552552
includeClasses.add("org.opensearch.test.rest.ClientYamlTestSuiteIT")
553553
includeClasses.add("org.opensearch.upgrade.DetectEsInstallationTaskTests")
554-
includeClasses.add("org.opensearch.cluster.MinimumClusterManagerNodesIT")
555554
}
556555
}
557556
}

client/rest/licenses/httpclient5-5.4.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
29aafa2d5ced55ed75dab37cce5e125fb06e54d8

client/rest/licenses/httpcore5-5.3.2.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ea47f0fe6e00ffb07cec3a0cb1bb801b1a9cc353

client/rest/licenses/httpcore5-h2-5.3.2.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3742a9a9ba3a5a0d45be230093b52a1302a561e2

client/rest/licenses/httpcore5-reactive-5.3.2.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
584f61333473c03458ccb38b7fa9a06b847b4046

client/rest/src/test/java/org/opensearch/client/RestClientSingleHostIntegTests.java

-3
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,6 @@ public void testHeaders() throws Exception {
382382
if (method.equals("HEAD") == false) {
383383
standardHeaders.add("Content-length");
384384
}
385-
if (method.equals("HEAD") == true || method.equals("GET") == true || method.equals("OPTIONS") == true) {
386-
standardHeaders.add("Upgrade");
387-
}
388385

389386
final Header[] requestHeaders = RestClientTestUtil.randomHeaders(getRandom(), "Header");
390387
final int statusCode = randomStatusCode(getRandom());

client/sniffer/licenses/httpclient5-5.4.1.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
29aafa2d5ced55ed75dab37cce5e125fb06e54d8

client/sniffer/licenses/httpcore5-5.3.2.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ea47f0fe6e00ffb07cec3a0cb1bb801b1a9cc353

distribution/packages/src/common/systemd/opensearch.service

+25-11
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ WorkingDirectory=/usr/share/opensearch
2626
User=opensearch
2727
Group=opensearch
2828

29+
ExecStartPre=/bin/mkdir -p /dev/shm/performanceanalyzer
30+
ExecStartPre=/bin/chown opensearch:opensearch /dev/shm/performanceanalyzer
31+
2932
ExecStart=/usr/share/opensearch/bin/systemd-entrypoint -p ${PID_DIR}/opensearch.pid --quiet
3033

3134
# StandardOutput is configured to redirect to journalctl since
@@ -97,6 +100,8 @@ LockPersonality=yes
97100
# System call filterings which restricts which system calls a process can make
98101
# @ means allowed
99102
# ~ means not allowed
103+
# These syscalls are related to mmap which is needed for OpenSearch Services
104+
SystemCallFilter=madvise mincore mlock mlock2 munlock get_mempolicy sched_getaffinity sched_setaffinity fcntl
100105
SystemCallFilter=@system-service
101106
SystemCallFilter=~@reboot
102107
SystemCallFilter=~@swap
@@ -130,11 +135,12 @@ RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
130135

131136
ReadWritePaths=/var/log/opensearch
132137
ReadWritePaths=/var/lib/opensearch
138+
ReadWritePaths=/dev/shm/
133139
ReadWritePaths=-/etc/opensearch
134140
ReadWritePaths=-/mnt/snapshots
135141

136142
## Allow read access to system files
137-
ReadOnlyPaths=/etc/os-release /usr/lib/os-release /etc/system-release
143+
ReadOnlyPaths=-/etc/os-release -/usr/lib/os-release -/etc/system-release
138144

139145
## Allow read access to Linux IO stats
140146
ReadOnlyPaths=/proc/self/mountinfo /proc/diskstats
@@ -149,17 +155,25 @@ RestrictNamespaces=true
149155
NoNewPrivileges=true
150156

151157
# Memory and execution protection
152-
MemoryDenyWriteExecute=true # Prevent creating writable executable memory mappings
153-
SystemCallArchitectures=native # Allow only native system calls
154-
KeyringMode=private # Service does not share key material with other services
155-
LockPersonality=true # Prevent changing ABI personality
156-
RestrictSUIDSGID=true # Prevent creating SUID/SGID files
157-
RestrictRealtime=true # Prevent acquiring realtime scheduling
158-
ProtectHostname=true # Prevent changes to system hostname
159-
ProtectKernelLogs=true # Prevent reading/writing kernel logs
160-
ProtectClock=true # Prevent tampering with the system clock
158+
159+
# Allow only native system calls
160+
SystemCallArchitectures=native
161+
# Service does not share key material with other services
162+
KeyringMode=private
163+
# Prevent changing ABI personality
164+
LockPersonality=true
165+
# Prevent creating SUID/SGID files
166+
RestrictSUIDSGID=true
167+
# Prevent acquiring realtime scheduling
168+
RestrictRealtime=true
169+
# Prevent changes to system hostname
170+
ProtectHostname=true
171+
# Prevent reading/writing kernel logs
172+
ProtectKernelLogs=true
173+
# Prevent tampering with the system clock
174+
ProtectClock=true
161175

162176
[Install]
163177
WantedBy=multi-user.target
164178

165-
# Built for ${project.name}-${project.version} (${project.name})
179+
# Built for ${project.name}-${project.version} (${project.name})

distribution/tools/plugin-cli/src/main/java/org/opensearch/tools/cli/plugin/InstallPluginCommand.java

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.apache.lucene.util.CollectionUtil;
4141
import org.apache.lucene.util.Constants;
4242
import org.bouncycastle.bcpg.ArmoredInputStream;
43+
import org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider;
4344
import org.bouncycastle.openpgp.PGPException;
4445
import org.bouncycastle.openpgp.PGPPublicKey;
4546
import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
@@ -90,6 +91,7 @@
9091
import java.nio.file.attribute.PosixFilePermissions;
9192
import java.security.MessageDigest;
9293
import java.security.NoSuchAlgorithmException;
94+
import java.security.Security;
9395
import java.util.ArrayList;
9496
import java.util.Arrays;
9597
import java.util.Collections;
@@ -632,6 +634,7 @@ void verifySignature(final Path zip, final String urlString) throws IOException,
632634
// compute the signature of the downloaded plugin zip
633635
final PGPPublicKeyRingCollection collection = new PGPPublicKeyRingCollection(ain, new JcaKeyFingerprintCalculator());
634636
final PGPPublicKey key = collection.getPublicKey(signature.getKeyID());
637+
Security.addProvider(new BouncyCastleFipsProvider());
635638
signature.init(new JcaPGPContentVerifierBuilderProvider().setProvider("BCFIPS"), key);
636639
final byte[] buffer = new byte[1024];
637640
int read;

0 commit comments

Comments
 (0)