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

[branch-2.7][fix][broker] Fix passing incorrect authentication data #16278

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

nodece
Copy link
Member

@nodece nodece commented Jun 29, 2022

Motivation

Cherry-pick #16201, ignore the test file, which doesn't applicable to this version.

Documentation

  • doc-not-needed

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@Anonymitaet Anonymitaet added the doc-not-needed Your PR changes do not impact docs label Jun 30, 2022
@nodece
Copy link
Member Author

nodece commented Jun 30, 2022

Ci failure has nothing to do with current PR, which is related to hostname validation.

@nodece nodece mentioned this pull request Jul 4, 2022
5 tasks
@Technoboy- Technoboy- closed this Jul 5, 2022
@Technoboy- Technoboy- reopened this Jul 5, 2022
### Motivation

apache#16065 fixes the race condition issue, but introduces a new issue. This issue is triggered when the Proxy and Broker work together, when we use the proxy to request the broker to do lookup/subscribe/produce operation, the broker always uses the original authentication data for authorization, not proxy authentication data, which causes this issue.

### Modification

- Fix passing authentication data, differentiate between original auth data and connected auth data by avoid to use the  `getAuthenticationData()`, this method name is easy to cause confusion and can not correctly get the authentication data

(cherry picked from commit 936bbbc)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@nodece nodece force-pushed the 2.7-broker-auth-data branch from 6d51424 to 0dab835 Compare July 5, 2022 02:32
@Technoboy- Technoboy- merged commit 5952778 into apache:branch-2.7 Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants