-
Notifications
You must be signed in to change notification settings - Fork 124
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
Bugfix status cache #2356
Bugfix status cache #2356
Conversation
fb559fc
to
20e4784
Compare
@@ -3,6 +3,16 @@ module AuthnJwt | |||
|
|||
ValidateStatus = CommandClass.new( | |||
dependencies: { | |||
fetch_signing_key: ::Util::ConcurrencyLimitedCache.new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it worth to align the parameter name in different classes
conjur/app/domain/authentication/authn_jwt/validate_and_decode/validate_and_decode_token.rb
Line 10 in c4eedc7
fetch_signing_key_from_cache: ::Util::ConcurrencyLimitedCache.new( |
CC: @tzheleznyak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nessiLahav rebase the bugfix branch to you branch
def fetch_jwt_claims_to_validate | ||
@fetch_jwt_claims_to_validate ||= ::Authentication::AuthnJwt::ValidateAndDecode::FetchJwtClaimsToValidate.new | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is it related?
7cff142
to
7f16dc1
Compare
7f16dc1
to
b1bbbd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let it be
* Fix cache of signing key * Adjust ValidateAndDecodeToken UTs * Bugfix status cache (#2356) * ONYX-11330: Fix cache of signing key * Fix cache bug in authn-jwt status flow * Fixes according to PR comments Co-authored-by: Tamir Zheleznyak <[email protected]> * Fix signing_key UTs * Fix by PR comments Co-authored-by: Sasha Chernomordik <[email protected]> Co-authored-by: Nessi Lahav <[email protected]>
What does this PR do?
Fix cache bug in authn-jwt status flow
What ticket does this PR close?
Resolves #[relevant GitHub issues, eg 76]
Checklists
Change log
Test coverage
Documentation
README
s) were updated in this PR, and/or there is a follow-on issue to update docs, orAPI Changes