Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOone-0004wW-8L for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 16:52:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOond-0000B2-IX for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2017 16:52:29 +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 1cOomF-00071Z-8J for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 16:51:03 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOomB-0005CI-Dk for pgsql-hackers@postgresql.org; Wed, 04 Jan 2017 16:51:01 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 9A7015F794; Wed, 4 Jan 2017 11:49:58 -0500 (EST) Date: Wed, 4 Jan 2017 11:49:58 -0500 From: Stephen Frost To: Peter Eisentraut Cc: Tom Lane , Andreas Karlsson , Magnus Hagander , Michael Paquier , Michael Banck , Peter Geoghegan , PostgreSQL-development Subject: Re: [PATCH] Reload SSL certificates on SIGHUP Message-ID: <20170104164958.GR18360@tamriel.snowman.net> References: <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> <23703.1483545440@sss.pgh.pa.us> <97c1bad2-ac72-052a-0525-1d115f094f15@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xFQBzfy8IMmn3THN" Content-Disposition: inline In-Reply-To: <97c1bad2-ac72-052a-0525-1d115f094f15@2ndquadrant.com> 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: 11:47:39 up 179 days, 18:11, 37 users, load average: 0.20, 0.18, 0.14 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 --xFQBzfy8IMmn3THN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > On 1/4/17 10:57 AM, Tom Lane wrote: > > 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. >=20 > Sounds good. Agreed, thanks. > Looking around briefly (e.g., Apache, nginx), the standard approach > appears to be a configuration setting that gets the password from an > external program or file. (Although the default still appears to be to > get from tty.) Right, the MIT Kerberos daemon will definitely prompt for the passphrase for the master key on the terminal also. They might also have a way to get it from a program now, not sure, it's been a while, but it was a requirement from NIST 800-53 to not have unencrypted keys on the filesystem and I had to address that for the MIT Kerberos master key and the private keys for various SSL-using services. > systemd has support for getting passwords to services without tty. Oh, that's interesting, I wasn't aware of that. > So if someone is interested, there is some room for enhancement here. Agreed. Thanks! Stephen --xFQBzfy8IMmn3THN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYbSe2AAoJEO1sijiDR2RV0+AQAJgpMDYH9tVyY+RqSpA+4ruc ESfbPCh1EiBCgZ7iSsD/oDBTzLB7CL8cVBGTWXZkLS/ELd46FaFHyWwAytrbwdpX UaRVQnBrPT9O/kkmjoVOP7gDdz/Yu5GFZDVXUKD1+PbY6XQcuyDlcvKDQfTRpRr0 J1tqdjfbenbHb9zZSqPeE3ejp+YXKKPxr9uKn4Ho65A3oLQf9Ic+zUoBRkAgJOek YYv4Cp8trdCSgpL4uNnOC/GcozE2uxC/dgXylBOgpDXG+/5nXb3I2VOmmfJwFOGg P3rte0BXbZy8EDFlAiE178RRni9R2tgiGJBMDTTt/RxeknSNkHneLRFg1pEZB/FO Pc8NpsejgzjcyEKhaH9+RS3GIjRRN0EOZ22pTAKiMKkjKUvUrKrwkw0Amd1PrHXX mOJNgSsWfmcFYZPZnU/w2FPHm7YSRMtRz7xKnOxEuAiUjMOoLgpjDMFpf32IMTzQ SYKVTsrMnMApPpX2A5xWrZ/J4UjHS7WyW6v6xiDR6r91t/5/SEvhJxGMLXQfgRm0 sJxM7a2X9wNSSLfVLxq7Y8swGooO8jjgzFmaA5Bf3jpWnZBRag151VyJDeMqfSP/ Kccu+IX0McuwOM1FRhRmZQ0514wpqM7se1X/8323Ln5pm2n5UhR9AmMk128FS/SG p2lq1bUtddxN20zI2i/V =m4Cf -----END PGP SIGNATURE----- --xFQBzfy8IMmn3THN--