Re: CephX key/secret generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sage,

Thanks this is exactly what I was looking for.

On Thu, Jul 16, 2015 at 8:32 AM, Sebastien Han <seb@xxxxxxxxxx> wrote:
> Awesome I’ve been looking for something similar for ceph-ansible too :)
>
>> On 16 Jul 2015, at 16:46, Sage Weil <sage@xxxxxxxxxxxx> wrote:
>>
>> Hi Andrew,
>>
>> On Wed, 15 Jul 2015, Andrew Woodward wrote:
>>> Hi, I'm looking for help understanding how the cephx auth keys are
>>> generated. I want to pre-create the keys for the cluster within my
>>> deployment engine. It appears that we can use `ceph-athtool
>>> --gen-print-key` in order to generate the keys and use them, however
>>> the application runs inside a container and it seems silly to 150mb of
>>> deps to get access to ceph-authtool.
>>>
>>> Looking through the code at a basic level, I see that it's calling
>>> some AES functions, however it quickly goes over my ability to read C.
>>>
>>> Can some one go over the key construction requirements? Can we use any
>>> string encoded with base64? Is the AES encoding needed? What is the
>>> correct formula for the AES generation? It looks like the have the
>>> same seed but I'm having problems reading it out of the code.
>>
>> Here's a bit of python to do it:
>>
>>       https://github.com/ceph/ceph-deploy/blob/master/ceph_deploy/new.py#L21
>>
>> Hope that helps!
>> sage
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
> Cheers.
> ––––
> Sébastien Han
> Senior Cloud Architect
>
> "Always give 100%. Unless you're giving blood."
>
> Mail: seb@xxxxxxxxxx
> Address: 11 bis, rue Roquépine - 75008 Paris
>



-- 
Andrew
Mirantis
Fuel community ambassador
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux