Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFIWa-0002i3-2T for pgsql-general@arkaria.postgresql.org; Wed, 02 Feb 2022 16:30:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFIWY-0005cz-T3 for pgsql-general@arkaria.postgresql.org; Wed, 02 Feb 2022 16:30:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFIWX-0005cq-Ou for pgsql-general@lists.postgresql.org; Wed, 02 Feb 2022 16:30:26 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFIWU-0000KB-4l for pgsql-general@lists.postgresql.org; Wed, 02 Feb 2022 16:30:25 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id BE7A832022C5; Wed, 2 Feb 2022 11:30:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 02 Feb 2022 11:30:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=QyvLaLuJfAvch/ +SqrqO0GM2uB2GeMx+rUj4fyPoqcc=; b=lsxERJeCX6XkoEg+odLS8pDKpdMRj+ faJbXBkPxLx70hY83bblvZl8poRx1X74RXw8WeJfbWAPjsah+gVkeGYIlbWOl8wz GJLGrERtlYL2GLVo/InM+C+vQsFToX4LQ2/cUIfRfgw9liphGEsIMVNH99gmtYnw ApVFukPvPsFPnmYpwdOjjZae8JY+nXnS1bgB/8IcYgBuIOXK9i/gBTxX+6vE2v2E IZe3qqzR1YOVmw1By37DJmkYvjvRXs/odqhiYZLIyiO6kqMh+xjZtMPtEpT+UCFE bzXB2T+FPPrpBBnStKRHfcbVRfH1kB16sMpjLovdIfQAKzJvKsWsEBuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=QyvLaLuJfAvch/+SqrqO0GM2uB2GeMx+rUj4fyPoqcc=; b=WkhHgEZa YWpiIEWQPV/bsSZmn4EmJFKYauttHQ2chv/5rJixe18vccVQmfp35fxThELXr2fc kbziSUlyJi1rDWKw0IXuMgsXV+dy4Nm9mKHOjcrOwt6x47uSvr2sRIBdsPxcEVtS RI3AD4UuxRLY4qW1CYDiYiNH/HuRiszg+8NpYOuUoKNTl3NiAVl/EozkZ0IAA5+o Zi2xgsOqUcT7+fCwgYitXZoKrWx2qY+e32GKQ2qLtbIZ35hYl2rz42mKovCqxSLC QhFXHQ+HAqvm8nkZDRbm0JigCMBDpEdujiVbU8JNbZSRxsS6vRpnCWZ2VuPpWYM1 2t5K14+pXbHxXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeehgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevvdekiefhud fhhfdtkeelgeffudeigfetjeegfffghfetfeelledugfelleegveenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 11:30:17 -0500 (EST) Message-ID: Date: Wed, 2 Feb 2022 08:30:16 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: pg_basebackup with hostssl ? Content-Language: en-US To: Laura Smith , postgre References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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