Skip to content

Fix jwks_fetcher crash with missing jwks cluster for remote_jwks#8370

Merged
lizan merged 1 commit intoenvoyproxy:masterfrom
qiwzhang:jwt_crash
Sep 26, 2019
Merged

Fix jwks_fetcher crash with missing jwks cluster for remote_jwks#8370
lizan merged 1 commit intoenvoyproxy:masterfrom
qiwzhang:jwt_crash

Conversation

@qiwzhang
Copy link
Copy Markdown
Contributor

Signed-off-by: Wayne Zhang qiwzhang@google.com

Description:

If the cluster for remote_jwks is not configured. jwks_fetcher will throw exception, since there is not exception catch in the data flow, it will crash the envoy.
Fix: check if cluster is configured, if not, failed the jwks fetch, and fail the request. not to crash envoy.

Risk Level: Low
Testing: added a new integration test
Docs Changes: None
Release Notes: None
[Optional Fixes #Issue] #8363
[Optional Deprecated:]

Signed-off-by: Wayne Zhang <qiwzhang@google.com>
@qiwzhang qiwzhang requested a review from lizan as a code owner September 25, 2019 19:27
@qiwzhang qiwzhang changed the title Fix jwks_fetcher crash with missing cluster Fix jwks_fetcher crash with missing jwks cluster for remote_jwks Sep 25, 2019
Copy link
Copy Markdown
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

LGTM

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 rebuilding ci/circleci: release (failed build)

🐱

Caused by: a #8370 (review) was submitted by @lizan.

see: more, trace.

@lizan lizan merged commit 7f8d944 into envoyproxy:master Sep 26, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Description:

If the cluster for remote_jwks is not configured. jwks_fetcher will throw exception, since there is not exception catch in the data flow, it will crash the envoy.
Fix: check if cluster is configured, if not, failed the jwks fetch, and fail the request. not to crash envoy.

Risk Level: Low
Testing: added a new integration test
Docs Changes: None
Release Notes: None
Fixes envoyproxy#8363 

Signed-off-by: Wayne Zhang <qiwzhang@google.com>
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.

2 participants