Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOnK6-0000fq-Db for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:17:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOnK6-0006F9-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 15:17:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cOnK5-0006E0-ET for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:17:53 +0000 Received: from kilimanjaro.scorpionshops.com ([82.118.24.83]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOnK2-0006qZ-Ga for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 15:17:52 +0000 Received: from [10.0.5.121] (h-95-113.a137.corp.bahnhof.se [94.254.95.113]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPSA id 9C4031B5FDAD1; Wed, 4 Jan 2017 16:17:49 +0100 (CET) Subject: Re: [PATCH] Reload SSL certificates on SIGHUP To: Stephen Frost 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> Cc: Magnus Hagander , Tom Lane , Peter Eisentraut , Michael Paquier , Michael Banck , Peter Geoghegan , PostgreSQL-development From: Andreas Karlsson Message-ID: <1254e97b-a65a-5a63-e938-810507a16d71@proxel.se> Date: Wed, 4 Jan 2017 16:17:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170104151429.GP18360@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 On 01/04/2017 04:14 PM, Stephen Frost wrote: > * Andreas Karlsson (andreas@proxel.se) wrote: >> A possible solution might be to only add the error throwing hook >> when loading certificates during SIGHUP (and at Windows) and to work >> as before on startup. Would that be an acceptable solution? I could >> write a patch for this if people are interested. > > I'm not sure I see how that's a solution..? Wouldn't that mean that a > SIGHUP with an encrypted key would result in a failure? > > The solution, at least in my view, seems to be to say "sorry, we can't > reload the SSL stuff if you used a passphrase to unlock the key on > startup, you will have to perform a restart if you want the SSL bits to > be changed." Sorry, I was very unclear. I meant refusing the reload the SSL context if there is a pass phrase, but that the rest of the config will be reloaded just fine. This will lead to some log spam on every SIGHUP for people with a pass phrase but should otherwise work as before. Andreas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers