Re: storing an explicit nonce

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: storing an explicit nonce
Дата
в 23:54:22
Msg-id
20210525235421.GQ20766@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Thomas Munro <thomas.munro@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Robert Haas <robertmhaas@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Tom Kincaid <tomjohnkincaid@gmail.com>
Re: Key management with tests Amit Kapila <amit.kapila16@gmail.com>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Tom Kincaid <tomjohnkincaid@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Robert Haas <robertmhaas@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Tom Kincaid <tomjohnkincaid@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Masahiko Sawada <sawada.mshk@gmail.com>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Tom Kincaid <tomjohnkincaid@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests "Moon, Insung" <tsukiwamoon.pgsql@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Tom Kincaid <tomjohnkincaid@gmail.com>
Re: Key management with tests Robert Haas <robertmhaas@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Michael Paquier <michael@paquier.xyz>
Re: Key management with tests Robert Haas <robertmhaas@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Robert Haas <robertmhaas@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests "David G. Johnston" <david.g.johnston@gmail.com>
Re: Key management with tests Masahiko Sawada <sawada.mshk@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Neil Chen <carpenter.nail.cz@gmail.com>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Neil Chen <carpenter.nail.cz@gmail.com>
Re: Key management with tests Masahiko Sawada <sawada.mshk@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Masahiko Sawada <sawada.mshk@gmail.com>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Stephen Frost <sfrost@snowman.net>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Bruce Momjian <bruce@momjian.us>
Re: Key management with tests Andres Freund <andres@anarazel.de>
Greetings,

* Bruce Momjian (bruce@momjian.us) wrote:
> On Tue, May 25, 2021 at 05:25:36PM -0400, Stephen Frost wrote:
> > * Bruce Momjian (bruce@momjian.us) wrote:
> > > On Tue, May 25, 2021 at 05:15:55PM -0400, Stephen Frost wrote:
> > > > > We already discussed that there are too many other ways to break system
> > > > > integrity that are not encrypted/integrity-checked, e.g., changes to
> > > > > clog.  Do you disagree?
> > > > 
> > > > We had agreed that this wasn't something that was strictly required in
> > > > the first version and I continue to agree with that.  On the other hand,
> > > > if we decide that we ultimately need to use an independent nonce and
> > > > further that we can make room in the special space for it, then it's
> > > > trivial to also include the tag and we absolutely should (or make it
> > > > optional to do so) in that case.
> > > 
> > > Well, if we can't really say the data has integrity, what does the
> > > validation bytes accomplish?  And if are going to encrypt everything
> > > that would allow integrity, we need to encrypt almost the entire file
> > > system.
> > 
> > I'm not following this logic.  The primary data would be guaranteed to
> > be unchanged and there is absolutely value in that, even if the metadata
> > is not guaranteed to be unmolested.  Security always comes with a lot of
> > tradeoffs.  RLS doesn't prevent certain side-channel attacks but it
> > still is extremely useful in a great many cases.
> 
> Well, changing the clog would change how the integrity-protected data is
> interpreted, so I don't see much value in it.

I hate to have to say it, but no, it's simply not correct to presume
that the ability to maniuplate any data means that it's not valuable to
protect anything.  Further, while clog could be manipulated today,
hopefully one day it would become quite difficult to do so.  I'm not
asking for that today, or to be in v15, but if we do come down on the
side of making space in the special area for a nonce, then, even if you
don't feel it's useful, I would strongly argue to have an option for
space to also exist for a tag to go.

Even if your claim that it's useless until clog is addressed were
correct, which I dispute, surely if we do one day have such validation
of clog we would also need a tag in the regular user pages, so why not
add the option while it's easy to do and let users decide if it's useful
to them or not?

This does presume that we ultimately agree on the approach which
involves the special area, of course.

Thanks,

Stephen
В списке pgsql-hackers по дате отправления
От: Stephen Frost
Дата:
Сообщение: Re: storing an explicit nonce
От: Stephen Frost
Дата:
Сообщение: Re: storing an explicit nonce
FAQ