-
Notifications
You must be signed in to change notification settings - Fork 281
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
[Enhancement-3191] transport_enabled
setting on an auth domain and authorizer may be unnecessary after transport client removal
#3939
Conversation
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Signed-off-by: Prabhas Kurapati <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3939 +/- ##
==========================================
+ Coverage 65.18% 65.61% +0.43%
==========================================
Files 298 298
Lines 21216 21246 +30
Branches 3457 3457
==========================================
+ Hits 13829 13940 +111
+ Misses 5672 5588 -84
- Partials 1715 1718 +3
|
Signed-off-by: Prabhas Kurapati <[email protected]>
@peternied @scrawfor99 @cwperks Ready for review! |
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.
Thanks, lets reuse DeprecatedSettings and add more test cases, see comments inline.
src/main/java/org/opensearch/security/securityconf/impl/v6/ConfigV6.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/security/securityconf/impl/v6/ConfigV6.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/security/securityconf/impl/v6/ConfigV6.java
Outdated
Show resolved
Hide resolved
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.
Hi @prabhask5 thanks for making these changes. Great job keeping things up to date! Other than Peter's suggestions, things look good to me. Let me know when you address those and I can give a final pass through and approve (assuming nothing else comes up etc.)
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.
Changes look good to me. Have we analyzed the blast radius for removing these files? Will there be downstream plugins that will have broken tests?
@DarshitChanpura I haven't checked for any other repository tests being impacted by this change, though I can confirm that the only errors that were caused by removing this setting being a parsing error from Jackson which I resolved using the unknownPropertiesHandler. If this error would have occurred in downstream plugins it should not. I'm new to contributing, can you let me know of other plugins to check tests for? |
Signed-off-by: Prabhas Kurapati <[email protected]>
@peternied I think I've addressed all your requested changes:
This should be ready for review once I fix the test errors! |
Signed-off-by: Prabhas Kurapati <[email protected]>
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.
Hi @prabhask5, thanks for your work with this! Looks good to me :)
I'm not aware of any off the top of my mind. We can merge this and if there are any downstream failures we can analyze and revert of necessary. |
src/main/java/org/opensearch/security/setting/DeprecatedSettings.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Prabhas Kurapati <[email protected]>
876e294
Signed-off-by: Prabhas Kurapati <[email protected]>
…authorizer may be unnecessary after transport client removal (#3939) Signed-off-by: Prabhas Kurapati <[email protected]> (cherry picked from commit 881ed58) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…uth domain and authorizer may be unnecessary after transport client removal (#3966) Backport 881ed58 from #3939. Signed-off-by: Prabhas Kurapati <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…authorizer may be unnecessary after transport client removal (opensearch-project#3939) Signed-off-by: Prabhas Kurapati <[email protected]>
Description
Remove the transport_enabled setting in config.yml and its related code in DynamicConfigModelV6/7, ConfigV6/7, associated tests. Additionally add handlers in Config files to handle when transport_enabled is still used within the config.yml file while alerting the user with a message in startup that this setting can be safely removed from the config.
Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Enhancement
Why these changes are required?
transport_enabled
setting on an auth domain and authorizer may be unnecessary after transport client removal #3191 states that since the transport client has been removed, there is no need for the transport_enabled config and its related code to exist in the codebase, so this ticket removes that unnecessary code.What is the old behavior before changes and new behavior after changes?
Nothing.
Issues Resolved
#3191
Is this a backport? If so, please add backport PR # and/or commits #
No
Testing
No tests were made, all tests should run since the behavior should not change.
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.