Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Fix pulsar auth enable but kop not work - #60

Merged
sijie merged 2 commits into
streamnative:masterfrom
jiazhai:fix_pulsar_auth
Jan 2, 2020
Merged

Fix pulsar auth enable but kop not work#60
sijie merged 2 commits into
streamnative:masterfrom
jiazhai:fix_pulsar_auth

Conversation

@jiazhai

@jiazhai jiazhai commented Jan 1, 2020

Copy link
Copy Markdown
Contributor

In RequestHandler, we use PersistentTopicsBase.getPartitionedTopicMetadata to get topic metadata. This need to passed in authRole. While with pulsar auth disable, or KoP SASL auth enable, both will work OK. But with pulsar auth enabled, and KoP SASL auth disable, it may meet problem.
This change changed to use admin.topics().getPartitionedTopicMetadataAsync to get metadata. By this way, the pulsar auth is still enable in the internal pulsar-admin/pulsar-client, and will not affect KoP.

@jiazhai
jiazhai requested review from PierreZ and sijie January 1, 2020 09:03
@jiazhai jiazhai self-assigned this Jan 1, 2020
@sijie

sijie commented Jan 2, 2020

Copy link
Copy Markdown
Member

@jiazhai can you please check CI result?

@jiazhai

jiazhai commented Jan 2, 2020

Copy link
Copy Markdown
Contributor Author

@sijie Thanks. checked.

@PierreZ PierreZ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sijie
sijie merged commit b115d3b into streamnative:master Jan 2, 2020
@sijie
sijie deleted the fix_pulsar_auth branch January 2, 2020 10:09
@jiazhai jiazhai modified the milestones: 0.0.1, 0.1.0 Feb 17, 2020
michaeljmarshall pushed a commit to michaeljmarshall/kop that referenced this pull request Apr 24, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 14, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 14, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 15, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 16, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 21, 2023
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this pull request Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants