-
Notifications
You must be signed in to change notification settings - Fork 113
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
ManagedIndex Explain Action - Index permissions check fix #783
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #783 +/- ##
============================================
+ Coverage 75.53% 75.63% +0.10%
- Complexity 2831 2833 +2
============================================
Files 364 364
Lines 16176 16177 +1
Branches 2324 2324
============================================
+ Hits 12219 12236 +17
+ Misses 2619 2603 -16
Partials 1338 1338
|
@@ -180,83 +182,81 @@ class TransportExplainAction @Inject constructor( | |||
} | |||
|
|||
private fun searchForMetadata(searchRequest: SearchRequest) { | |||
client.threadPool().threadContext.stashContext().use { threadContext -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stash context so that plugin can search the ISM system index, otherwise the search won't return anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is called from coroutine so TLS should be clean at this point
...arch/indexmanagement/indexstatemanagement/transport/action/explain/TransportExplainAction.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/org/opensearch/indexmanagement/ExplainSecurityBehaviorIT.kt
Outdated
Show resolved
Hide resolved
d80fcd1
to
7f73a2c
Compare
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
…urity tests into security package Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
…roject#722) * notification crud api Signed-off-by: zhichao-aws <[email protected]> * changes based on comments; add tests Signed-off-by: zhichao-aws <[email protected]> * changes for comment Signed-off-by: zhichao-aws <[email protected]> * change behavior for get action index not exists, fix test cases Signed-off-by: zhichao-aws <[email protected]> * fix weak password for changes in security plugin Signed-off-by: zhichao-aws <[email protected]> --------- Signed-off-by: zhichao-aws <[email protected]>
…urity tests into security package Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
4b7d6a2
to
95d4c8c
Compare
Signed-off-by: Petar Dzepina <[email protected]>
Signed-off-by: Petar Dzepina <[email protected]>
Issue #, if available:
Description of changes:
Fixed verifying index permissions when calling Explain API on managed index
CheckList:
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.