All of lore.kernel.org
 help / color / mirror / Atom feed
* URL-safe base64 encoding for keys
@ 2012-07-03 12:22 Wido den Hollander
  2012-07-03 15:00 ` Florian Haas
  2012-07-03 15:35 ` Tommi Virtanen
  0 siblings, 2 replies; 14+ messages in thread
From: Wido den Hollander @ 2012-07-03 12:22 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

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@monitor.addr/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

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

end of thread, other threads:[~2012-07-06  9:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03 12:22 URL-safe base64 encoding for keys Wido den Hollander
2012-07-03 15:00 ` Florian Haas
2012-07-03 15:04   ` Yehuda Sadeh
2012-07-03 17:23     ` Florian Haas
2012-07-03 17:25       ` Yehuda Sadeh
2012-07-03 15:35 ` Tommi Virtanen
2012-07-03 19:18   ` Wido den Hollander
2012-07-04 12:46   ` [PATCH] Generate URL-safe base64 strings " Wido den Hollander
2012-07-04 15:16     ` Sage Weil
2012-07-04 16:10       ` Wido den Hollander
2012-07-04 16:18         ` Sage Weil
2012-07-05 13:31           ` Wido den Hollander
2012-07-05 14:31             ` Sage Weil
2012-07-06  8:48               ` Wido den Hollander

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.