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

[Backport 2.x] [Cleanup] Remove duplication in Netty4HttpRequestHeaderVerifier #3564

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 900d9d5 from #3506.

Removes some duplication in the Netty4HttpRequestHeaderVerifier
around the `/_plugins/_security/api/authtoken` endpoint and also
abstracts the logic for where authentication is skipped into helper
methods.

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
(cherry picked from commit 900d9d5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #3564 (071d920) into 2.x (2e3f83f) will decrease coverage by 0.02%.
The diff coverage is 60.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #3564      +/-   ##
============================================
- Coverage     64.74%   64.72%   -0.02%     
+ Complexity     3526     3525       -1     
============================================
  Files           274      274              
  Lines         20037    20035       -2     
  Branches       3338     3336       -2     
============================================
- Hits          12972    12967       -5     
- Misses         5399     5404       +5     
+ Partials       1666     1664       -2     
Files Coverage Δ
...rg/opensearch/security/filter/SecurityRequest.java 100.00% <ø> (ø)
...opensearch/security/filter/SecurityRestFilter.java 69.23% <100.00%> (+0.29%) ⬆️
.../opensearch/security/filter/SecurityRestUtils.java 90.90% <100.00%> (+10.90%) ⬆️
...sl/http/netty/Netty4HttpRequestHeaderVerifier.java 85.36% <100.00%> (+4.97%) ⬆️
...rity/filter/SecurityRequestChannelUnsupported.java 0.00% <0.00%> (ø)
...zon/dlic/auth/http/saml/HTTPSamlAuthenticator.java 67.36% <0.00%> (-1.09%) ⬇️

... and 2 files with indirect coverage changes

@cwperks cwperks merged commit af58ade into 2.x Oct 18, 2023
@cwperks cwperks deleted the backport/backport-3506-to-2.x branch October 18, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant