From: Paolo Bonzini <pbonzini@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Cc: kwolf@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org,
qemu-block@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH RFC 0/2] Limit support for encrypted images to qemu-img
Date: Thu, 12 Mar 2015 17:58:23 +0100 [thread overview]
Message-ID: <5501C5AF.8030202@redhat.com> (raw)
In-Reply-To: <20150310181337.GG14255@redhat.com>
On 10/03/2015 19:13, Daniel P. Berrange wrote:
> FWIW, I could see an improved interaction scheme working as follows
>
> First, introduce a new monitor command for setting named passwords,
>
> add_key mykey1 SECRETDATA
Or reuse object_add:
object_add secret,id=mykey1,secret=SECRETDATA
> Now, extend the blockdev_add so that you can provide key names
> by adding
>
> 'keyname': 'mykey1'
>
> as a parameter in the json args.
You can also add a command line option:
-secret id=mykey1,secret=SECRETDATA
or possibly:
-object secret,id=mykey1,secret=SECRETDATA
> For cold plug, have a command line arg '--add-keys prompt' to
> indicate the user should be prompted on TTY to enter keys,
This can even be the default if you have a human monitor open.
(Downside: the default human monitor, accessible with Ctrl-Alt-2, is not
easily discovered; same for Ctrl-A c for -nographic).
> For managed usage we could allow
> '--add-keys fd=FDNUM' and just read keys from the file descriptor.
For managed usage, options can also be passed via -readconfig like
[object "mykey1"]
type=secret
secret=SECRETDATA
Paolo
next prev parent reply other threads:[~2015-03-12 16:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 17:26 [Qemu-devel] [PATCH RFC 0/2] Limit support for encrypted images to qemu-img Markus Armbruster
2015-03-10 17:26 ` [Qemu-devel] [PATCH RFC 1/2] block: Limit opening of " Markus Armbruster
2015-03-10 18:15 ` Daniel P. Berrange
2015-03-11 8:57 ` Markus Armbruster
2015-03-10 18:21 ` Eric Blake
2015-03-11 10:14 ` Kevin Wolf
2015-03-11 11:59 ` Markus Armbruster
2015-03-11 12:22 ` Kevin Wolf
2015-03-10 17:26 ` [Qemu-devel] [PATCH RFC 2/2] block: Drop code supporting encryption outside qemu-img Markus Armbruster
2015-03-10 18:25 ` Eric Blake
2015-03-10 18:13 ` [Qemu-devel] [PATCH RFC 0/2] Limit support for encrypted images to qemu-img Daniel P. Berrange
2015-03-11 8:55 ` Markus Armbruster
2015-03-11 9:59 ` Daniel P. Berrange
2015-03-11 10:10 ` Kevin Wolf
2015-03-11 12:05 ` Markus Armbruster
2015-03-12 16:58 ` Paolo Bonzini [this message]
2015-03-13 8:26 ` Kevin Wolf
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=5501C5AF.8030202@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.