You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Ben Gould <be...@inovexcorp.com> on 2015/03/26 22:52:02 UTC
SSL Context
Hi all,
I'm running a topology that has bolts and spouts that need to make ssl
connections to external resources. I'm trying to set the
-Djavax.net.ssl.* properties using the storm.yaml, but I'm not sure how
to get it down to the necessary component. I am guessing I have to
change my "topology.worker.childopts" option on each storm node?
Before I go and mess with my storm.yaml files, I wanted to reach out and
see how people were doing it.
Thanks,
-Ben
Re: SSL Context
Posted by Ben Gould <be...@inovexcorp.com>.
Alright, thanks! I appreciate the feedback. I'll take a look at
shipping the certs in a mapping and see how that performs as well.
On 03/30/2015 03:35 PM, Derek Dagit wrote:
> Ah, I see.
>
>
> SSL client-side authentication does not seem well-suited to platforms such as storm where the host names are ephemeral.
>
>
> You could deploy the certificates to the hosts and set the worker.childopts on each one as you suggested.
>
> The concerns I was thinking of are more about multi-tenant scenarios:
>
> a) a security issue in sharing the SSL certificates,
> b) configuration issues in which the setting could interfere with the operation of other topologies.
>
>
> Otherwise, maybe use a wildcard for the hostname, or ship each of the certificates in a mapping with the topology and have the topology code select the correct certificate when it needs it.
>
>
> But it might be a better fit to authenticate the clients a different way.
>
>
Re: SSL Context
Posted by Derek Dagit <de...@yahoo-inc.com>.
Ah, I see.
SSL client-side authentication does not seem well-suited to platforms such as storm where the host names are ephemeral.
You could deploy the certificates to the hosts and set the worker.childopts on each one as you suggested.
The concerns I was thinking of are more about multi-tenant scenarios:
a) a security issue in sharing the SSL certificates,
b) configuration issues in which the setting could interfere with the operation of other topologies.
Otherwise, maybe use a wildcard for the hostname, or ship each of the certificates in a mapping with the topology and have the topology code select the correct certificate when it needs it.
But it might be a better fit to authenticate the clients a different way.
--
Derek
----- Original Message -----
From: Ben Gould <be...@inovexcorp.com>
To: user@storm.apache.org
Cc:
Sent: Monday, March 30, 2015 2:01 PM
Subject: Re: SSL Context
They're actually occasionally reaching out to grab remote resources
hosted over https based upon the incoming tuple. The remote resource
they are reaching out to requires client authentication as well, so the
certificate has to be signed by a specific CA. Currently I'm just using
a set of self-signed certs and a self-signed common root CA.
--
Ben Gould
iNovex Information Systems, Inc
7240 Parkway Drive, Suite 140
Hanover, MD 21076
(410)292-1332
http://inovexcorp.com
Re: SSL Context
Posted by Ben Gould <be...@inovexcorp.com>.
They're actually occasionally reaching out to grab remote resources
hosted over https based upon the incoming tuple. The remote resource
they are reaching out to requires client authentication as well, so the
certificate has to be signed by a specific CA. Currently I'm just using
a set of self-signed certs and a self-signed common root CA.
On 03/30/2015 02:12 PM, Derek Dagit wrote:
> True, there are two other use cases that users commonly have:
>
>
> YCAv2: Users go through a common proxy, since these certificates are also host-based.
>
>
> Data Highway: The DH servers query the storm registry server using yfor syntax for the list of hosts (storm spouts) that have registered to receive data. SSL certificates are generated for each virtual host in the registry service.
>
>
>
> What external service is being connected to in this case?
>
>
--
Ben Gould
iNovex Information Systems, Inc
7240 Parkway Drive, Suite 140
Hanover, MD 21076
(410)292-1332
http://inovexcorp.com
Re: SSL Context
Posted by Derek Dagit <de...@yahoo-inc.com>.
True, there are two other use cases that users commonly have:
YCAv2: Users go through a common proxy, since these certificates are also host-based.
Data Highway: The DH servers query the storm registry server using yfor syntax for the list of hosts (storm spouts) that have registered to receive data. SSL certificates are generated for each virtual host in the registry service.
What external service is being connected to in this case?
--
Derek
----- Original Message -----
From: Ben Gould <be...@inovexcorp.com>
To: user@storm.apache.org
Cc:
Sent: Monday, March 30, 2015 12:13 PM
Subject: Re: SSL Context
Thanks for the response!
Sure but if you need an identifying certificate per storm node, you
can't really set it in the TopologyBuilder configuration when submitting
the topology, since each node will have a unique certificate (possibly
with a different password). If they all had the same path and password
it wouldn't be an issue I suppose.
On 03/26/2015 06:17 PM, Derek Dagit wrote:
> I think you can topology.worker.childopts when submitting your topology, and each of your worker JVMs will be launched with those options.
> -- Derek
>
>
>
> ________________________________
> From: Ben Gould <be...@inovexcorp.com>
> To: user@storm.apache.org
> Sent: Thursday, March 26, 2015 4:52 PM
> Subject: SSL Context
>
>
> Hi all,
>
> I'm running a topology that has bolts and spouts that need to make ssl
> connections to external resources. I'm trying to set the
> -Djavax.net.ssl.* properties using the storm.yaml, but I'm not sure how
> to get it down to the necessary component. I am guessing I have to
> change my "topology.worker.childopts" option on each storm node?
>
> Before I go and mess with my storm.yaml files, I wanted to reach out and
> see how people were doing it.
>
> Thanks,
> -Ben
--
Ben Gould
iNovex Information Systems, Inc
7240 Parkway Drive, Suite 140
Hanover, MD 21076
(410)292-1332
http://inovexcorp.com
Re: SSL Context
Posted by Ben Gould <be...@inovexcorp.com>.
Thanks for the response!
Sure but if you need an identifying certificate per storm node, you
can't really set it in the TopologyBuilder configuration when submitting
the topology, since each node will have a unique certificate (possibly
with a different password). If they all had the same path and password
it wouldn't be an issue I suppose.
On 03/26/2015 06:17 PM, Derek Dagit wrote:
> I think you can topology.worker.childopts when submitting your topology, and each of your worker JVMs will be launched with those options.
> -- Derek
>
>
>
> ________________________________
> From: Ben Gould <be...@inovexcorp.com>
> To: user@storm.apache.org
> Sent: Thursday, March 26, 2015 4:52 PM
> Subject: SSL Context
>
>
> Hi all,
>
> I'm running a topology that has bolts and spouts that need to make ssl
> connections to external resources. I'm trying to set the
> -Djavax.net.ssl.* properties using the storm.yaml, but I'm not sure how
> to get it down to the necessary component. I am guessing I have to
> change my "topology.worker.childopts" option on each storm node?
>
> Before I go and mess with my storm.yaml files, I wanted to reach out and
> see how people were doing it.
>
> Thanks,
> -Ben
--
Ben Gould
iNovex Information Systems, Inc
7240 Parkway Drive, Suite 140
Hanover, MD 21076
(410)292-1332
http://inovexcorp.com
Re: SSL Context
Posted by Derek Dagit <de...@yahoo-inc.com>.
I think you can topology.worker.childopts when submitting your topology, and each of your worker JVMs will be launched with those options.
-- Derek
________________________________
From: Ben Gould <be...@inovexcorp.com>
To: user@storm.apache.org
Sent: Thursday, March 26, 2015 4:52 PM
Subject: SSL Context
Hi all,
I'm running a topology that has bolts and spouts that need to make ssl
connections to external resources. I'm trying to set the
-Djavax.net.ssl.* properties using the storm.yaml, but I'm not sure how
to get it down to the necessary component. I am guessing I have to
change my "topology.worker.childopts" option on each storm node?
Before I go and mess with my storm.yaml files, I wanted to reach out and
see how people were doing it.
Thanks,
-Ben