qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] passing secrets to block devices
@ 2011-10-20 18:30 Josh Durgin
  2011-10-20 19:24 ` Daniel P. Berrange
  0 siblings, 1 reply; 8+ messages in thread
From: Josh Durgin @ 2011-10-20 18:30 UTC (permalink / raw)
  To: libvir-list, qemu-devel; +Cc: Kevin Wolf, ceph-devel

We're working on libvirt support for block device authentication [1]. To
authenticate, rbd needs a username and a secret. Normally, to
avoid putting the secret on the command line, you can store the secret
in a file and pass the file to qemu, but when this is automated,
there's no good way to know when the file can be removed. There are
a few ways to pass the secret to qemu that avoid this problem:

1) pass an fd to an unlinked file containing the secret

This is the simplest method, but it sounds like qemu developers don't
like fd passing from libvirt. [2]

2) start guests paused, without disks requiring authentication, then
    use the drive_add monitor command to attach them

This would make disks with authentication somewhat of a special case
in libvirt, but would be simple to implement, and require no qemu changes.

3) start guests paused, then send the secret via a new QMP/HMP
    command (block_set_conf <key> <value>?)

This is a larger change, but it would be more generally useful for
changing configuration at runtime.

What do you think is the best approach?

[1] http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/4129
[2] http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg02494.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-21  8:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20 18:30 [Qemu-devel] passing secrets to block devices Josh Durgin
2011-10-20 19:24 ` Daniel P. Berrange
2011-10-20 21:48   ` Josh Durgin
2011-10-21  1:37     ` shu ming
2011-10-21  7:05       ` Daniel P. Berrange
2011-10-21  7:05     ` Daniel P. Berrange
2011-10-21  8:30     ` Kevin Wolf
2011-10-21  8:40       ` Daniel P. Berrange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).