URL-safe base64 encoding for keys

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

 



Hi,

With my CloudStack integration I'm running into a problem with the cephx keys due to '/' being possible in the cephx keys.

CloudStack's API expects a URI to be passed when adding a storage pool, e.g.:

addStoragePool?uri=rbd://user:cephxkey@xxxxxxxxxxxx/poolname

If 'cephxkey' contains a / the URI parser in Java fails (java.net.URI) and splits the URI in the wrong place.

For base64 there is a specification [0] that describes the usage of - and _ instead of + and /

Is there a way that we change the bits in src/common/armor.c and replace the + and / for - and _?

Thanks,

Wido

[0]: http://en.wikipedia.org/wiki/Base64#URL_applications
--
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