-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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(jwt-plugin): Add support for EdDSA #12726
Conversation
@@ -55,6 +56,7 @@ return { | |||
"^PS256$", | |||
"^PS384$", | |||
"^PS512$", | |||
"^EdDSA$", |
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.
This is not directly related to the EdDSA support, however I wonder why the pkey checks are not applied for ES256, ES384 and ES512.
Wouldn't it make sense to apply this check for all algorithms and exclude the symmetric ones?
if_match = {
not_match = "^HS",
},
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.
right, this list has grown over time and indeed it would make sense to apply pkey checks to all asymmetrical keys. I'll add this to my pile. Thanks for brining that up @27ascii
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.
Thank you for the contribution! The change looks good to me, but I'd like another approval from @jschmid1
Thank you for your contribution @27ascii |
Successfully created cherry-pick PR for |
Summary
This change adds support for the EdDSA JWT verification
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Martin Kölbel martin.koelbel@mercedes-benz.com on behalf of Mercedes-Benz Tech Innovation GmbH, Provider Information