Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOn4f-0008Nq-DT for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:01:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOn4e-0006BW-Ri for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:01:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cOn3E-00046l-Dq for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:00:28 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOn3B-0002pJ-PQ for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:00:27 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 56B6C5F794; Wed, 4 Jan 2017 09:59:25 -0500 (EST) Date: Wed, 4 Jan 2017 09:59:25 -0500 From: Stephen Frost To: Magnus Hagander Cc: Tom Lane , Peter Eisentraut , Michael Paquier , Andreas Karlsson , Michael Banck , Peter Geoghegan , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP Message-ID: <20170104145925.GN18360@tamriel.snowman.net> References: <05677cd3-63b2-b15b-7afd-798e34e607c7@proxel.se> <16e282a4-2573-f629-09e8-e6b0ac615890@2ndquadrant.com> <29982.1483412575@sss.pgh.pa.us> <23913.1483458895@sss.pgh.pa.us> <20995.1483541230@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KDmPiU/dG5K4hm3H" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 09:55:41 up 179 days, 16:20, 37 users, load average: 0.38, 0.23, 0.17 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --KDmPiU/dG5K4hm3H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Magnus Hagander (magnus@hagander.net) wrote: > On Wed, Jan 4, 2017 at 3:47 PM, Tom Lane wrote: > > Magnus Hagander writes: > > > On Tue, Jan 3, 2017 at 4:54 PM, Tom Lane wrote: > > >> I think probably the right thing for now is to install a do-nothing > > >> callback, so that at least we don't have the issue of the postmaster > > >> freezing at SIGHUP. If someone feels like trying to revive support > > >> of passphrase-protected server keys, that would be a perfectly fine > > >> base to build on; they'd need a callback there anyway. > > > > > Does it still support passphrase protected ones on startup, or did th= at > > get > > > thrown out with the bathwater? > > > > It does not; what would be the point, if the key would be lost at SIGHU= P? >=20 > If we lost it, yes. But we could keep the old key around if it hasn't > changed, thus behave just like we did in <=3D 9.6. Either that, or throw the same warning that we can't reload the SSL bits if we had to ask for a passphrase at startup, again like how it worked in 9.6. > > > I think that's definitely a separate thing > > > and there are a nontrivial number of people who would be interested i= n a > > > setup where they can use a passphrase to protect it initially, just n= ot > > > reload it. > > > > If any of those number of people want to step up and design/implement > > a non-broken solution for passphrases, that'd be fine with me. But > > I would want to see something that's actually a credible solution, > > allowing the postmaster to be started as a normal daemon. And working > > on Windows. >=20 > Well, for all those people 9.6 worked significantly better... Because they > could reload *other* config parameters without failure. Indeed, this is important functionality that people are using. I don't agree with simply removing it because we want to make these options able to be changed on a reload, that's not a good trade-off. Thanks! Stephen --KDmPiU/dG5K4hm3H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYbQ3NAAoJEO1sijiDR2RVfqgP/35z0T8S5CYusOtwz0mV1Orf T8Q3i14OiHsKv84jqtMYtHbNXHx5k6MKVVwNppvVEEv22QjHekW9liDGR14tDvne HJfNdRhgueWCRAQMkZj/O3rkHG4tRaS3Kkz4A4e+Txxo/PqJ9T0gKSrGACboP6RE biyzbQyDGhs7DSe/ofhqiWYIzfdcoJ1XMZR85Sxud30HZGH7QqPNSMUQbjtqQuld tcw7svB1pxeCvKawYeHbFyQt9dtEQIhb6sd9unYjIe0zF+z2yEeutxUnUZilsFPj 3HMM94Vjx19RB+Kl2vf9eZ0Kt42R7rjh5ZT4nERALdYBVv1H8wpfuDYJwXQ2VRTi FNwevisyn4Tec2NmO9auhj2xlf5wtpNAD7p045WKJNJDAN41IRJ0sXP2HUD645un hnlGBKf+JipTHXXfZqmeul/F9ThxT2XzaJawKdU9QnUm/yFwDROjZf8zxNpN284M NQhcPjlbzJo7P7YTz+VpWvlct+Wglu1x0X5LWPEqLX81cqn5EC/5Mr0sTzR9lpXI gMRqlm9USxBmn4OD1tOuza3GmKBC12YQunRQ8a7l6hBXj43WNaFOuLNEpgIXSbgc inVLocc7+YpvbIDW/kyP1WTuiFxvAop1850ExQY85/JKi4akJ671Dr88rBuhc9tO ksEd0Y1gOzpWWV89a2Gf =CAol -----END PGP SIGNATURE----- --KDmPiU/dG5K4hm3H--