Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuymK-0004gB-3v for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Dec 2020 14:18:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuymI-0005Pl-3y for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Dec 2020 14:18:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuymH-0005Pe-Ro for pgsql-hackers@lists.postgresql.org; Thu, 31 Dec 2020 14:18:09 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuymF-0004Ze-4R for pgsql-hackers@postgresql.org; Thu, 31 Dec 2020 14:18:08 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5C97A5F799; Thu, 31 Dec 2020 09:18:05 -0500 (EST) Date: Thu, 31 Dec 2020 09:18:05 -0500 From: Stephen Frost To: Bruce Momjian Cc: Fabien COELHO , Alastair Turner , Michael Paquier , PostgreSQL-development , Masahiko Sawada Subject: Re: Proposed patch for key managment Message-ID: <20201231141805.GJ27507@tamriel.snowman.net> References: <20201216213200.GS16415@tamriel.snowman.net> <20201216224331.GV16415@tamriel.snowman.net> <20201218213624.GG16415@tamriel.snowman.net> <20201227172526.GB17037@momjian.us> <20201230234933.GI27507@tamriel.snowman.net> <20201231013536.GD22199@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="74hf9PSALuoWtOh/" Content-Disposition: inline In-Reply-To: <20201231013536.GD22199@momjian.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --74hf9PSALuoWtOh/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Bruce Momjian (bruce@momjian.us) wrote: > On Wed, Dec 30, 2020 at 06:49:34PM -0500, Stephen Frost wrote: > > The API to fetch the KEK doesn't care at all about where it's stored or > > how it's derived or anything like that. There's a relatively small > > change which could be made to have PG request all of the keys that it'll > > need on startup, if we want to go there as has been suggested elsewhere, > > but even if we do that, PG needs to be able to do that itself too, > > otherwise it's not a complete capability and there seems little point in > > doing something that's just a pass-thru to something else and isn't able > > to really be used. >=20 > Right now, the script returns a cluster key (KEK), and during initdb the > server generates data encryption keys and wraps them with the KEK.=20 > During server start, the server validates the KEK and decrypts the data > keys. pg_alterckey allows changing the KEK. Right- all of those are really necessary things for PG to have a useful implementation. > I think Fabien is saying this all should _only_ be done using external > tools --- that's what I don't agree with. I also don't agree that everything should be external. We effectively have that today and it certainly doesn't get us any closer to having a solution in PG, a point which we are frequently pointed to as a reason why certain, entirely reasonable, use-cases can't be satisfied with PG. Thanks, Stephen --74hf9PSALuoWtOh/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJf7d2cAAoJEO1sijiDR2RVS9kP/iNglyU+FCJqc1l8HjeQtmH4 azqFPEL5jviIorlJkW8JcJ2fx66H8UZYwBmS982evappKRD5H71cM13OkabwUmFr 6TQNnftzy7SlbMmaAANX0HnofkcBJ/WoNWgxNA7KaASzYVCT4rlMvTTlo5END3wn fEYlx2yyMRcRHzUjcTvjsZVWybcY1Y8AUJduZsvNK4e+0Rpn/DTxJO3OOYYIFWbk 2vDmsdyuFybnDPUAV6dsjxVjVDrtDOg6u5U5wN/i8ZIj2t3vohBgOhPHPmzmFc16 OQMrSk+JgzYmIW6CDAvey57ezdJrrFMEpWEMQDpahD0FRmqRK4qUrx/PI+DahClZ icXTpWYy7vFqEfbiSmrRKXUA5CMm6IHcBuLa+ay0jIthnSsGzx1ttw3Utibk/oWv VGiV7DR9irQ+Up1ArrRBTE81dP28Vw9eYf/ZYKIB2c0quz+y/kk4ndfzLENxlkRv BPrmREigGcrZJ9TGn3TUDRXBHJZwnikZfxpeF7/Dpn2ZHIMQo6YoaKckgVTSK8PT kCqJPhQUgItk9rQCZt+xmjHXpfVok73yxh2weHB3w6FXV9eawzx21zPjJDFxJNj0 i/j/3XIHm9hMYNt5Re7SCKhYzDe0XR/nMZL7OvTE1UVMrU9tlPnms7ZBV5Zm18Gi /38LJmfTjor0/ur8R8o8 =fCk+ -----END PGP SIGNATURE----- --74hf9PSALuoWtOh/--