Skip to content
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

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Jun 3, 2024

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

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

@derek-ho derek-ho added the backport 2.x backport to 2.x branch label Jun 3, 2024
Copy link
Member

@DarshitChanpura DarshitChanpura left a 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.

Signed-off-by: Derek Ho <[email protected]>
@derek-ho derek-ho marked this pull request as ready for review June 3, 2024 16:19
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.41%. Comparing base (f002182) to head (a680e92).

Additional details and impacted files

Impacted file tree graph

@@            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              
Files Coverage Δ
...ava/org/opensearch/security/auth/UserInjector.java 89.53% <100.00%> (+0.24%) ⬆️

... and 4 files with indirect coverage changes

@cwperks
Copy link
Member

cwperks commented Jun 6, 2024

DCO check is stuck. I am bypassing and manually verified that all commits are signed.

@cwperks cwperks merged commit fd6fb3f into opensearch-project:main Jun 6, 2024
81 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 6, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] User Injection is failing for IPV6 addresses
4 participants