Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
От
Bruce Momjian
Тема
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Дата
Msg-id
20180621141454.GA24547@momjian.us
Ответ на
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) (Nico Williams)
Список
Дерево обсуждения
[Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Aleksander Alekseev <a.alekseev@postgrespro.ru>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) andKey Management Service (KMS) "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Alvaro Hernandez <aht@ongres.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) Antonin Houska <ah@cybertec.at>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) andKey Management Service (KMS) "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Nico Williams <nico@cryptonector.com>
RE: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Nico Williams <nico@cryptonector.com>
Re: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Nico Williams <nico@cryptonector.com>
Re: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: Threat models for DB cryptography (Re: [Proposal] Table-levelTransparent Data Encryption (TDE) and Key) Management Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Alvaro Hernandez <aht@ongres.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) Tom Lane <tgl@sss.pgh.pa.us>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Ibrar Ahmed <ibrar.ahmad@gmail.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Jeremy Schneider <schnjere@amazon.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Jeremy Schneider <schnjere@amazon.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) andKey Management Service (KMS) Laurenz Albe <laurenz.albe@cybertec.at>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Chris Howard <chris@elfpen.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) Antonin Houska <ah@cybertec.at>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) Antonin Houska <ah@cybertec.at>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Robert Haas <robertmhaas@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) PostgreSQL - Hans-Jürgen Schönig<postgres@cybertec.at>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Nico Williams <nico@cryptonector.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Bruce Momjian <bruce@momjian.us>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Joe Conway <mail@joeconway.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Tomas Vondra <tomas.vondra@2ndquadrant.com>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) "Moon, Insung" <Moon_Insung_i3@lab.ntt.co.jp>
RE: [Proposal] Table-level Transparent Data Encryption (TDE) andKey Management Service (KMS) "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) Masahiko Sawada <sawada.mshk@gmail.com>
On Wed, Jun 20, 2018 at 04:57:18PM -0500, Nico Williams wrote:
> On Wed, Jun 20, 2018 at 05:16:46PM -0400, Bruce Momjian wrote:
> > On Mon, Jun 18, 2018 at 12:29:57PM -0500, Nico Williams wrote:
> > > Note that unless the pg_catalog is protected against manipulation by
> > > remote storage, then TDE for user tables might be possible to
> > > compromise. Like so: the attacker manipulates the pg_catalog to
> > > escalate privelege in order to obtain the TDE keys. This argues for
> > > full database encryption, not just specific tables or columns. But
> > > again, this is for the threat model where the storage is the threat.
> >
> > Yes, one big problem with per-column encryption is that administrators
> > can silently delete data, though they can't add or modify it.
>
> They can also re-add ("replay") deleted values; this can only be
> defeated by also binding TX IDs or alike in the ciphertext. And if you
Yes, and if you bind TX IDs so you can detect loss, you effectively have
to serialize every transaction, which is going to kill performance.
> don't bind the encrypted values to the PKs then they can add any value
> they've seen to different rows.
Yep, you kind of have to add the primary key into the encrypted value.
> One can protect to some degree agains replay and reuse attacks, but
> protecting against silent deletion is much harder. Protecting against
> the rows (or the entire DB) being restored at a past point in time is
> even harder -- you quickly end up wanting Merkle hash/MAC trees and key
> rotation, but this complicates everything and is performance killing.
Yep.
> > > I think any threat model where DBAs are not the threat is just not that
> > > interesting to address with crypto within postgres itself...
> >
> > Yes, but in my analysis the only solution there is client-side
> > encryption:
>
> For which threat model?
>
> For threat models where the DBAs are not the threat there's no need for
> client-side encryption: just encrypt the storage at the postgres
> instance (with encrypting device drivers or -preferably- filesystems).
Agreed.
> For threat models where the DBAs are the threat then yes, client-side
> encryption works (or server-side encryption to public keys), but you
> must still bind the encrypted values to the primary keys, and you must
> provide integrity protection for as much data as possible -- see above.
Yep.
> Client-side crypto is hard to do well and still get decent performance.
> So on the whole I think that crypto is a poor fit for the DBAs-are-the-
> threat threat model. It's better to reduce the number of DBAs/sysadmins
> and audit all privileged (and, for good measure, unprivileged) access.
Yeah, kind of. There is the value of preventing accidental viewing of
the data by the DBA, and of course WAL and backup encryption are nice.
--
Bruce Momjian http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
В списке pgsql-hackers по дате отправления
От: Don Seiler
Дата: