Yes I think you have missed the point of the discussion.  The question was
dealing with the possibility of doing a content transfer encoding using %##
in order to make unsafe content safe.  The value to be signed was not going
to change.  This is the same as looking at "$.02" and "\u0024.02" where both
are legal JSON encodings of the same string and the internal representation
is going to be the same even if the string in the file is different.

Jim


> -----Original Message-----
> From: Sergey Beryozkin [mailto:[email protected]]
> Sent: Monday, September 14, 2015 3:02 AM
> To: Mike Jones <[email protected]>; Jim Schaad
> <[email protected]>; draft-jones-jose-jws-signing-input-
> [email protected]
> Cc: [email protected]
> Subject: Re: [jose] draft-jones-jose-jws-signing-input-options 00
> 
> Hi Mike, Jim, All,
> 
> Only one comment,
> 
> >  > Are % characters URL safe?  What if my content for compact is
> > %24.02
> >
> >  > (or whatever the correct code for $ is).  Would I remove that
> > serialization as well?
> >
> > That's a good question.  More to the point, would we want to consider
> > allowing the period to also be escaped by representing "$.02" as
> > "%24%2E02", rendering the payload URL-safe and parseable.  It would
> > mean that we would end up defining that RFC 3986 percent-encoding be
> > used for unencoded JWS Compact Serialization payloads, when needed.
> >
> > What do others think about whether we should go there or not?  To me,
> > it seems like a worthwhile experiment to at least write it down and
> > see what we think of it.
> >
> > Mike> Per RFC 3986, % is not URL-safe (although is it used for
> > www-form-url-encoding of characters as %<hex><hex>).  If we allow %,
> > it opens up a Pandora's box of a bunch of choices we need to make, as
> > well as possibilities.  I'll send a message specifically about those
> > choices and possibilities to the working group (but not tonight).
> >
> Sorry if I just missed the point, but IMHO processing the payload should
be left
> up to the application which gets it from a JWS.
> I.e,
> 
> "$.02"
> "%24%2E02"
> 
> are two different representations for the purpose of signing/validating
them.
> "b64" does not only help making JWS JSON payload easier to understand by
> humans (in logs or tcp traces) but is also an optimization (no need to
base64-
> encode). Having to check every character in such a payload to make sure
'.' is
> percent-encoded kind makes this optimization much less effective, IMHO.
> Besides, JWS JSON are not meant to be URI safe payloads, I recall reading
about
> it.
> May be it is more useful for detached payloads...
> 
> Thanks, Sergey


_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose

Reply via email to