You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Maison Mo <mo...@yahoo.fr> on 2012/09/19 15:13:27 UTC

Derby server listening on different interfaces

Hello Derby users,

I have a rather unusual use case, where I have two clients using the same Derby DB. Thus I use a Derby server.
One client is on the same host as the derby server, whereas the second one is not ; I have security concerns with the non local client that will most probably require SSL with client/server authentication.
For performance reasons, I planned to use localhost interface without ssl for the localhost client, and ssl authentication for the remote client only.

I'd like to know if this is feasible with Derby ? Based on my readings on admin documentation, I am afraid not.
What would you recommend in that case ?

Regards,

  M. Maison


Re: Derby server listening on different interfaces

Posted by Mo Maison <mo...@yahoo.fr>.
Le 19/09/2012 15:40, Kristian Waagan a écrit :
> Have you considered if it is feasible to have the local client use the 
> embedded driver and the remote client use the network driver?
> This setup is referred to as "embedded server". There are many things 
> that may make it hard to use, for instance that your local client is 
> shut down but the remote client most still be able to access the 
> database.

Exactly ; this is one reason for which this approach does not fit my needs.

>
> I haven't confirmed this, but I too suspect that listening to one 
> interface using SSL and one without SSL isn't supported by Derby.
> Given that the embedded server approach is unfeasible, you may have to 
> choose between improved security wrt the remote client and overhead 
> for the local client :(

Another way would be to create an ssh tunnel between remote client and DB.
That implies some non trivial system configuration though.

Thank you for your support,

   M. Maison

Re: Derby server listening on different interfaces

Posted by Kristian Waagan <kr...@oracle.com>.
On 19.09.2012 15:13, Maison Mo wrote:
> Hello Derby users,
>
> I have a rather unusual use case, where I have two clients using the same Derby DB. Thus I use a Derby server.
> One client is on the same host as the derby server, whereas the second one is not ; I have security concerns with the non local client that will most probably require SSL with client/server authentication.
> For performance reasons, I planned to use localhost interface without ssl for the localhost client, and ssl authentication for the remote client only.
>
> I'd like to know if this is feasible with Derby ? Based on my readings on admin documentation, I am afraid not.
> What would you recommend in that case ?

Hello,

Have you considered if it is feasible to have the local client use the 
embedded driver and the remote client use the network driver?
This setup is referred to as "embedded server". There are many things 
that may make it hard to use, for instance that your local client is 
shut down but the remote client most still be able to access the database.

I haven't confirmed this, but I too suspect that listening to one 
interface using SSL and one without SSL isn't supported by Derby.
Given that the embedded server approach is unfeasible, you may have to 
choose between improved security wrt the remote client and overhead for 
the local client :(


Regards,
-- 
Kristian

>
> Regards,
>
>    M. Maison
>