-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Functions-worker] Fix broker and functions-worker authentication compatibility #9190
[Functions-worker] Fix broker and functions-worker authentication compatibility #9190
Conversation
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
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.
Could we add a unit test for this? You can use the PulsarService.initializeWorkerConfigFromBrokerConfig
to load the worker config to check the configuration is set right or not to avoid someone change the isBrokerClientAuthenticationEnabled
.
@zymap I made a tests for this. |
@nodece Thank you for your fix! |
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.
Thanks for the test!
@nodece Can you fix the license header issue? |
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
4e72817
to
b1c1223
Compare
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
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
/pulsarbot run-failure-checks |
…patibility (apache#9190) * Fix broker and functions-worker authentication compatibility Signed-off-by: Zixuan Liu <nodeces@gmail.com> * Add tests to check authentication compatibility Signed-off-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 56ae93e)
…patibility (apache#9190) * Fix broker and functions-worker authentication compatibility Signed-off-by: Zixuan Liu <nodeces@gmail.com> * Add tests to check authentication compatibility Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Signed-off-by: Zixuan Liu nodeces@gmail.com
Motivation
The
brokerClientAuthenticationEnabled
is boxed type inWebConfig.java
for solve broker and functions-worker authentication compatibility, sobrokerClientAuthenticationEnabled
should not be inconf/functions-worker.yml
.Modifications
brokerClientAuthenticationEnabled
inconf/functions-worker.yml