-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add symmetric key monitoring #324
Conversation
Adds monitoring around JWT decoding and symmetric keys, to help with the eventual deprecation and removal of the symmetric keys. See DEPR: Symmetric JWTs: openedx/public-engineering#83
# .. custom_attribute_name: jwt_auth_decode_symmetric_token | ||
# .. custom_attribute_description: True if symmetric keys will also be used for checking | ||
# the JWT signature, and False if only asymmetric keys will be used. | ||
set_custom_attribute('jwt_auth_decode_symmetric_token', decode_symmetric_token) |
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.
nit: This reads a little misleadingly to me; I would expect it to mean that the token was decoded using a symmetric key, not that the symmetric key is allowed to be used. (Non-blocking.)
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.
Updated to jwt_auth_check_symmetric_key
.
# Note: A separate custom attribute is used in case there are different JWTs decoded | ||
# in the same request. |
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'm having trouble understanding this comment. What other attribute is this being contrasted to?
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 tried a longer version. You can let me know if it is more clear.
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.
A couple nits, but everything else looks fine, so approving in advance to unblock.
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.
Looks great! (Remember to update changelog date.)
Description:
Adds monitoring around JWT decoding and symmetric keys, to help with the eventual deprecation and removal of the symmetric keys.
Issue:
See DEPR: Symmetric JWTs:
openedx/public-engineering#83
Merge checklist:
Post merge:
finished.