Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOnxq-0002UX-TQ for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:58:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOnxq-0005LV-8M for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:58:58 +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 1cOnwR-00024E-1o for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:57:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cOnwO-00043m-GC for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:57:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v04FvKDk023704; Wed, 4 Jan 2017 10:57:20 -0500 From: Tom Lane To: Peter Eisentraut cc: Andreas Karlsson , Stephen Frost , Magnus Hagander , Michael Paquier , Michael Banck , Peter Geoghegan , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP In-reply-to: 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> <7fca80da-0274-3f36-eb25-d53f940c1977@proxel.se> <20170104151429.GP18360@tamriel.snowman.net> <1254e97b-a65a-5a63-e938-810507a16d71@proxel.se> <22644.1483543579@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Wed, 04 Jan 2017 10:46:28 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23702.1483545440.1@sss.pgh.pa.us> Date: Wed, 04 Jan 2017 10:57:20 -0500 Message-ID: <23703.1483545440@sss.pgh.pa.us> 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 Peter Eisentraut writes: > On 1/4/17 10:26 AM, Tom Lane wrote: >> How will you know whether there's a pass phrase? > One could register a password callback that remembers whether it was called. Hmm ... actually, we don't even need to work that hard. If we simply use the callback that's there now, but only during reloads not server start, then we get the desired behavior. Reloads will fail because the wrong passphrase was returned by the callback, and we'll keep the current SSL state. It would probably be worth tweaking things to minimize the amount of log spam that you get from that; but it would work, for values of "work" similar to what was there before. I still maintain that the existing solution for passphrases is useless, but in the interest of removing objections to the current patch, I'll go make that happen. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers