From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Or Ozeri <ORO@il.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
Danny Harnik <DANNYH@il.ibm.com>,
"idryomov@gmail.com" <idryomov@gmail.com>
Subject: Re: [PATCH v3] block/rbd: Add support for layered encryption
Date: Wed, 16 Nov 2022 11:15:07 +0000 [thread overview]
Message-ID: <Y3TGO6AEAAOux8FH@redhat.com> (raw)
In-Reply-To: <Y3S6OGqGFovAyRWw@redhat.com>
On Wed, Nov 16, 2022 at 10:23:52AM +0000, Daniel P. Berrangé wrote:
> On Wed, Nov 16, 2022 at 09:03:31AM +0000, Or Ozeri wrote:
> > > -----Original Message-----
> > > From: Daniel P. Berrangé <berrange@redhat.com>
> > > Sent: 15 November 2022 19:47
> > > To: Or Ozeri <ORO@il.ibm.com>
> > > Cc: qemu-devel@nongnu.org; qemu-block@nongnu.org; Danny Harnik
> > > <DANNYH@il.ibm.com>; idryomov@gmail.com
> > > Subject: [EXTERNAL] Re: [PATCH v3] block/rbd: Add support for layered
> > > encryption
> > >
> > > AFAICT, supporting layered encryption shouldn't require anything other than
> > > the 'parent' addition.
> > >
> >
> > Since the layered encryption API is new in librbd, we don't have to
> > support "luks" and "luks2" at all.
> > In librbd we are actually deprecating the use of "luks" and "luks2",
> > and instead ask users to use "luks-any".
>
> Deprecating that is a bad idea. The security characteristics and
> feature set of LUKSv1 and LUKSv2 can be quite different. If a mgmt
> app is expecting the volume to be protected with LUKSv2, it should
> be stating that explicitly and not permit a silent downgrade if
> the volume was unexpectedly using LUKSv1.
>
> > If we don't add "luks-any" here, we will need to implement
> > explicit cases for "luks" and "luks2" in the qemu_rbd_encryption_load2.
> > This looks like a kind of wasteful coding that won't be actually used
> > by users of the rbd driver in qemu.
>
> It isn't wasteful - supporting the formats explicitly is desirable
> to prevent format downgrades.
>
> > Anyhow, we need the "luks-any" option for our use-case, so if you
> > insist, I will first submit a patch to add "luks-any", before this
> > patch.
>
> I'm pretty wary of any kind of automatic encryption format detection
> in QEMU. The automatic block driver format probing has been a long
> standing source of CVEs in QEMU and every single mgmt app above QEMU.
Having said that, normal linux LUKS tools like cryptsetup or systemd
LUKS integration will auto-detect luks1 vs luks2. All cryptsetup
commands also have an option to explicitly specify the format version.
So with that precedent I guess it is ok to add 'luks-any'.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-11-16 11:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-15 12:25 [PATCH v3] block/rbd: Add support for layered encryption Or Ozeri
2022-11-15 17:34 ` Ilya Dryomov
2022-11-15 17:46 ` Daniel P. Berrangé
2022-11-16 9:03 ` Or Ozeri
2022-11-16 10:23 ` Daniel P. Berrangé
2022-11-16 11:15 ` Daniel P. Berrangé [this message]
2022-11-16 17:02 ` Ilya Dryomov
2022-11-17 12:42 ` Or Ozeri
2022-11-17 12:48 ` Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3TGO6AEAAOux8FH@redhat.com \
--to=berrange@redhat.com \
--cc=DANNYH@il.ibm.com \
--cc=ORO@il.ibm.com \
--cc=idryomov@gmail.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.