pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>
To: postgre <pgsql-general@lists.postgresql.org>
Subject: Re: pg_basebackup with hostssl ?
Date: Wed, 2 Feb 2022 08:30:16 -0800
Message-ID: <fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com> (raw)
In-Reply-To: <u4Ap-j-o9BPs6E3w5BxzpDTvGCzkTspSkq6Nn56_lHoDWbWH14IUa8UkUTNRkHczE4wuIpAXLe5ucMGQZ-w1UVJf78BfrtyAygZXWYkBMpc=@protonmail.ch>
References: <u4Ap-j-o9BPs6E3w5BxzpDTvGCzkTspSkq6Nn56_lHoDWbWH14IUa8UkUTNRkHczE4wuIpAXLe5ucMGQZ-w1UVJf78BfrtyAygZXWYkBMpc=@protonmail.ch>

On 2/2/22 07:48, Laura Smith wrote:
> I've had a quick glance through the man page for pg_basebackup but can't see any flags to set ssl.
> 
> Long story short, I've got the following in pg_hba.conf of the master:
> hostssl    replication    all    10.0.0.0/8    md5
> 
> But the slave is complaining:
> FATAL:  no pg_hba.conf entry for replication connection from host "10.1.2.3", user "myrepl", no encryption
> 
> I suspect this is almost certainly because I'm using "hostssl" instead of "host".
> 
> But other than the obvious and undesirable quick-fix, how should I be calling pg_basebackup to make sure it uses encryption ?

I am not following. pg_basebackup is a stand alone client that is not 
involved in replication other then establishing a starting point from 
which to later establish a replication relationship.

The error is saying that whatever instance you are pointing 
pg_basebackup at does not have entry in pg_hba.conf for the 
host/user/encryption combination pg_basebackup is trying to connect as.
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)  latest in thread

Message-ID: <fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com>
Permalink:  ../fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com/
Also on:    postgresql.org/message-id/fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, n5d9xq3ti233xiyif2vp@protonmail.ch
  Subject: Re: pg_basebackup with hostssl ?
  In-Reply-To: <fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com>
  References: <u4Ap-j-o9BPs6E3w5BxzpDTvGCzkTspSkq6Nn56_lHoDWbWH14IUa8UkUTNRkHczE4wuIpAXLe5ucMGQZ-w1UVJf78BfrtyAygZXWYkBMpc=@protonmail.ch> <fbb08293-b11e-a106-19a6-d2b180e45411@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox