Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLFxl-0000ko-DI for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 21:36:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dLFxk-0007eo-Ob for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jun 2017 21:36:28 +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 1dLFxj-0007cn-1H for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 21:36:27 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dLFxb-0007Rj-Rl for pgsql-hackers@postgresql.org; Wed, 14 Jun 2017 21:36:26 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 79AF020B57; Wed, 14 Jun 2017 17:36:18 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Wed, 14 Jun 2017 17:36:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=qKq1Djw5dXCDt8+CCRkifv9pF+MQg570EOZPMiGsSls=; b=MQ8gaAvm BvR2G3HaajB9wJK8DoFMZmsDeKzY/M0RK57obqCLsiZVcVZakRTqfAC1gosqDTRU YD/Im1C6NFnFuWyx/TB8Eg3QHiA4P0puTGcXJgVE7cK5SpS26RfFQJjb0VOzAjGD azdb+u5vAWoStbSE6leMoO0mJcntHY92NJ4+73pZN+Jj3Txpt4gZCL6C2kS6N/n+ p9RMmDChOGq2j3usnY7fwdo7BcSeKBQzrcKuEzK8J6N0Y2RXmcvmMJR4zkLpGfEi Wdljdv9qvZr/NPmJpiZmIbvfqTMkEp21n0OD48OO+IKZE9THtem5koj3fnLyIrC8 /sucD/h2ogdFXA== X-ME-Sender: X-Sasl-enc: w1UDmBhBu8NEMf4xdlaLxsjWuuNf5c4nh4e1zNiQ9ZGJ 1497476178 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 0971E7E970; Wed, 14 Jun 2017 17:36:18 -0400 (EDT) Subject: Re: WIP: Data at rest encryption To: Stephen Frost References: <20170613170132.GH3151@tamriel.snowman.net> <20170613171356.GG13873@momjian.us> <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> Cc: Bruce Momjian , Ants Aasma , Robert Haas , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <9cea5160-c64b-0b9e-d4b7-c57db2a696be@2ndquadrant.com> Date: Wed, 14 Jun 2017 17:36:16 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170613221104.GT3151@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 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: > > ---------------------------------- > Usage > ===== > > Set up database like so: > > (read -sp "Postgres passphrase: " PGENCRYPTIONKEY; echo; > export PGENCRYPTIONKEY > initdb -k -K pgcrypto $PGDATA ) > > Start PostgreSQL: > > (read -sp "Postgres passphrase: " PGENCRYPTIONKEY; echo; > export PGENCRYPTIONKEY > postgres $PGDATA ) > ---------------------------------- Relying on environment variables is clearly pretty crappy. So if that's the proposal, then I think it needs to be better. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers