All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: "Michael Kjörling" <michael@kjorling.se>, dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS FAQ separate for LUKS1/LUKS2, or combined? Was: cryptsetup Yubikey challenge-response support
Date: Tue, 14 Apr 2020 12:56:26 +0200	[thread overview]
Message-ID: <437edf2f-b68b-e904-bc28-f9a0e8021a79@gmail.com> (raw)
In-Reply-To: <9d06b2b9-96c5-45e7-8c1f-631e65db8bcd@localhost>

On 12/04/2020 15:00, Michael Kjörling wrote:
> On 12 Apr 2020 00:23 +0200, from arno@wagner.name (Arno Wagner):
>> @everybody: What are the preferences: Separate LUKS 2 FAQ or 
>> section in the existing FAQ? 
> 
> LUKS is LUKS. Most of the concepts are similar. Most of the problems
> LUKS (1 and 2) solve are similar.> 
> Yes, some _answers_ might well be different for LUKS 1 or LUKS 2. But
> the _questions_ should be mostly the same, and _why_ to do one thing
> or another should be similar. The only obvious exception to that which
> I can think of is where something is _possible_ in LUKS 2, but simply
> not possible in LUKS 1, _and_ that would be worthy of inclusion in a
> FAQ in the first place.

Yes, and in fact we designed LUKS2 to be compatible as possible
and it is described in LUKS2 doc, referenced from FAQ already).

So, there should be only one FAQ.
(And for upstream, I am not going to support any doc split in
released archive. That would be confusing to users. They should
not care about version, unless they use some new feature.)

What we need to do is to use only one FAQ copy (currently there is text
version in main repo and primary version in wiki git), the wiki version
is already in markdown format, so perhaps I can move it to the
main git repo and this allows easy contributions through merge requests.
(The same problem applies for README, it is confusing to have two versions.)

(Unfortunately Gitlab does not allow to open merge request to wiki pages,
so to be open to direct contributions, keeping it in main repo is simpler.)

> There's already parts in the FAQ that discuss dm-crypt, RAM,
> passphrases, erasing data, and so on; so there's ample precedent that
> the FAQ already covers more than LUKS (1) proper.

And some of these need update too, for example use of kernel keyring
makes all scripts that use key in mapping table obsolete.
(This is a dm-crypt feature, not LUKS2 one.)
 
> Therefore, in the name of consistency and ease of reading, I would
> suggest to keep it all in one document, _but_ clearly mark the parts
> that only apply to one or the other. (This could be whole Q/A tuples,
> or just a portion such as an example command line.) Also perhaps add
> something near the top for how to tell based on an existing container,
> ideally irrespective of how the distribution does things, whether a
> LUKS container is LUKS 1 or LUKS 2.

I do not think is so big problem.

LUKS2 format allows many optional features (authenticated encryption,
reencryption, token metadata store), but these should be in separate
chapter anyway.

The basic functionality is exactly the same as LUKS1, just it allows more
flexibility (more keyslot, other PBKDF etc).

Also, if you anyone think there missing anything in LUKS2 doc, please
be exact and report it.
GRUB2 just implemented LUKS2 support using that doc, so I think
it works as implementation doc.
(And the cryptography is exactly the same as in LUKS1, except Argon2 PBKDF.)

Milan

  reply	other threads:[~2020-04-14 10:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <233063842.2717340.1586366160963.ref@mail.yahoo.com>
2020-04-08 17:16 ` [dm-crypt] cryptsetup Yubikey challenge-response support JT Morée
2020-04-10  3:01   ` Dan Farrell
2020-04-11 14:49     ` JT Moree
2020-04-11 16:09       ` Milan Broz
2020-04-11 19:56         ` Arno Wagner
2020-04-11 21:05           ` JT Moree
2020-04-11 22:23             ` Arno Wagner
2020-04-12 13:00               ` [dm-crypt] LUKS FAQ separate for LUKS1/LUKS2, or combined? Was: " Michael Kjörling
2020-04-14 10:56                 ` Milan Broz [this message]
2020-04-15 22:25                   ` Arno Wagner
2020-04-14 11:35           ` [dm-crypt] " Milan Broz
2020-04-15 21:47             ` Arno Wagner
2020-04-15  6:37         ` Dan Farrell
2020-04-15  6:48           ` Dan Farrell
2020-04-15  7:08             ` Dan Farrell
2020-04-15 19:38           ` Milan Broz
2020-04-16  2:03             ` Dan Farrell
2020-04-16 10:36               ` Milan Broz

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=437edf2f-b68b-e904-bc28-f9a0e8021a79@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=michael@kjorling.se \
    /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.