Enable bootstrap.serial_filter in integration tests - #6229
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 005ef04.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit 005ef04)Here are some key observations to aid the review process:
|
ad0b7db to
6698ea9
Compare
|
Persistent review updated to latest commit 6698ea9 |
PR Code Suggestions ✨Latest suggestions up to 72c811c
Previous suggestionsSuggestions up to commit 6698ea9
|
Installs a process-wide ObjectInputFilter in the test framework that rejects all Java deserialization by default, mirroring what OpenSearch bootstrap does when bootstrap.serial_filter is enabled. This ensures the security plugin's setObjectInputFilter opt-in in SafeObjectInputStream is exercised during integration tests. Signed-off-by: Craig Perkins <cwperx@amazon.com>
6698ea9 to
72c811c
Compare
|
Persistent review updated to latest commit 72c811c |
…failure Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
7b5e21d to
005ef04
Compare
|
Persistent review updated to latest commit 005ef04 |
78b0c7e
into
opensearch-project:main
Description
Enables the
bootstrap.serial_filtersetting (introduced in opensearch-project/OpenSearch#22073) in the security plugin's integration test clusters.This setting installs a process-wide
ObjectInputFilterthat rejects all Java deserialization by default. Running the security plugin's integration tests with this filter enabled ensures the plugin works correctly with this runtime enforcement active.Testing
./gradlew integrationTest./gradlew test