pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol
Date: Sat, 18 Jan 2020 03:33:52 +0000
Message-ID: <E1iserw-00051Q-V1@gemulon.postgresql.org> (raw)

Add GUC checks for ssl_min_protocol_version and ssl_max_protocol_version

Mixing incorrect bounds set in the SSL context leads to confusing error
messages generated by OpenSSL which are hard to act on.  New checks are
added within the GUC machinery to improve the user experience as they
apply to any SSL implementation, not only OpenSSL, and doing the checks
beforehand avoids the creation of a SSL during a reload (or startup)
which we know will never be used anyway.

Backpatch down to 12, as those parameters have been introduced by
e73e67c.

Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20200114035420.GE1515@paquier.xyz
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/41aadeeb124ee5f8e7d154a16a74d53286882b74

Modified Files
--------------
src/backend/utils/misc/guc.c   | 51 ++++++++++++++++++++++++++++++++++++++++--
src/test/ssl/t/001_ssltests.pl | 20 ++++++++++++++++-
2 files changed, 68 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1iserw-00051Q-V1@gemulon.postgresql.org>
Permalink:  ../E1iserw-00051Q-V1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iserw-00051Q-V1@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: michael@paquier.xyz
  Subject: Re: pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol
  In-Reply-To: <E1iserw-00051Q-V1@gemulon.postgresql.org>
  References: <E1iserw-00051Q-V1@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