Skip to content

Conversation

@jai1
Copy link
Contributor

@jai1 jai1 commented Nov 15, 2018

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.

@jai1 jai1 added this to the 2.3.0 milestone Nov 15, 2018
@jai1 jai1 self-assigned this Nov 15, 2018
@jai1 jai1 force-pushed the servicePortDisables branch 2 times, most recently from a92ed17 to 3311d9a Compare November 15, 2018 22:12
@jai1
Copy link
Contributor Author

jai1 commented Nov 16, 2018

rerun java8 tests

@jai1
Copy link
Contributor Author

jai1 commented Nov 16, 2018

rerun C++ tests

@jai1
Copy link
Contributor Author

jai1 commented Nov 16, 2018

rerun cpp tests

@jai1
Copy link
Contributor Author

jai1 commented Nov 16, 2018

rerun integration tests

@jai1
Copy link
Contributor Author

jai1 commented Nov 16, 2018

rerun java8 tests

@sijie
Copy link
Member

sijie commented Nov 16, 2018

@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
Copy link
Contributor

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;
Copy link
Contributor

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.

@jai1 jai1 force-pushed the servicePortDisables branch from 3311d9a to d42a174 Compare December 12, 2018 10:57
@jai1
Copy link
Contributor Author

jai1 commented Dec 15, 2018

rerun java8 tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants