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 1kdGZk-0002zI-9c for pgsql-general@arkaria.postgresql.org; Thu, 12 Nov 2020 17:40:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdGZj-0006Rm-7S for pgsql-general@arkaria.postgresql.org; Thu, 12 Nov 2020 17:39:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdGZj-0006Rf-03 for pgsql-general@lists.postgresql.org; Thu, 12 Nov 2020 17:39:59 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdGZg-0003Cs-KO for pgsql-general@lists.postgresql.org; Thu, 12 Nov 2020 17:39:58 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kdGZf-0006Lz-CZ; Thu, 12 Nov 2020 12:39:55 -0500 Date: Thu, 12 Nov 2020 12:39:55 -0500 From: Bruce Momjian To: Saurav Sarkar Cc: "David G. Johnston" , PostgreSQL General Subject: Re: Encryption with customer provided key in a multi tenant Postgres JSONB DB Message-ID: <20201112173955.GA25594@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 12, 2020 at 11:57:27AM +0530, Saurav Sarkar wrote: > Hi David, > > Thanks for the reply. > > I just wanted to check if there is any possibility or any activity ongoing > which can enable database or fine granular level encryption in future. > > Probably then i can wait otherwise i have to move towards Client Side > encryption as you mentioned. Postgres shared the same WAL files for all databases in a cluster, so the idea of having multiple keys for different users is very hard or impossible to implement. Client-side is much better for this use-case. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee