-
Notifications
You must be signed in to change notification settings - Fork 275
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
Add support for ipv6 ip address in user injection #4399
Conversation
Signed-off-by: Derek Ho <[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.
The change looks good. Is there an issue associate with this? If not would you mind filing one.
src/test/java/org/opensearch/security/auth/UserInjectorTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Derek Ho <[email protected]>
src/test/java/org/opensearch/security/auth/UserInjectorTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4399 +/- ##
==========================================
+ Coverage 65.39% 65.41% +0.01%
==========================================
Files 310 310
Lines 21993 21995 +2
Branches 3554 3554
==========================================
+ Hits 14383 14388 +5
+ Misses 5838 5835 -3
Partials 1772 1772
|
DCO check is stuck. I am bypassing and manually verified that all commits are signed. |
Signed-off-by: Derek Ho <[email protected]> (cherry picked from commit fd6fb3f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Enhances the parsing logic of user injection to support ipv6 addresses.
Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Bug fix
Why these changes are required?
Issue: [BUG] User Injection is failing for IPV6 addresses #4177
What is the old behavior before changes and new behavior after changes?
Ipv6 IP addresses would throw a parsing error, now it doesn't
Issues Resolved
Fix: #4177
Is this a backport? If so, please add backport PR # and/or commits #
No
Testing
Added unit test
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.