DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] passkey over network
Date: Mon, 1 Jul 2013 20:53:54 +0200	[thread overview]
Message-ID: <20130701185354.GB15476@tansi.org> (raw)
In-Reply-To: <CAFnMBaQAFDmWa36gYDFr6D5XX2oYtPyNEWsp_3Shq28Kb4S4Bw@mail.gmail.com>

On Mon, Jul 01, 2013 at 12:56:40PM -0400, .. ink .. wrote:
> > That means this whole scheme is about as secure as a locally stored
> > passphrase, i.e. not secure at all. The only benefit a remotely
> > stored passphrase has, is that if you take down the remote server
> > _before_ the local machine is compromised and when the local volume
> > is _not_ decrypted, you can deny the unlock. If the local machine
> > is compromised while the remote server is running, or while the
> > encrypted volume is mounted, the attacker gets everything. If
> > the local machine is not compromised, you do not even need encryption
> > to be secure.
> >
> > With that, I have the impression that the security model of this
> > is fundamentally broken on a conceptual level.
> >
> >
> if you have one static host that gets keys from one static server,then the
> passwordless ssh method seem obvious but its pointlessness will shortly be
> realized. To access the key from a different host machine,the private key
> must be sent to the different host and the server,through other means,must
> be informed of the new host and hence it seem pointless since the private
> key could instead be used as a passphrase to unlock the volume or to unlock
> a key protected keyfile.

Well, yes. As I said, just as secure as a locally stored passphrase, 
i.e. not secure at all. ssh was just my first idea to get around
the shorcommings of the webserver-based approach. But then I realized
there is a far more fundamental problem.
 
> There is another reason why such a setup could be useful and that is
> convenience from centralization of keys.
> 
> I dont manage my luks keys individually,i have them in kwallet and access
> them through it.I have a bunch of luks volumes and i dont need to remember
> their individual keys as all i need is the key to unlock kwallet.
> 
> His use case could be the same,only he want to access a wallet that is not
> on a local machine,but on a remote one so that he could smoothly switch
> between devices he own and have access to his volumes keys through a single
> key.

Yes, but instead of a passphrase to unlock, he wants to use a
device-supplied UUID (that hence is stored on the device on plain
somewhere) and that is (as far as I can see at this time) basically 
the same as storing the passphrase locally in the first place as 
long as the remote server is available.

If he would give a passphrase manually each time he requests
a passphrase for a LUKS device, that would be something different.

Arno
-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
There are two ways of constructing a software design: One way is to make it
so simple that there are obviously no deficiencies, and the other way is to
make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.  --Tony Hoare

  reply	other threads:[~2013-07-01 18:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-30 22:24 [dm-crypt] passkey over network Roberto Spadim
2013-06-30 22:55 ` .. ink ..
2013-06-30 23:53   ` Roberto Spadim
2013-07-01 10:54     ` Alex Elsayed
2013-07-01 15:44       ` Arno Wagner
2013-07-01 16:56         ` .. ink ..
2013-07-01 18:53           ` Arno Wagner [this message]
2013-07-01 19:41         ` Alex Elsayed
2013-06-30 23:57 ` Arno Wagner

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=20130701185354.GB15476@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox