From 3330724024f5f60f155278a6b443d7e7adfef236 Mon Sep 17 00:00:00 2001 From: Ben Paxton Date: Mon, 5 Jul 2021 10:24:38 +0100 Subject: [PATCH] Revert "change sslmode to require" This reverts commit 0e9b7186c6a927087609d842c7fd0994c9b5b7f3. --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index f3660c8f..8dbb42cc 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -234,7 +234,7 @@ def write_recovery_conf(self, leader_hash): leader = urlparse(leader_hash["address"]) logger.info("Write Recovery Conf: %s:%s", leader.hostname, leader.port) f.write(""" -primary_conninfo = 'user=%(user)s password=%(password)s host=%(hostname)s port=%(port)s sslmode=require sslcompression=1' +primary_conninfo = 'user=%(user)s password=%(password)s host=%(hostname)s port=%(port)s sslmode=prefer sslcompression=1' """ % {"user": leader.username, "password": leader.password, "hostname": leader.hostname, "port": leader.port}) if "recovery_conf" in self.config: