Technoboy- opened a new pull request, #23045: URL: https://github.com/apache/pulsar/pull/23045
### Motivation When the client uses the proxy to connect to the broker, if enabled the authorization and set namespace subscription auth mode with `Prefix`, the client will always face the authorization issue : ``` Failed to create consumer - The subscription name needs to be prefixed by the authentication role, like abc-xxxx for topic: persistent://public/default/test ``` The related codes to the root cause: https://github.com/apache/pulsar/blob/dd1b57944b117d16ebd371996b44c02af2ce325c/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L468-L494 ### Verifying this change Add a related test to cover this change. ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
