forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jwt_authn: update to jwt_verify_lib with 1 minute clock skew (envoypr…
…oxy#13872) When verifying Jwt clock constraint, it is recommend to use some clock skew. grpc is using 1 minute clock [skew](https://github.com/grpc/grpc/blob/4645da201ae2c7d0b15fe56d86b41354fa4af0ca/src/core/lib/security/credentials/jwt/jwt_verifier.cc#L388-L389). [jwt_verify_lib](google/jwt_verify_lib#57) has been updated to add 1 minute clock skew. In the old code, time constraint verification is done in jwt_authn filter, and jwt_verify_lib::verifyJwt() is doing time constraint verification again. Change jwt_verify_lib to split the time constraint verification to Jwt class so it can be called separately. And call verify() without the time checking. Risk Level: None Testing: unit-test is done in jwt_verify_lib repo Docs Changes: None Release Notes: Added Signed-off-by: Wayne Zhang <[email protected]> Signed-off-by: Qin Qin <[email protected]>
- Loading branch information
Showing
8 changed files
with
55 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
api/envoy/extensions/filters/http/jwt_authn/v4alpha/config.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
generated_api_shadow/envoy/extensions/filters/http/jwt_authn/v3/config.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
generated_api_shadow/envoy/extensions/filters/http/jwt_authn/v4alpha/config.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters