Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCTcm-0006tD-WE for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 15:18:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCTcm-0005rw-Iv for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 15:18:00 +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 1bCTcm-0005rq-5y for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 15:18:00 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCTci-0000Md-CB for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 15:17:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A8F8E21454; Mon, 13 Jun 2016 11:17:54 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 13 Jun 2016 11:17:54 -0400 DKIM-Signature: v=1; a=rsa-sha1; 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-sasl-enc:x-sasl-enc; s=smtpout; bh=jPNZUfeiMbCWgTI NWAS8Yxq5CGs=; b=BBQCYCfJAaZ59BlMGRkgRmtolUe6rWASUXKaOgR6IDXG4cU jGXsenO2KgCg5G9XStHt3s0jyjgWvGxe3RHIsHLxKpQTyXmA65EQiUoLTv6ArRZh QpXT5jOiAmSLto/6U8q16zgZy2UaBKfjakOcNr6HeNHzi8vWJ1gxmQRS/o34= X-Sasl-enc: peuvvQLR85CHdLJrb7rKb7nVh+bji5t8TapuoIrgeVTy 1465831074 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 57C44F29FB; Mon, 13 Jun 2016 11:17:54 -0400 (EDT) Subject: Re: WIP: Data at rest encryption To: Ants Aasma , Haribabu Kommi References: Cc: PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <29bd8421-d9f5-15fa-48b0-9ebc39ba8f94@2ndquadrant.com> Date: Mon, 13 Jun 2016 11:18:12 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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/12/16 3:13 AM, Ants Aasma wrote: >> 5. Instead of providing passphrase through environmental variable, >> > better to provide some options to pg_ctl etc. > That looks like it would be worse from a security perspective. > Integrating a passphrase prompt would be an option, but a way for > scripts to provide passphrases would still be needed. Environment variables and command-line options are visible to other processes on the machine, so neither of these approaches is really going to work. We would need some kind of integration with secure password-entry mechanisms, such as pinentry. Also note that all tools that work directly on the data directory would need password-entry and encryption/decryption support, including pg_basebackup, pg_controldata, pg_ctl, pg_receivexlog, pg_resetxlog, pg_rewind, pg_upgrade, pg_xlogdump. It seems that your implementation doesn't encrypt pg_control, thus avoiding some of that. But that doesn't seem right. -- 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