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@postgresql.org
Subject: pgsql: Re-allow SSL passphrase prompt at server start, but not thereaft
Date: Wed, 04 Jan 2017 17:44:29 +0000
Message-ID: <E1cOpbx-0003PR-Kx@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Re-allow SSL passphrase prompt at server start, but not thereafter.

Leave OpenSSL's default passphrase collection callback in place during
the first call of secure_initialize() in server startup.  Although that
doesn't work terribly well in daemon contexts, some people feel we should
not break it for anyone who was successfully using it before.  We still
block passphrase demands during SIGHUP, meaning that you can't adjust SSL
configuration on-the-fly if you used a passphrase, but this is no worse
than what it was before commit de41869b6.  And we block passphrase demands
during EXEC_BACKEND reloads; that behavior wasn't useful either, but at
least now it's documented.

Tweak some related log messages for more readability, and avoid issuing
essentially duplicate messages about reload failure caused by a passphrase.

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6667d9a6d77b9a6eac89638ac363b6d03da253c1

Modified Files
--------------
doc/src/sgml/runtime.sgml             | 19 +++++---
src/backend/libpq/be-secure-openssl.c | 84 ++++++++++++++++++++---------------
src/backend/libpq/be-secure.c         | 10 ++---
src/backend/postmaster/postmaster.c   |  8 ++--
src/include/libpq/libpq-be.h          |  2 +-
src/include/libpq/libpq.h             |  2 +-
6 files changed, 72 insertions(+), 53 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cOpbx-0003PR-Kx@gemulon.postgresql.org>
Permalink:  ../E1cOpbx-0003PR-Kx@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cOpbx-0003PR-Kx@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: Re-allow SSL passphrase prompt at server start, but not thereaft
  In-Reply-To: <E1cOpbx-0003PR-Kx@gemulon.postgresql.org>
  References: <E1cOpbx-0003PR-Kx@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