Skip to content

Update dependency and docs: jwt_verify_lib (add HS256 support)#8385

Merged
lizan merged 4 commits intoenvoyproxy:masterfrom
ryanchapman:update-jwt_verify_lib-add_hs256
Sep 26, 2019
Merged

Update dependency and docs: jwt_verify_lib (add HS256 support)#8385
lizan merged 4 commits intoenvoyproxy:masterfrom
ryanchapman:update-jwt_verify_lib-add_hs256

Conversation

@ryanchapman
Copy link
Copy Markdown
Contributor

@ryanchapman ryanchapman commented Sep 26, 2019

Signed-off-by: Ryan A. Chapman ryan@rchapman.org

Description: update jwt_verify_lib to support HS256 tokens, also update documentation to show that Envoy now supports HS256 as well as RS384 and RS512 (see #8212)
Risk Level: low
Testing: upstream unit tests
Docs Changes: none
Release Notes: none (should there be some?)

Signed-off-by: Ryan A. Chapman <ryan@rchapman.org>
@lizan
Copy link
Copy Markdown
Member

lizan commented Sep 26, 2019

@ryanchapman
Copy link
Copy Markdown
Contributor Author

ryanchapman commented Sep 26, 2019

@lizan I did that as well in this PR.

Only ES256, HS256, RS256, RS384, and RS512 are supported for the JWT alg.

If you would like to see more than that, please let me know.

@lizan
Copy link
Copy Markdown
Member

lizan commented Sep 26, 2019

Ah sorry I missed that, thought you didn't change doc from PR description.

JWKS is needed to verify JWT signatures. They can be specified in the filter config or can be fetched remotely from a JWKS server.

.. attention::
Only ES256 and RS256 are supported for the JWT alg.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: drop "Only", drop "," before "and".

Signed-off-by: Ryan A. Chapman <ryan@rchapman.org>
@ryanchapman ryanchapman changed the title Update dependency: jwt_verify_lib (add HS256 support) Update dependency and docs: jwt_verify_lib (add HS256 support) Sep 26, 2019
@ryanchapman
Copy link
Copy Markdown
Contributor Author

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 8385 in repo envoyproxy/envoy

Signed-off-by: Ryan A. Chapman <ryan@rchapman.org>
lizan
lizan previously approved these changes Sep 26, 2019
urls = ["https://github.com/google/jwt_verify_lib/archive/0f14d43f20381cfae0469cb2309b2e220c0f0ea3.tar.gz"],
sha256 = "38a93926f362a330a2a4489ed799c260df0bc305417e2bb44d6745671d9641d7",
strip_prefix = "jwt_verify_lib-7e3191b0dcb72835aa63e308a53b541e7fda5458",
# 2019-09-23
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

trailing space will fail format check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed that. Looks like checks are passing again :)

Signed-off-by: Ryan A. Chapman <ryan@rchapman.org>
@ryanchapman ryanchapman requested a review from lizan September 26, 2019 17:09
@lizan lizan merged commit 85a44d9 into envoyproxy:master Sep 26, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
…proxy#8385)

Description: update jwt_verify_lib to support HS256 tokens, also update documentation to show that Envoy now supports HS256 as well as RS384 and RS512.

Risk Level: low
Testing: upstream unit tests
Docs Changes: added
Release Notes: none

Signed-off-by: Ryan A. Chapman <ryan@rchapman.org>
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