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 1v9kGo-007KcA-Ml for pgsql-general@arkaria.postgresql.org; Fri, 17 Oct 2025 13:13:22 +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 1v9kGn-002ci2-Ky for pgsql-general@arkaria.postgresql.org; Fri, 17 Oct 2025 13:13:20 +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 1v9kGn-002chu-AI for pgsql-general@lists.postgresql.org; Fri, 17 Oct 2025 13:13:20 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9kGk-002HzO-1h for pgsql-general@postgresql.org; Fri, 17 Oct 2025 13:13:19 +0000 Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-43090377002so9306675ab.0 for ; Fri, 17 Oct 2025 06:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760706798; x=1761311598; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZYYEdssCIQTP4lloSOw+b5VUwVA6boYhXgVuBgm35Jc=; b=DcSY3CNxq3nRxusoMrP7c0ELNt6rT0FPzYDjqgFLtGNaYzdUR+gDycpyXodRiN6CZM 0JWpUhbEZsqX26vu/k4LdNpXTQHoL4Ycoosxu8G7wdlL2C1aY+a5iACwrC3P5I68V2Kt s2fins5Xiyr6a4WsXst7hJbZMyP3iniVa4FAdHiLjYn7TuGXWSpKnt/rgbiLSbcR0uTR bovHit5595w5OsbOiDf0Bgw5CkZryUNAcdz1QJ4E65S09mCX7cJ6o90epBbGdhNHvm5h L6+bHPwT1teD60kC68Yo05B7l8wb5X+s6APHxc93REspFpaP1ydTOLsyR/SkEDz1qeag v59w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760706798; x=1761311598; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZYYEdssCIQTP4lloSOw+b5VUwVA6boYhXgVuBgm35Jc=; b=YPRmsEP2tkYboLuSQkX/tExfuTUSlW62clLeQqBmykbx+aBzsYYWhNNrieoLiygZUj ldBjDDVwK3OjvtjfIyfsBsQbxvckGJJIwmIwIiV/oKtqbSq/jCCX+S8B2jiyX6T09xQX +kK5fPAnQaBuxbs7I/fDn4N3H2g5sCEtU4L/w28s2tGg13+kgs1HaL4YrXQxqZLcdHAS BzWXuZdfUFvBUbDeV/oRq1xafCuD2hHLe32OHcYyPO0qEyJcRiCGnQ6s6yZEy/yQ+abL qet71tg4NgVR5HO/2TC0UgEuVMX5X44oYP379ZObzn4I70Z7kqWlp5/+AtW0vK+bYzHl nNLQ== X-Gm-Message-State: AOJu0YzMaVBS2mY/mG3Fl01m8pJdnOvAxQ1F9YLzIaR/HSrxYpbFzZyH xgU8ENJV3Rn691m6NGbUFnws382e+sQhzrjzdzzTcKlJVleR4tMpI9MSiAu/+48gIUdfWaquk+g wl7qwC8SB+t2/4hQcSzFpg6qXeqQ4zRNMj77W2RY= X-Gm-Gg: ASbGnctwZWzxd6c0kSnW2hxGnKmlQmytfQw3Z91TfvJSFtcgpLzfhKaPxlJtqd5v5Bb s/sdbjJnQ2dhbJU0IFqRkchjmMP8BZZJlsKRZEkg1CTBxITirtwhnyp4XfPdXUvHYIOGSFu2UqW ZvK8Unfj1W7I0p9MP0DHEaWeoFocmRCKmexvPQvEI2JaO5ALGwWqmmOqSHiNOYLFMoNsX8hdThG kOgJXnlGL13ZgZkpxZqorLorWlceWc/C/rfRG/CtdOG4+4alv82xVNlviH2hVbawGHHpQ1B+eV4 EsuXBMumRACwvJhDV8/zvqpiTkjs X-Google-Smtp-Source: AGHT+IFIm6V4e3uX3+M3Tdof4eSWj6yYr5z7YnqCRQumjf6dERRg9QLRZ9zpBKsdJ7QNniaezMJ13T/7FnKnMzOvn4k= X-Received: by 2002:a05:6e02:190c:b0:42f:9eb7:759b with SMTP id e9e14a558f8ab-430c5306894mr48857295ab.28.1760706797617; Fri, 17 Oct 2025 06:13:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Fri, 17 Oct 2025 09:12:42 -0400 X-Gm-Features: AS18NWA-xvMbzCPHNdxfBpPUtecsxVhHWFkTiEredTYpctCSgiIbQd2ES9X29is Message-ID: Subject: Re: Enquiry about TDE with PgSQL To: Ron Johnson Cc: pgsql-general Content-Type: multipart/alternative; boundary="00000000000039c86b06415a7f4b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000039c86b06415a7f4b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Oct 17, 2025 at 12:49=E2=80=AFAM 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 fo= r > 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. --=20 Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --00000000000039c86b06415a7f4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 17, 2025 at 12:49=E2=80=AFAM = Ron Johnson <ronljohnsonjr@gm= ail.com> wrote:

But filesystem encryption still means that va= lidly logged-in users see the unencrypted data.=C2=A0 That's great for = a laptop that might get stolen, or for drives that are discarded without be= ing wiped, but are no protection against hackers who want to exfiltrate you= r data.

I stand by my recommendation. If so= meone is logged in and has access to your data directory (e.g. is root or p= ostgres user), then they also have the TDE key or some easy way to bypass i= t.=C2=A0

TDE was added to SQL Server, with (to us, at least) m= inimally-noticed overhead.=C2=A0 Oracle has it, too, but I don't know t= he 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 mini= mal benefits other than "checking the box" of some security requi= rements document.

The bottom line is that requirements for= TDE are escalating, whether you like it or not, as Yet Another Layer Of De= fense 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 en= cryption could not.

--
Cheers,
Greg

--
Enterprise Postgres Software Products &am= p; Tech Support

--00000000000039c86b06415a7f4b--