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 1mxou7-0008I6-VZ for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Dec 2021 11:26:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxou6-0004JU-Kh for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Dec 2021 11:26:30 +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 1mxor3-0007uK-P9 for pgsql-hackers@lists.postgresql.org; Thu, 16 Dec 2021 11:23:21 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxoqz-0001iM-Q6 for pgsql-hackers@postgresql.org; Thu, 16 Dec 2021 11:23:21 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 43D985C0384; Thu, 16 Dec 2021 06:23:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 16 Dec 2021 06:23:14 -0500 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=HijfVLzgMaS7EHy/e9LStdkl69bZr1qGyCB1jcxCc Bo=; b=n4cka4IAUrNk0g0ZieKr9VfMouZmfBO0VFKs5Iite0p9pGbgbVCu92kUw 2H5VzwsFTRnM9vjsKOG1WmGeho5RHbOirrPpuqsEox5vpnm81zVoTadOMYZ4140G PaY3D8UnGJIaAoGc9GI/Qck8rHB9xt3gQ4+/3sc+2MjzI84DcljOcTsp//n/wbyW l8p76dRJY4CdibQGkRncKkt2El+0n48EGFp3by7XxLnckMXVX64HuQfBir479Gft lpr9oEl0Wzk3BlFSBcz2dGYYlMJvdqcbrt0YtasBKE+zWZrs6eUy7fF306/Y3UP9 Akc2dAm0LKwFkIuEJh4+J3lkSUowg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrleeggddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Dec 2021 06:23:12 -0500 (EST) Message-ID: Date: Thu, 16 Dec 2021 12:23:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Transparent column encryption Content-Language: en-US To: Greg Stark Cc: pgsql-hackers References: <89157929-c2b6-817b-6025-8e4b2d89d88f@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 16.12.21 05:47, Greg Stark wrote: >> In the server, the encrypted datums are stored in types called >> encryptedr and encryptedd (for randomized and deterministic >> encryption). These are essentially cousins of bytea. > > Does that mean someone could go in with psql and select out the data > without any keys and just get a raw bytea-like representation? That > seems like a natural and useful thing to be able to do. For example to > allow dumping a table and loading it elsewhere and transferring keys > through some other channel (perhaps only as needed). Yes to all of that.