You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Zhuo Li <zu...@linkedin.com.INVALID> on 2015/07/18 01:29:41 UTC
Question about Secure Port in 3.5.1
Hi,
I am reading source code of Zookeeper 3.5.1( inside runFromConfig method of
ZooKeeperServerMain.java) and realize that we try to use general
port/address first rather than secure port/address even both of them are
set, and if zkServer is started by the general one, we will skip using the
secure one.
My question is why don't we try to use secure port/address first, then try
to use the general one if it fails. I think this will be more secure, right?
And please correct me if I am wrong on this.
Best,
Zhuo
Re: Question about Secure Port in 3.5.1
Posted by Zhuo Li <zu...@linkedin.com.INVALID>.
Hi Ian,
Oh, I see, which means, if both secure and not secure port/address are
configured, we still create factory and config it for both of them, but we
will skip the zkServer creation for the second one.
Thank you so much for the response.
Best,
Zhuo
On Fri, Jul 17, 2015 at 4:34 PM, Ian Dimayuga <ia...@microsoft.com>
wrote:
> Hi Zhuo,
>
> In mixed-mode SSL, the Zookeeper server is started once, but handles
> requests through both endpoints. The logic just prevents the second
> ServerCnxnFactory from trying to start the server if it's already been
> started. It doesn't skip the secure endpoint--it will still be opened as
> long as a secure port is specified.
>
> Ian
>
> -----Original Message-----
> From: Zhuo Li [mailto:zuli@linkedin.com.INVALID]
> Sent: Friday, July 17, 2015 4:30 PM
> To: user@zookeeper.apache.org
> Subject: Question about Secure Port in 3.5.1
>
> Hi,
>
> I am reading source code of Zookeeper 3.5.1( inside runFromConfig method of
> ZooKeeperServerMain.java) and realize that we try to use general
> port/address first rather than secure port/address even both of them are
> set, and if zkServer is started by the general one, we will skip using the
> secure one.
>
> My question is why don't we try to use secure port/address first, then try
> to use the general one if it fails. I think this will be more secure, right?
>
> And please correct me if I am wrong on this.
>
> Best,
> Zhuo
>
RE: Question about Secure Port in 3.5.1
Posted by Ian Dimayuga <ia...@microsoft.com>.
Hi Zhuo,
In mixed-mode SSL, the Zookeeper server is started once, but handles requests through both endpoints. The logic just prevents the second ServerCnxnFactory from trying to start the server if it's already been started. It doesn't skip the secure endpoint--it will still be opened as long as a secure port is specified.
Ian
-----Original Message-----
From: Zhuo Li [mailto:zuli@linkedin.com.INVALID]
Sent: Friday, July 17, 2015 4:30 PM
To: user@zookeeper.apache.org
Subject: Question about Secure Port in 3.5.1
Hi,
I am reading source code of Zookeeper 3.5.1( inside runFromConfig method of
ZooKeeperServerMain.java) and realize that we try to use general port/address first rather than secure port/address even both of them are set, and if zkServer is started by the general one, we will skip using the secure one.
My question is why don't we try to use secure port/address first, then try to use the general one if it fails. I think this will be more secure, right?
And please correct me if I am wrong on this.
Best,
Zhuo