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(plugins): consistent error responses upon Admin API auth failures #12429

Merged

Conversation

sumimakito
Copy link
Member

@sumimakito sumimakito commented Jan 26, 2024

Summary

Unifying error responses when admin authentication via Admin/Portal API is failed.

Cherry-picks: https://github.com/Kong/kong-ee/pull/6552

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • n/a There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix SEC-912 / KAG-1672

@sumimakito
Copy link
Member Author

Cherry-picking this as we forgot to include these changes in CE.

@sumimakito sumimakito added this to the 3.6.0 milestone Jan 26, 2024
Copy link
Contributor

@nekolab nekolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AndyZhang0707 AndyZhang0707 merged commit 60ea714 into master Jan 30, 2024
25 checks passed
@AndyZhang0707 AndyZhang0707 deleted the fix/SEC-912-KAG-1672-unify-admin-auth-error-response branch January 30, 2024 07:16
@team-gateway-bot
Copy link
Collaborator

Backport failed for release/3.5.x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release/3.5.x
git worktree add -d .worktree/backport-12429-to-release/3.5.x origin/release/3.5.x
cd .worktree/backport-12429-to-release/3.5.x
git switch --create backport-12429-to-release/3.5.x
git cherry-pick -x 60ea714e124ec81bef97031b9d334febcfa9303b

github-actions bot pushed a commit that referenced this pull request Jan 30, 2024
…#12429)

* fix(plugins): consistent error responses upon Admin API auth failures

* fix(basic-auth): update error message

(cherry picked from commit 60ea714)
@team-gateway-bot
Copy link
Collaborator

sumimakito added a commit that referenced this pull request Jan 30, 2024
…#12429)

* fix(plugins): consistent error responses upon Admin API auth failures

* fix(basic-auth): update error message

(cherry picked from commit 60ea714)
locao pushed a commit that referenced this pull request Mar 19, 2024
…#12429)

* fix(plugins): consistent error responses upon Admin API auth failures

* fix(basic-auth): update error message

(cherry picked from commit 60ea714)
locao pushed a commit that referenced this pull request Mar 19, 2024
…#12429)

* fix(plugins): consistent error responses upon Admin API auth failures

* fix(basic-auth): update error message

(cherry picked from commit 60ea714)
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.

6 participants