Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
От
Tomas Vondra
Тема
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Дата
Msg-id
20190715204434.apmugj5ehl4edkh7@development
Ответ на
Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS) (Bruce Momjian)
Список
Дерево обсуждения
[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 Mon, Jul 15, 2019 at 03:55:38PM -0400, Bruce Momjian wrote: >On Mon, Jul 15, 2019 at 03:47:59AM +0200, Tomas Vondra wrote: >> On Sun, Jul 14, 2019 at 12:13:45PM -0400, Joe Conway wrote: >> > We could check the CRC prior to encryption and throw an ERROR if it is >> > not correct. After decryption we can check it again -- if it no longer >> > matches we would know there way a corruption or change of the >> > ciphertext, no? >> > >> > Hmm, I guess the entire page of ciphertext could be faked including CRC, >> > so this would only really cover corruption, not an intentional change if >> > it were done properly. >> > >> >> I don't think any of the schemes discussed here provides protection >> against this sort of replay attacks (i.e. replacing a page with an older >> copy of the page). That would probably require having some global >> checksum or something like that. > >Uh, I think the only thing we could do is to add the page number into >the nonce so the page would have to be replaced in the same place in the >table, but it hardly seems worth it. > >> > > Which seems pretty annoying, because then the checksums won't verify >> > > data as sent to the storage system, and verify checksums would require >> > > access to all keys (how do you do that in offline mode?). >> > >> > Given the scheme above I don't see why that would be an issue. The keys >> > are all accessible via the MDEK, which is in turn available via the KEK. >> > >> >> I just don't know how the offline tools will access the KMS to get the >> keys. But maybe that's not an issue. But even then I think it's kinda >> against the idea of checksums that they would not checksum what was sent >> to the storage system. > >Oh, I see your point now. pgchecksum will look at the page and think it >is corrupt. It would need access to the keys to verify it, and only for >whole-cluster encryption or if there is a per-page flag (it can't easily >do system table lookups). > >The crazy seems more sane now --- "encrypt the page with CRC contents as >zero" (which we probably already do to compute the CRC), then compute >the CRC, and modify the page CRC. > Huh? So you want to 1) set CRC to 0 2) encrypt the page 3) compute CRC 4) set CRC to value computed in (3) 5) encrypt the page again That seems pretty awful from performance POV, and it does not really solve much as we'd still need to decrypt the page while verifying the checksums (because the CRC is in the page header, which is encrypted). regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления
От: Fabien COELHO
Дата: