Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9l88-007im9-NV for pgsql-general@arkaria.postgresql.org; Fri, 17 Oct 2025 14:08:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9l87-002ubP-EO for pgsql-general@arkaria.postgresql.org; Fri, 17 Oct 2025 14:08:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9l87-002ubB-2s for pgsql-general@lists.postgresql.org; Fri, 17 Oct 2025 14:08:26 +0000 Received: from connect.ultra-secure.de ([88.198.71.201]) by makus.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1v9l83-002IOA-1j for pgsql-general@postgresql.org; Fri, 17 Oct 2025 14:08:25 +0000 Received: (Haraka outbound); Fri, 17 Oct 2025 16:08:21 +0200 Authentication-Results: connect.ultra-secure.de; auth=pass (login); spf=softfail smtp.mailfrom=ultra-secure.de Received-SPF: SoftFail (connect.ultra-secure.de: domain of ultra-secure.de does not designate 127.0.0.10 as permitted sender) receiver=connect.ultra-secure.de; identity=mailfrom; client-ip=127.0.0.10; helo=connect.ultra-secure.de; envelope-from= Received: from connect.ultra-secure.de (webmail [127.0.0.10]) by connect.ultra-secure.de (Haraka/2.6.2-toaster) with ESMTPSA id D48C09F8-28E8-4951-A5B9-9CA5BA9F65F6.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=AES256-SHA verify=NO); Fri, 17 Oct 2025 16:08:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 17 Oct 2025 16:08:14 +0200 From: rainer@ultra-secure.de To: Greg Sabino Mullane Cc: Ron Johnson , pgsql-general Subject: Re: Enquiry about TDE with PgSQL In-Reply-To: References: Message-ID: <2945566374f0a3698e3794ac16632dd8@ultra-secure.de> X-Sender: rainer@ultra-secure.de User-Agent: Roundcube Webmail/1.2.0 X-Haraka-GeoIP: --, , NaNkm X-Haraka-GeoIP-Received: X-Haraka-p0f: os="undefined undefined" link_type="undefined" distance=undefined total_conn=undefined shared_ip=Y X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on spamassassin X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Haraka-Karma: score: 6, good: 114, bad: 0, connections: 114, history: 114, pass:all_good, relaying List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am 2025-10-17 15:12, schrieb Greg Sabino Mullane: > On Fri, Oct 17, 2025 at 12:49 AM Ron Johnson > wrote: > >> But filesystem encryption still means that validly logged-in users >> see the unencrypted data. That's great for a laptop that might get >> stolen, or for drives that are discarded without being wiped, but >> are no protection against hackers who want to exfiltrate your data. > > I stand by my recommendation. If someone is logged in and has access > to your data directory (e.g. is root or postgres user), then they also > have the TDE key or some easy way to bypass it. > >> TDE was added to SQL Server, with (to us, at least) >> minimally-noticed overhead. Oracle has it, too, but I don't know >> the details. >> The bottom line is that requirements for TDE are escalating, whether >> you like it or not > > I'm not arguing against putting TDE in Postgres - indeed, I am all for > that. But it's a very tricky thing to do technically, with minimal > benefits other than "checking the box" of some security requirements > document. > >> The bottom line is that requirements for TDE are escalating, whether >> you like it or not, as Yet Another Layer Of Defense against hackers >> exfiltrating data, and then threatening to leak it to the public. > > I'd love to see a real-world example where TDE would have saved > someone but disk encryption could not. At least with Oracle and TDE, the rman backups are encrypted, too. So, you cannot just download the dumps from a file-share and import them somewhere else (or if you get hold of the tapes, use those to restore the files). It's not really about protecting the files from a hacker but from a person inside the organization who wants to sell the data. TDE really only (IMHO) makes sense when you also have a HSM. Now, I've seen a case where a customer had Oracle + Dataguard + TDE + HSM. The thing is, you rarely interact with the HSM normally. So, it's getting a bit hazy in that department when you have to add a new secret...plus, while Oracle and the HSM vendor will happily license you the feature, they will happily point their fingers at each other in case a problem arrives. In this case, the HSM was wiped clear of all the keys in there, in an attempt to add a new key. Oracle closed the wallets and the database was offline. Dang! Now, you had fix figures worth of hardware doing exactly nothing. Due to incredibly lucky circumstances, it was possible to recover the database without data loss. So, with TDE, you really need to be sure you actually know what you're doing.