Preserve authentication for self-referential CCS - #6474
Conversation
PR Reviewer Guide 🔍(Review updated until commit 1815de0)Here are some key observations to aid the review process:
|
Identify direct local requests using the TransportService connection instead of relying on DiscoveryNode equality. This ensures remote TCP requests targeting the same node serialize their user context. Signed-off-by: Craig Perkins <craig5008@gmail.com>
813bfbb to
1815de0
Compare
|
Persistent review updated to latest commit 1815de0 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6474 +/- ##
==========================================
+ Coverage 75.78% 75.81% +0.02%
==========================================
Files 457 457
Lines 30556 30556
Branches 4630 4630
==========================================
+ Hits 23158 23167 +9
+ Misses 5274 5265 -9
Partials 2124 2124
🚀 New features to boost your workflow:
|
Fixes #5846
Summary
DiscoveryNodeinstance rather thanDiscoveryNode.equalsDiscoveryNodeequals, but is not identical to, the local nodeValidation
./gradlew spotlessJavaCheck test --tests org.opensearch.security.transport.SecurityInterceptorTests --tests org.opensearch.security.transport.RestoringTransportResponseHandlerTestsNote
./gradlew precommitreaches an unrelated existing forbidden-API failure in the sample resource plugin forURL.openStream()