Validate requests are not impacted during security cache invalidation#3637
Merged
peternied merged 10 commits intoopensearch-project:mainfrom Nov 3, 2023
Merged
Conversation
…ated Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Member
Author
|
To replicate the OptionalDataException you need to revert the 2 changes in the PR description and also change every instance of |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
peternied
reviewed
Nov 2, 2023
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
peternied
previously approved these changes
Nov 2, 2023
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <craig5008@gmail.com>
DarshitChanpura
approved these changes
Nov 3, 2023
cwperks
added a commit
to cwperks/security
that referenced
this pull request
Nov 3, 2023
…opensearch-project#3637) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Craig Perkins <craig5008@gmail.com>
3 tasks
willyborankin
pushed a commit
that referenced
this pull request
Nov 17, 2023
#3725) ### Description This change backports #1970 in order to fix the OptionalDataException issue encountered on the 1.3.x line. The original change did not have any tests but #3637 added tests, so I backported those as well and the changes required to support them. This resulted in changes to the TestSecurityConfig.User class, the addition of a IndexStateIsEqualToMatcher and User.java. ### Issues Resolved - Resolves #3531 - Backports #1970 - Backports #3637 ### Check List - [X] New functionality includes testing - [ ] ~New functionality has been documented~ - [x] Commits are signed per the DCO using --signoff By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Stephen Crawford <steecraw@amazon.com> Signed-off-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> Signed-off-by: Peter Nied <petern@amazon.com> Co-authored-by: Peter Nied <petern@amazon.com>
peternied
pushed a commit
to peternied/security
that referenced
this pull request
Nov 30, 2023
…opensearch-project#3637) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Craig Perkins <craig5008@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Opening a PR that adds a test to ensure that requests during a cache invalidation succeed and fail if any unsuccessful status code is detected. This is related to adding an automated test for #1961
I'm currently encountering a couple of issues and am able to reproduce a separate concurrency error, but not the OptionalDataException.
This test will fail if both of these PRs are reverted:
When the above 2 PRs are reverted, the test case fails with:
This test provides assurances that there are no errors related to concurrency and cache invalidation. I had to update the integrationTest framework to add
backendRolesonto the User object in the integration test suite.Adds a test
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.