Use User directly as authenticated Subject - #6419
Conversation
PR Reviewer Guide 🔍(Review updated until commit c537928)Here are some key observations to aid the review process:
|
f6444e8 to
a0ced03
Compare
|
Persistent review updated to latest commit a0ced03 |
PR Code Suggestions ✨Latest suggestions up to c537928
Previous suggestionsSuggestions up to commit a0ced03
|
Signed-off-by: Craig Perkins <craig5008@gmail.com>
a0ced03 to
c537928
Compare
|
Persistent review updated to latest commit c537928 |
Description
Make the Security plugin user model implement Core
SubjectandPrincipaldirectly, storeUserin persistent thread context, and remove the redundantUserSubjectImplwrapper.The removed wrapper only supplied user-level
runAs()behavior, and no production caller uses it. Existing plugin execution remains unchanged:SecurePluginSubjectcontinues to providerunAs()with the plugin identity and thread-context handling.This prepares Security for opensearch-project/OpenSearch#22796, which removes the unused Core
UserSubjectspecialization. This PR remains compatible with the current Core API and can merge first.Testing
./gradlew precommit -Pcrypto.standard=FIPS-140-3reaches an unrelated existing forbidden-APIs failure inopensearch-sample-resource-pluginfor two uses ofURL.openStream().