Preserve authentication for self-referential CCS - #6473
Conversation
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>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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()