-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Apache Pulsar: add support for bearer token and basic auth #3845
Apache Pulsar: add support for bearer token and basic auth #3845
Conversation
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.
LGTM
what is missing to mark this as "ready for review" ?
Signed-off-by: Michael Marshall <mmarshall@apache.org>
301e744
to
6a040ec
Compare
@eolivelli - I knew this PR had conflicts with #3834, so I wanted to resolve those before marking this as ready. |
Signed-off-by: Michael Marshall <mmarshall@apache.org>
/run-e2e pulsar* |
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.
Looking good, thanks for the improvement.
Is this something we can cover with e2e tests?
Signed-off-by: Michael Marshall <mmarshall@apache.org>
Signed-off-by: Michael Marshall <mmarshall@apache.org>
@JorTurFer - I updated the e2e tests. |
/run-e2e pulsar* |
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.
LGTM, thanks for the contribution!
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.
LGTM!
Thanks for your contributions! ❤️
we have merged this feature without merging the docs PR kedacore/keda-docs#977 xD |
@JorTurFer 🤦 sorry |
Signed-off-by: Michael Marshall mmarshall@apache.org
Modifications
This PR adds support for both bearer tokens and basic authentication (and authorization) with Apache Pulsar. In order to reduce duplicate code, there are some backwards compatible changes made to TLS authentication.
Note that because Apache Pulsar redirects HTTP calls using the 307 response code, it is necessary to re-add the authorization header. This PR includes that change. It is also important to add the
X-Pulsar-Auth-Method-Name
header to make authentication calls efficient on the broker.Checklist
Fixes #3844
Relates to kedacore/keda-docs#977