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

Fix issue when scroll is created with LDAP user #3805

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Dec 6, 2023

Description

Fixes an issue when a scroll context is created by an LDAP User. There is a subclass in the system for LDAP Users that in some circumstances can lead to issues with the scroll query. The issue is always reproducible when using rest impersonation to impersonate the LDAP User when authenticating as an internal user.

See steps to reproduce the issue here: #3582 (comment)

This PR includes a test that will fail if the fix within User.java is reverted.

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

Bug fix

Issues Resolved

#3582

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.

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Merging #3805 (16e68ac) into main (6b8a3e4) will increase coverage by 0.06%.
Report is 10 commits behind head on main.
The diff coverage is 87.09%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3805      +/-   ##
==========================================
+ Coverage   65.26%   65.32%   +0.06%     
==========================================
  Files         297      298       +1     
  Lines       21132    21159      +27     
  Branches     3452     3455       +3     
==========================================
+ Hits        13791    13822      +31     
+ Misses       5644     5638       -6     
- Partials     1697     1699       +2     
Files Coverage Δ
...nsearch/security/compliance/FieldReadCallback.java 55.55% <ø> (ø)
...urity/ssl/transport/SecuritySSLRequestHandler.java 70.32% <100.00%> (+8.10%) ⬆️
...c/main/java/org/opensearch/security/user/User.java 72.61% <0.00%> (ø)
...org/opensearch/security/support/JsonFlattener.java 88.46% <88.46%> (ø)

... and 4 files with indirect coverage changes

willyborankin
willyborankin previously approved these changes Dec 7, 2023
Signed-off-by: Craig Perkins <[email protected]>
@peternied peternied merged commit 1846fd1 into opensearch-project:main Dec 13, 2023
79 checks passed
@cwperks cwperks added the backport 2.x backport to 2.x branch label Dec 13, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 13, 2023
Signed-off-by: Craig Perkins <[email protected]>
(cherry picked from commit 1846fd1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
cwperks added a commit that referenced this pull request Dec 13, 2023
Backport 1846fd1 from #3805.

---------

Signed-off-by: Craig Perkins <[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>
Co-authored-by: Craig Perkins <[email protected]>
prabhask5 pushed a commit to prabhask5/opensearch-security that referenced this pull request Jan 11, 2024
dlin2028 pushed a commit to dlin2028/security that referenced this pull request May 1, 2024
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.

3 participants