Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLG2Y-0000zL-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 21:41:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLG2X-00022j-JQ for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 21:41:25 +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 1dLG2V-00020N-Mc for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 21:41:23 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLG2T-0007XT-0e for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 21:41:23 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0C3D25F795; Wed, 14 Jun 2017 17:41:19 -0400 (EDT) Date: Wed, 14 Jun 2017 17:41:19 -0400 From: Stephen Frost To: Peter Eisentraut Cc: Bruce Momjian , Ants Aasma , Robert Haas , PostgreSQL-development Subject: Re: WIP: Data at rest encryption Message-ID: <20170614214119.GL1769@tamriel.snowman.net> References: <20170613172459.GL3151@tamriel.snowman.net> <20170613174329.GK13873@momjian.us> <20170613182339.GP3151@tamriel.snowman.net> <20170613182910.GN13873@momjian.us> <20170613183858.GR3151@tamriel.snowman.net> <20170613185622.GO13873@momjian.us> <20170613192011.GS3151@tamriel.snowman.net> <20170613221104.GT3151@tamriel.snowman.net> <9cea5160-c64b-0b9e-d4b7-c57db2a696be@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TxukmIqg3MmZ0Kmh" Content-Disposition: inline In-Reply-To: <9cea5160-c64b-0b9e-d4b7-c57db2a696be@2ndquadrant.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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 --TxukmIqg3MmZ0Kmh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Peter, * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > On 6/13/17 18:11, Stephen Frost wrote: > >> Let's see a proposal in those terms then. How easy can you make it, > >> compared to existing OS-level solutions, and will that justify the > >> maintenance overhead? > > From the original post on this thread, which included a WIP patch: > >=20 > > ---------------------------------- > > Usage > > =3D=3D=3D=3D=3D > >=20 > > Set up database like so: > >=20 > > (read -sp "Postgres passphrase: " PGENCRYPTIONKEY; echo; > > export PGENCRYPTIONKEY > > initdb -k -K pgcrypto $PGDATA ) > >=20 > > Start PostgreSQL: > >=20 > > (read -sp "Postgres passphrase: " PGENCRYPTIONKEY; echo; > > export PGENCRYPTIONKEY > > postgres $PGDATA ) > > ---------------------------------- >=20 > Relying on environment variables is clearly pretty crappy. So if that's > the proposal, then I think it needs to be better. I don't believe that was ever intended to be the final solution, I was just pointing out that it's what the WIP patch did. The discussion had moved into having a command called which provided the key on stdout, as I recall, allowing it to be whatever the user wished, including binary of any kind. If you have other suggestions, I'm sure they would be well received. As to the question of complexity, it certainly looks like it'll probably be quite straight-forward for users to use. Thanks! Stephen --TxukmIqg3MmZ0Kmh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZQa1/AAoJEO1sijiDR2RVc/wP/iUNe9wE0WIGLrNbck6U8Epl pTfeWgJ+cQ40LH/fswS0qgbaU5OyudMpRdmgo4wtF53t8otnRhFoCBJUntujxYZ0 UqMcavBsowuh1iIr11BEZNb4qG2PVUAsBWyg9Sj9e1L8EJBd+JAZFcW3WwLCNIK1 qXliu708m//pe09RJFV9jfLNGzqYjVce0/w4OxTC9+OK0mDSgQiWZYgEzGN7H4ZQ PnWGmhudg3vYL0jwwjQ/qnONdsc4Db6oTaSOyOTDU6kR428D4x2JP1bwQh5/ctFp uh77vRcXesF1Mg6EG9ra1QIKj6Ww924opiA7ELu61LeAZh59G3ZWm4grzmiYHVDO PTJshOW2BywBkvuItd7haf4yVVDaaUM9vAoZaTU2WyrBJlxTk9EojsPgLTmwhsnk tlrH4ugxSgxVqKavNcrg3g3Q6WtF3a2NGZY+8h8SS6A0w3kO7J1MzelxCj1LRaWL HJCWsE5Gs8OvWIHjNRpVwlQosZIQO1DeMXbR70phhTHwtZp4voYArXATskFtLBNx FHqd9ZEI3eD6kp0RTr0GS1YWoi3zcVC0rRUIOEn2igthvzmJEunNc7AsPgWSuF4E vT7D0lGHAfz1Nww1Y5CSykxNeywmC9d73zn1qCPwOPiEaRJ5NmcvzZaLbZUPS3Kz yO2EQrW3M2AhgCGsiyqK =nwYo -----END PGP SIGNATURE----- --TxukmIqg3MmZ0Kmh--