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

update Unthrotized error code to 401 #2076

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

Zhangxunmt
Copy link
Collaborator

Description

Based on the pen tests results. All the requests that fails the authentication in Memory/ConversationalSearch should return 4xx code. Currently the error code 500 internal service error is returned when such requests come.

This PR updates the error code for unauthorized requests. #1997

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

Signed-off-by: Xun Zhang <xunzh@amazon.com>
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a661176) 81.81% compared to head (06cfe28) 81.81%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2076   +/-   ##
=========================================
  Coverage     81.81%   81.81%           
  Complexity     5617     5617           
=========================================
  Files           543      543           
  Lines         22796    22796           
  Branches       2337     2337           
=========================================
  Hits          18651    18651           
  Misses         3209     3209           
  Partials        936      936           
Flag Coverage Δ
ml-commons 81.81% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env February 12, 2024 20:06 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env February 12, 2024 20:06 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt temporarily deployed to ml-commons-cicd-env February 12, 2024 20:06 — with GitHub Actions Inactive
@Zhangxunmt Zhangxunmt merged commit 456e92d into opensearch-project:main Feb 12, 2024
14 of 17 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 12, 2024
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit 456e92d)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 12, 2024
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit 456e92d)
Zhangxunmt added a commit that referenced this pull request Feb 12, 2024
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit 456e92d)

Co-authored-by: Xun Zhang <xunzh@amazon.com>
Zhangxunmt added a commit that referenced this pull request Feb 12, 2024
Signed-off-by: Xun Zhang <xunzh@amazon.com>
(cherry picked from commit 456e92d)

Co-authored-by: Xun Zhang <xunzh@amazon.com>
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Mar 19, 2024
Signed-off-by: Xun Zhang <xunzh@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants