pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol
@ 2020-01-18 03:33  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2020-01-18 03:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ac2dcca5dfe62177fd871a8f4f71430a1c92382c

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol
@ 2020-01-18 03:33  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2020-01-18 03:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-01-18 03:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-18 03:33 pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol Michael Paquier <michael@paquier.xyz>
2020-01-18 03:33 pgsql: Add GUC checks for ssl_min_protocol_version and ssl_max_protocol Michael Paquier <michael@paquier.xyz>

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