-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ExtensionsManager.lookupExtensionSettingsById when verifying extension unique id #2749
Use ExtensionsManager.lookupExtensionSettingsById when verifying extension unique id #2749
Conversation
…nsion unique id Signed-off-by: Craig Perkins <cwperx@amazon.com>
Curious what settings of extensions is security plugin interested in ? |
@saratvemulapalli There are a couple of instances where security would like to "extend" the settings in See this issue for 2 examples of settings that security would like to add and read from |
Thanks @cwperks. It makes sense to read information. I have few questions on writing to |
BWC tests are blocked on failing CI because 2.x branch needs this fix backported to it as well. I will bypass these tests and merge if everything else passed so this change can be backported to unblock all branches. |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #2749 +/- ##
=========================================
Coverage 61.36% 61.36%
- Complexity 3413 3414 +1
=========================================
Files 272 272
Lines 18850 18850
Branches 3296 3296
=========================================
Hits 11568 11568
Misses 5684 5684
Partials 1598 1598
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2749-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9d758f9166e6af76589ab403a6ee5ec22792bc64
# Push it to GitHub
git push --set-upstream origin backport/backport-2749-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 9d758f9)
…nsion unique id (opensearch-project#2749) (opensearch-project#2755) Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 9d758f9) Co-authored-by: Craig Perkins <cwperx@amazon.com>
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com>
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com>
…nsion unique id (opensearch-project#2749) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Sam <samuel.costa@eliatra.com>
Description
The current method being used to permit handshake requests from extensions is failing because an extension with the unique id is not present in the map of initialized extensions. Since the handshake is the first request performed to initialize an extension, the extension will not be available in the map of initialized extensions. This PR consumes a new method defined in core to get extension settings by unique id which checks to see if the extension unique id is present in the list of extensions in
extensions/extensions.yml
Associated PR in core: opensearch-project/OpenSearch#7466
Bug fix
Issues Resolved
#2747
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.