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

Return correct authz and auth errors from proxy to client #9055

Merged
merged 1 commit into from
Dec 26, 2020

Conversation

jerrypeng
Copy link
Contributor

Motivation

Currently, the proxy will bubble up all errors to the client as a "ServiceNotReady" error which gets translated to a "LookupError" on the client side. This is not correct and precise error handling especially when the errors are auth and authz related. Potential auth and authz errors will get hidden behind "LookupError"s returned to the client and the client will retry connecting since "LookupError"s are retryable even though there is no point in retrying to connect on auth and authz errors.

Modifications

Handle the errors more accurately in the proxy

@jerrypeng jerrypeng added type/bug The PR fixed a bug or issue reported a bug area/proxy labels Dec 24, 2020
@jerrypeng jerrypeng added this to the 2.8.0 milestone Dec 24, 2020
@jerrypeng jerrypeng self-assigned this Dec 24, 2020
Copy link
Contributor

@rdhabalia rdhabalia left a comment

Choose a reason for hiding this comment

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

👍

@jerrypeng jerrypeng merged commit 8574e58 into apache:master Dec 26, 2020
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Jan 7, 2021
codelipenghui pushed a commit that referenced this pull request Jan 7, 2021
Co-authored-by: Jerry Peng <jerryp@splunk.com>
(cherry picked from commit 8574e58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/proxy cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.1 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants