Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKFUY-0005jT-8D for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jul 2015 00:45:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKFUX-0005jP-Oq for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jul 2015 00:45:05 +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) (envelope-from ) id 1ZKFUW-0005ia-Cm for pgsql-hackers@postgresql.org; Wed, 29 Jul 2015 00:45:04 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZKFUS-0000k3-Nk for pgsql-hackers@postgresql.org; Wed, 29 Jul 2015 00:45:03 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MX1hk-1ZPnxe1tAq-00Vvx3 for ; Wed, 29 Jul 2015 02:44:58 +0200 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 483A321A85 for ; Tue, 28 Jul 2015 20:44:57 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 28 Jul 2015 20:44:57 -0400 X-Sasl-enc: 5H1Dux5CF/XmzprQ5lt0EoFsp2GbLwTt46bdtjsNRt6p 1438130697 Received: from [10.0.0.9] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 070E5C0001F; Tue, 28 Jul 2015 20:44:57 -0400 (EDT) Message-ID: <55B82208.4090901@gmx.net> Date: Tue, 28 Jul 2015 20:44:56 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andreas Karlsson , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP References: <556A6E8A.9030400@proxel.se> <55956342.9050408@gmx.net> <55AEE95E.7090304@proxel.se> In-Reply-To: <55AEE95E.7090304@proxel.se> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:+D7icZdiLcyTTHSzFmS020Wqcn2UQcHanH7nWWz42oDhUxscZbM 06pMN6bzB/cCb2znQ+SOFmZyzLsawE+rRKYuJirCwjGUKs3gYycqQOjTBtDziExFKfQZmR/ FFgHRHPjQdwWQHpIlCTBNyZjVuWRReVILoZc+7OVrO1sDdQRf/8a9hjr7IuQJFq5JwW6B9Q A3fy7oEvQBuD2qpdGITjg== X-UI-Out-Filterresults: notjunk:1;V01:K0:VMyDijQJWa4=:I8ePK3KtOyApxeA613X90f OkLqaAQw3j6bmH7USG0Zmf6H/yXUrqjitShlI67QiC4TkRRvvkapmSupTfDHpmUjEh2DgWkkN uQJmePAhR4yQS22JQt/maXphbY51m5d8JWaLwQUwtKdYfxzMytKH0jUxqWlp4BvNfHo7NHIhL /bwl4Tusaa+T58Edfj7VTko83/ep4ZdrV5pB9Pvkfb9kJB9n3S3/c0eilM3WRVgHlIV2PvBqF AMr2apPz8Ub9I2IapjrZfcQF57xfXHxBaz9AMrFivEAa5bPFoGOQiUuob/q9/VZ2vO/aSEpco oE53k9UbM7KK1iO4nM3bDqvNNPY2SeJAJRp/MED2ISvthRv/owS899k+J6f92GNbyJzn4GIOx 6Hn33o/6tLSW7bPj1uuAT6FC2LSRysqSTeyo3sgbik8SDpRJgmS7/2UvMVTy9244RyklmFtNY CMxUk0oPzrenIwzrqftbeyvTG9irHMwfhB09neB3dceALMLQDJQS+TtAyycxOmr/NqdXl8NsM VSWtk5KRG54EXhMbyrgAgCf/rrkKRp07LAYbmPG6YkmzJ4Dhdw7IC05iEkO3L7PdYxHV2mvsX aNYHyN0YI9DBbN8Yu0gw6CmQ2cP1tR6mClTgf5Xh09S4K/yr7wcd0mZG9LA4lzM/Gq+u4/d6Q +gnO7P5jMfquKiQoCK7IKodJWcXc9F3En6n67FKGwKFTcpKn/BXufgsTnBXk7YUl6F3c= X-Pg-Spam-Score: -3.3 (---) 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 7/21/15 8:52 PM, Andreas Karlsson wrote: > It is not enough to just add a hook to the GUCs since I would guess most > users would expect the certificate to be reloaded if just the file has > been replaced and no GUC was changed. To support this we would need to > also check the mtimes of the SSL files, would that complexity really be > worth it? Actually, I misread your patch. I thought you only wanted to reload the SSL files when the GUC settings change, but of course we also want to reload them when the files are changed. I don't have a problem with rebuilding the SSL context on every reload cycle. We already do a lot of extra reloading every time, so a bit more shouldn't hurt. But I'm not so sure whether we should do that in the SIGHUP handler. I don't know how we got into the situation of doing all the file reloads directly in the handler, but at least we can control that code. Making a bunch of calls into an external library is a different thing, though. Can we find a way to do this differently? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers