From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Provide a TLS init hook
Date: Wed, 25 Mar 2020 19:44:55 -0400
Message-ID: <19603.1585179895@sss.pgh.pa.us> (raw)
In-Reply-To: <16587.1585174641@sss.pgh.pa.us>
References: <E1jHDdK-0002YP-15@gemulon.postgresql.org>
<15993.1585173676@sss.pgh.pa.us>
<16587.1585174641@sss.pgh.pa.us>
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
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net
Subject: Re: pgsql: Provide a TLS init hook
In-Reply-To: <19603.1585179895@sss.pgh.pa.us>
References: <E1jHDdK-0002YP-15@gemulon.postgresql.org> <15993.1585173676@sss.pgh.pa.us> <16587.1585174641@sss.pgh.pa.us> <19603.1585179895@sss.pgh.pa.us>
* 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