Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKqVD-0008W3-Qu for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:25:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKqVD-0001Kl-DM for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 18:25:19 +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 1dKqTf-0006b0-Se for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 18:23:43 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKqTc-0000nS-5W for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 18:23:43 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4C2815F795; Tue, 13 Jun 2017 14:23:39 -0400 (EDT) Date: Tue, 13 Jun 2017 14:23:39 -0400 From: Stephen Frost To: Bruce Momjian Cc: Peter Eisentraut , Ants Aasma , Robert Haas , PostgreSQL-development Subject: Re: WIP: Data at rest encryption Message-ID: <20170613182339.GP3151@tamriel.snowman.net> References: <20170613132416.GD3151@tamriel.snowman.net> <20170613150421.GE3151@tamriel.snowman.net> <20170613160434.GC13873@momjian.us> <20170613162301.GF3151@tamriel.snowman.net> <20170613164442.GD13873@momjian.us> <20170613170132.GH3151@tamriel.snowman.net> <20170613171356.GG13873@momjian.us> <20170613172459.GL3151@tamriel.snowman.net> <20170613174329.GK13873@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mNva3K8mUQuf8qCe" Content-Disposition: inline In-Reply-To: <20170613174329.GK13873@momjian.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-117-generic (x86_64) X-Uptime: 14:12:08 up 35 days, 18:45, 15 users, load average: 0.13, 0.20, 0.18 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 --mNva3K8mUQuf8qCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Bruce, * Bruce Momjian (bruce@momjian.us) wrote: > On Tue, Jun 13, 2017 at 01:25:00PM -0400, Stephen Frost wrote: > > > I think the big win of Postgres doing the encryption is that the > > > user-visible file system is no longer a target (assuming OS permissio= ns > > > are bypassed), while for file system encryption it is the storage dev= ice > > > that is encrypted. > >=20 > > If OS permissions are bypassed then the encryption isn't going to help > > because the attacker can just access shared memory. > >=20 > > The big wins for doing the encryption in PostgreSQL are, as Robert and I > > have both mentioned on this thread already, that it provides > > data-at-rest encryption in an easier to deploy fashion which will work > > the same across different systems and allows the encrypted cluster to be > > transferred more easily between systems. There are almsot certainly > > other wins from having PG do the encryption, but the above strikes me as > > the big ones, and those are certainly valuable enough on their own for > > us to seriously consider adding this capability. >=20 > Since you seem to be trying to shut down discussion, I will simply say I > am unimpressed that this use-case is sufficient justification to add the > feature. I'm not trying to shut down discussion, I'm simply pointing out where this feature will be helpful and where it won't be. If there's a way to make it better and able to address an attack where the OS permission system is bypassed, that'd be great, but I certainly don't know of any way to do that and we don't want to claim that this feature will protect against an attack vector that it won't. If the lack of that means you don't support the feature, that's unfortunate as it seems to imply, to me at least, that we'll never have any kind of encryption because there's no way for it to prevent attacks where the OS permission system is able to be bypassed. Thanks! Stephen --mNva3K8mUQuf8qCe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZQC2qAAoJEO1sijiDR2RVtPkP/RaZ731RdvPh6gx3YwBZMCIa pH+C3kUwMv07y5xPxtCasw9lCzPubEuxSlJ/R4Ea0BFiL8vYDg6pvZmv/uavVSRo wJmLsu47vQ6c2O3DL1UYYx0KoMwDQog165ySqR/jyJmkrWw+Viiv2qFxCln0K9t8 fedBuCNrZInflagKfKrs4nPxSQtg/1bo958+HvVNAAyKzBf217ZC7ETaiGrN0n4T oiIi8r126vArB3mCKqvCxEeEV1VdT34MW3zzrK1P/fM1BMCSY8/bfpKD5ogAJq1t JAG7tcDO3+l6ojkkuQGihGJ9F+4ovXeAkvhhzHNSkX5XP4hiO2GywhDYoV/TNywp 90g9pURNXVZWEX7hy/y1JH57X3e0Wezz1aN183VgIkXn9TlJqQMNhKrotWWm05IX hYtOOD8Zr+zYyHQK+Je28h050XoKORyy1RxMlZ3u7t/qJDzC3en+LHYnJJ56oJEY foY079Oz/9vdjQaagx6eaRQ9Sao4ep9dau9Av98y1vWQEWqT9kTFWhZK2ZF4xRmg 2bvZ89JuWMi8GEYCF8M+rALT/pYA4VeJNsD4CJCxonNv6pZEpt+RS4A9fEQplRBo AHPekBanHRdXocFX4Xyz01Xj0q4aCKvPxmzSgw2Xba2UOfLe6mBLkyhhy4zarYbx zC/ljO7aP0lwrm+WNKx6 =B6/4 -----END PGP SIGNATURE----- --mNva3K8mUQuf8qCe--