forked from apache/pulsar
-
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.
[pulsar-broker] Add support for other algorithms in token auth (apach…
…e#4528) Before this patch, all keys are read as RSA, which meant that only RSA compatible JWT signing algorithms could be used, specifically, this limited the use of ECDSA family of JWT keys. This changes this by changing the signature we use to parse keys to also take a SignatureAlgorithm and also adds a new config option `tokenPublicAlg` which can be used to signify what algorithm the broker/proxy should use when reading public keys. However, these all default to RS256, which, should indicate to decode as RSA (even if another RS/PS algoritm is used). This also adds some new options to the Token CLI tool for those commands that weren't respecting the algorithm, but these are defaulted to RS256 as well.
- Loading branch information
Showing
6 changed files
with
110 additions
and
15 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
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
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
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