Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHFhk-0006WK-MR for pgsql-committers@arkaria.postgresql.org; Wed, 25 Mar 2020 23:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHFhj-00051B-G1 for pgsql-committers@arkaria.postgresql.org; Wed, 25 Mar 2020 23:44:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHFhj-00050F-59 for pgsql-committers@lists.postgresql.org; Wed, 25 Mar 2020 23:44:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHFhg-0004HC-SU for pgsql-committers@lists.postgresql.org; Wed, 25 Mar 2020 23:44:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02PNitUq019604; Wed, 25 Mar 2020 19:44:55 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Provide a TLS init hook In-reply-to: <16587.1585174641@sss.pgh.pa.us> References: <15993.1585173676@sss.pgh.pa.us> <16587.1585174641@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 25 Mar 2020 18:17:21 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19602.1585179895.1@sss.pgh.pa.us> Date: Wed, 25 Mar 2020 19:44:55 -0400 Message-ID: <19603.1585179895@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Concretely, I see that contrib/sslinfo has > SHLIB_LINK += $(filter -lssl -lcrypto -lssleay32 -leay32, $(LIBS)) I verified that that fixes things on macOS and pushed it, along with a couple other minor fixes. However, I'm quite desperately unhappy that the new test module does this: $node->append_conf('postgresql.conf', "listen_addresses = 'localhost'"); That's opening a security hole. Note that we do *not* run src/test/ssl by default, and it has a README warning people not to run it on multiuser systems. It seems 100% unacceptable for this test to fire up a similarly insecure server without so much as a by-your-leave. I don't actually see why we need the localhost port at all --- it doesn't look like this test ever attempts to connect to the server. So couldn't we just drop that? regards, tom lane