-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Start Pulsar in TLS Only mode and deprecate tlsEnabled flag. #2988
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
Conversation
a92ed17 to
3311d9a
Compare
|
rerun java8 tests |
|
rerun C++ tests |
|
rerun cpp tests |
|
rerun integration tests |
|
rerun java8 tests |
|
@jai1 I think you might need to look into the cpp tests and integration tests. I guess your changes change some tls settings. |
|
|
||
| ##### --- TLS --- ##### | ||
| # Enable TLS | ||
| # Deprecated - Use servicePortTls and webServicePortTls instead |
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.
Should we just remove the deprecated keys from the example config file?
| @Deprecated | ||
| public boolean isTlsEnabled() { | ||
| return tlsEnabled; | ||
| return tlsEnabled || webServicePortTls != null || servicePortTls != null; |
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.
If tlsEnabled=true but the port is null, we'll have a problem anyway.
3311d9a to
d42a174
Compare
|
rerun java8 tests |
Motivation
Start Pulsar services (broker, proxy, websocket, discovery) in TLS only mode, so that they only listen on TLS ports.
Once TlsPort is set tlsEnabled flag becomes redundant information - hence getting rid of the flag in relevant components.
Modifications
a. Changed the Ports to Option in the configuration file.
b. In Websocket Service there was a bug where we used 'tlsEnabled' flag to start listening on a TLS port and to talk to broker in on serviceUrlTls - separated the flag into two (tlsEnabled and brokerClientTlsEnabled) and deprecated tlsEnabled.
c. Fixed a lot of tests which relied on tlsEnabled flag.
Result
Brokers can now listen to TLS only port.