-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support hostname verification on proxy to broker connection #1214
Conversation
pulsar-proxy/pom.xml
Outdated
<dependency> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
<version>1.1.1</version> |
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.
We shouldn't need version here.
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.
that's true, it's already part of pulsar-client-original
so, need to include here.
conf/proxy.conf
Outdated
@@ -74,3 +74,6 @@ tlsCertificateFilePath= | |||
|
|||
# Path for the TLS private key file | |||
tlsKeyFilePath= | |||
|
|||
# Validates hostname when proxy creates tls connection with broker | |||
isTlsHostnameVerificationEnable=false |
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.
-> isTlsHostnameVerificationEnabled
?
or
enableTlsHostnameVerification
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.
as all the tls related config has tls prefix so, I have renamed it to tlsHostnameVerificationEnabled
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.
👍
@rdhabalia Can you also create an issue for adding hostname verification in C++? |
sure, created : #1215 |
Motivation
In #1208, we have added support for hostname verification at client when client creates tls connection with broker and proxy.
However, if proxy is also not in local n/w then it would also require to support hostname verification when it connects with broker.
Modifications
add option at proxy which forces proxy to do hostname verification when it connects to broker.
Result
proxy can support hostname verification when it connects to broker.
After your change, what will change.