Skip to content
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

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

michaeljmarshall
Copy link
Contributor

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

  • When introducing a new scaler, I agree with the scaling governance policy
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added
  • A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • A PR is opened to update the documentation on (repo) (if applicable)
  • Changelog has been updated and is aligned with our changelog requirements

Fixes #3844

Relates to kedacore/keda-docs#977

Copy link

@eolivelli eolivelli left a 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>
@michaeljmarshall michaeljmarshall marked this pull request as ready for review November 11, 2022 15:36
@michaeljmarshall michaeljmarshall requested a review from a team as a code owner November 11, 2022 15:36
@michaeljmarshall
Copy link
Contributor Author

@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>
@JorTurFer
Copy link
Member

JorTurFer commented Nov 12, 2022

/run-e2e pulsar*
Update: You can check the progress here

Copy link
Member

@JorTurFer JorTurFer left a 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?

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Michael Marshall <mmarshall@apache.org>
Signed-off-by: Michael Marshall <mmarshall@apache.org>
@michaeljmarshall
Copy link
Contributor Author

@JorTurFer - I updated the e2e tests.

@zroubalik
Copy link
Member

zroubalik commented Nov 15, 2022

/run-e2e pulsar*
Update: You can check the progress here

Copy link
Member

@zroubalik zroubalik left a 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!

Copy link
Member

@JorTurFer JorTurFer left a 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! ❤️

@zroubalik zroubalik merged commit cd38e83 into kedacore:main Nov 15, 2022
@JorTurFer
Copy link
Member

we have merged this feature without merging the docs PR kedacore/keda-docs#977 xD

@zroubalik
Copy link
Member

@JorTurFer 🤦 sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apache Pulsar: Support Token Authentication
4 participants