Re: [SQL] Encrypting PGBouncer to Postgres DB connections

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: Bhanu Murthy <bhanu_murthy(at)yahoo(dot)com>, handsfree <luke(dot)hansbury(at)redwood(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [SQL] Encrypting PGBouncer to Postgres DB connections
Date: 2013-05-08 07:47:40
Message-ID: A737B7A37273E048B164557ADEF4A58B05816C8A@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

Bhanu Murthy wrote:
> handsfree wrote:

>> We're looking to use streaming replication to a target via a secondary host
>> using stunnel.

> I could think of 2 possible solutions:

[...]

> 2. Use streaming replication config features to secure traffic (encrypted data over TCP)
>
> Master configuration on machine-A:
> =>Update replication line in pg_hba.conf to "hostssl"
>
> Slave configuration on machine-B:
> => primary_conninfo='host=machine-A port=5432 sslmode=require'
> or
> => primary_conninfo='host=machine-A port=5432 sslmode=verify-ca'
>
> You could then use cascading replication (available from postgres 9.2) from machine-B to machine-C.

That would be the best solution, but I ran into a problem with it:
http://www.postgresql.org/message-id/D960CB61B694CF459DCFB4B0128514C208A4E93C@exadv11.host.magwien.gv.at

It still works, but the replication connection is lost and restarted
whenever SSL renegotiation takes place.
I wasn't able to figure out what causes the problem.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message handsfree 2013-05-08 08:35:43 Re: [SQL] Encrypting PGBouncer to Postgres DB connections
Previous Message Achilleas Mantzios 2013-05-08 07:03:30 Re: Installing multiple instances of Postgred on one FreeBSD server

Browse pgsql-sql by date

  From Date Subject
Next Message handsfree 2013-05-08 08:35:43 Re: [SQL] Encrypting PGBouncer to Postgres DB connections
Previous Message Achilleas Mantzios 2013-05-08 07:04:34 Re: Correct implementation of 1:n relationship with n>0?