-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
jwt_authn: make from_cookies JWT removal behaviour similar to from_params #17985
jwt_authn: make from_cookies JWT removal behaviour similar to from_params #17985
Conversation
…rams Removal of params or cookies after authentication is not implemented as of today. authenticator.cc calls the removeJwt(...) if forward is set to false (default) and this leads to an assertion failures caused by NOT_IMPLEMENTED_GCOVR_EXCL_LINE. Changed removeJwt(...) for JwtCookieLocation to be empty, added test coverage and updated proto doc to call-out this caveat. Signed-off-by: Shubham Patil <theshubhamp@gmail.com>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
/lgtm api |
cc @lizan, PTAL whenever you can! |
…drop-cookie-remove-panic Signed-off-by: Shubham Patil <theshubhamp@gmail.com>
Ping! Can someone review this PR ? |
First commit is good. The second one after the merge seems getting a lot of unrelated changes. Please fix it. |
Thanks for taking a look!
The second commit shows unrelated changes because it is a merge commit. I had to merge Only the 3 files changed in the PR should end up on main as a single commit after merge. |
LGTM |
jwt_authn: make from_cookies JWT removal behaviour similar to from_params
Removal of params or cookies after authentication is not implemented as of today.
authenticator.cc calls the removeJwt(...) if forward is set to false (default)
and this leads to an assertion failures caused by NOT_IMPLEMENTED_GCOVR_EXCL_LINE.
Changed removeJwt(...) for JwtCookieLocation to be empty, added test coverage
and updated proto doc to call-out this caveat.
Risk Level: Low
Testing: Tests
Docs Changes: Added caveat to proto docs.
Release Notes: None.
Platform Specific Features: None
Follow up for #17424
Signed-off-by: Shubham Patil theshubhamp@gmail.com