rbd command : is it possible to pass authkey in argument ?
A message that is not in the archive (sent off-list or not yet received): 1612d6e1-fed0-4cda-bfc4-df0006875f75@mailpro
Hi,
I'm writing rbd module for proxmox kvm distribution,
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
Or does it need to use a keyring file ?
Regards,
Alexandre
Hi,
Quoted 5 lines · Alexandre DERUMIER
Hi,
I'm writing rbd module for proxmox kvm distribution,
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
I'm not sure yet, have you tried with they argument "--key" ?
I tried and that failed and looking through the source-code it seems that it isn't possible yet.
Adding it seems rather simple however, so it could be added.
Wido
Quoted 11 lines
Or does it need to use a keyring file ?
Regards,
Alexandre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Wido den Hollander
Hi,
Quoted 6 lines · Alexandre DERUMIER
Hi,
I'm writing rbd module for proxmox kvm distribution,
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
I'm not sure yet, have you tried with they argument "--key" ?
Yep, --key is what you want.
sage
Quoted 25 lines
I tried and that failed and looking through the source-code it seems that it isn't possible yet.
Adding it seems rather simple however, so it could be added.
Wido
Quoted 11 lines
Or does it need to use a keyring file ?
Regards,
Alexandre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks Sage.
I didn't have found it,it seem to be undocumented (man or rbd -h).
I have tested it, it's works !
Alexandre
----- Mail original -----
De: "Sage Weil" <[email protected]>
À: "Wido den Hollander" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, [email protected] Envoyé: Mercredi 30 Mai 2012 17:25:33
Objet: Re: rbd command : is it possible to pass authkey in argument ?
Quoted 11 lines · Wido den Hollander
Hi,
Quoted 6 lines · Alexandre DERUMIER
Hi,
I'm writing rbd module for proxmox kvm distribution,
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
I'm not sure yet, have you tried with they argument "--key" ?
Yep, --key is what you want.
sage
Quoted 25 lines
I tried and that failed and looking through the source-code it seems that it isn't possible yet.
Adding it seems rather simple however, so it could be added.
Wido
Quoted 11 lines
Or does it need to use a keyring file ?
Regards,
Alexandre
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.htmlSignature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 16 lines
-- Alexandre D erumier Ingénieur Système Fixe : 03 20 68 88 90 Fax : 03 20 68 90 81 45 Bvd du Général Leclerc 59100 Roubaix - France 12 rue Marivaux 75002 Paris - France -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Alexandre DERUMIER
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
I see you got an answer for your actual question. I wanted to take a different angle.
You should really avoid putting secrets on command lines, or in process environment. Those are readable to all local users. This is why I advocate keyring files.
Alternatively, with qemu, the monitor command mechanism they have would let you add the drives, before starting up the vm, without the secrets being visible to others.
Hi Tommi,
I was looking for a way to pass a keyfile, just found it
--keyfile (both rbd and qemu drive option)
Better indeed ;)
----- Mail original -----
De: "Tommi Virtanen" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: [email protected]
Envoyé: Mercredi 30 Mai 2012 19:40:46
Objet: Re: rbd command : is it possible to pass authkey in argument ?
Quoted 1 line · Alexandre DERUMIER
Is it possible to pass authkey as argument in rbd command line ? (I can do in with qemu-rbd drive option)
I see you got an answer for your actual question. I wanted to take a different angle.
You should really avoid putting secrets on command lines, or in process environment. Those are readable to all local users. This is why I advocate keyring files.
Alternatively, with qemu, the monitor command mechanism they have would let you add the drives, before starting up the vm, without the secrets being visible to others.
Signature · 16 lines
-- Alexandre D erumier Ingénieur Système Fixe : 03 20 68 88 90 Fax : 03 20 68 90 81 45 Bvd du Général Leclerc 59100 Roubaix - France 12 rue Marivaux 75002 Paris - France -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html