pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clean up management of IP addresses in our SSL tests.
Date: Tue, 07 Jan 2020 01:56:39 +0000
Message-ID: <E1ioe6p-00056J-JL@gemulon.postgresql.org> (raw)

Clean up management of IP addresses in our SSL tests.

Instead of hard-wiring the netmask as /32, allow it to be specified
where we specify the server address.  This will ease changing the
test to use IPv6, when/if somebody wants to do that.

Also remove the hard-wired pg_hba.conf entries for IPv6 (::1/128).
These have never had any usefulness, because the client side
of the tests has always explicitly connected to $SERVERHOSTADDR
which has always been set to IPv4 (127.0.0.1).  All they accomplish
is to break the test on non-IPv6-supporting hosts, and besides
that they violate the express intent of the code to minimize the
server's range of allowed connections.

This could be back-patched, perhaps, but for now I don't see
a need to.

Discussion: https://postgr.es/m/1899.1578356089@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2bd0735b954b14dcfab85d57fc4a0c7f9826fbb1

Modified Files
--------------
src/test/ssl/t/001_ssltests.pl |  5 ++++-
src/test/ssl/t/002_scram.pl    |  6 ++++--
src/test/ssl/t/SSLServer.pm    | 27 +++++++++++++--------------
3 files changed, 21 insertions(+), 17 deletions(-)



Message-ID: <E1ioe6p-00056J-JL@gemulon.postgresql.org>
Permalink:  ../E1ioe6p-00056J-JL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ioe6p-00056J-JL@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Clean up management of IP addresses in our SSL tests.
  In-Reply-To: <E1ioe6p-00056J-JL@gemulon.postgresql.org>
  References: <E1ioe6p-00056J-JL@gemulon.postgresql.org>

* 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