I very much agree with Phil. Xmldsig was a pain for developers, libraries did 
it differently thus causing interoperability problems.
Jose was designed simple but a canonical JSON form introduces new complexity.
We had the same with Oauth1 – developers were not able to sort the URL 
parameters according to the spec.
So jose is better off without canonical JSON.

//Axel


From: jose [mailto:[email protected]] On Behalf Of Phil Hunt
Sent: Donnerstag, 11. Oktober 2018 20:23
To: Kathleen Moriarty <[email protected]>
Cc: Manger, James <[email protected]>; [email protected]; Bret Jordan 
<[email protected]>
Subject: Re: [jose] Canonical JSON form

I am not sure of the value of canonicalization.  I prefer bytestream encoding 
style where the original content goes with the signature.

Another example is ATLAS which signs encoded http requests.

Some JSON formats will have the same issues that XMLDSIG had.  For example, 
SCIM supports multiple ways to identfiy attributes much like XML (it uses IANA 
registered schemas). You can reference an attribute with the full path or just 
its name.  We tried to avoid schemas, but localized extensibility and easy of 
coding forced us to do this.  So for SCIM it is easier to canonicalize than 
XML, but I would not say simple.

In the end, I felt it was a good trade-off because of an assumption to sign 
encoded json data instead.

Note:  SCIM does not yet have a signed format. I anticipate however the 
development of signed SCIM events per the new SET spec.

If you were to proceed, I would recommend including considerations identifying 
JSON formats not well suited to canonicalization.

Phil

Oracle Corporation, Identity Cloud Services Architect
@independentid
www.independentid.com<http://www.independentid.com>
[email protected]<mailto:[email protected]>


On Oct 11, 2018, at 11:06 AM, Kathleen Moriarty 
<[email protected]<mailto:[email protected]>> 
wrote:

Hi Bret,

JOSE is closed, so a new WG would have to be formed if this were to be done in 
a WG.  That might be reopening JOSE or something else.  Another possibility is 
for James to try to progress his existing draft and determine interest.  Has it 
been presented at SecDispatch yet to gauge interest and uncover problems?

You could also consider alternate solutions.  The problems cited were problems 
with XML already.  Since RID defined the same capability, you could test out 
interoperability using RID in XML more extensively as you'd be mapping the same 
functionality into JSON.  This would give you in your new effort feedback into 
design considerations and help you determine if you really want to go this 
route or perhaps some other solution may be preferred (see Neil's message).  In 
any case, more work should be done before a new WG around canonicalization is 
performed IMO, but I am also no longer an AD, so advice from current ones may 
vary :-)

Best,
Kathleen

On Thu, Oct 11, 2018 at 1:24 PM Bret Jordan 
<[email protected]<mailto:[email protected]>> wrote:
Kathleen,

From your comments I take it is okay then to do a draft proposal in another WG 
and then have this mailing list review it?  Would we then restart JOSE if the 
draft was good to have it standardized in JOSE or just some other WG?

I just want to be sensitive to the work that has already been done and build on 
it.  I also do not want to do things that are “bad form”.  We are all in this 
boat together, and I just want to work with everyone to row in the same 
direction.

BTW, I have spoken with a few other vendors and service providers and they are 
also very interested in this work as it would solve a lot of problems they have 
or are seeing.

Thanks,
Bret
PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not 
be unscrambled is an egg."


On Oct 10, 2018, at 7:47 PM, Kathleen Moriarty 
<[email protected]<mailto:[email protected]>> 
wrote:

Bret,

You could define it within a draft in a different working group other than JOSE 
and ask for reviewers from JOSE to review and comment to catch problems.  
Although already described above, there are issues with this and JSON, which is 
why the WG didn't want to do canonicalization.

I'm assuming you want to do basically what was done for RID in XML using JSON.  
You may want to look at the set of possibilities to replicate as they are all 
likely needed with what you are trying to do or just as part of your gap 
analysis.

https://tools.ietf.org/html/rfc6545#section-9.1<https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_rfc6545-23section-2D9.1&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=na5FVzBTWmanqWNy4DpctyXPpuYqPkAI1aLcLN4KZNA&m=MMo12b48B6GqvKdy8eBzH6ZAMMue9XSrSjSfwjHnqkQ&s=22u9NErU0ozC5-MfcgjryGcdeGT_X5t9OCSSYtvY-a0&e=>
Also look at 9.3.1 and 9.3.2 as you're likely to also need multi-hop 
authentication too.

To David's point in the message that follows this (came in while typing), RID 
signed portions of the message to enable interoperability and you are likely to 
need to do very similar things that are described in RID related to the policy 
work I had previously mentioned for your gap analysis as being similar 
functionality.  If you haven't looked at that part of the document, I think it 
will be helpful.

Best regards,
Kathleen



On Wed, Oct 10, 2018 at 8:29 PM Manger, James 
<[email protected]<mailto:[email protected]>> wrote:
https://tools..ietf.org/html/draft-rundgren-json-canonicalization-scheme<https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_draft-2Drundgren-2Djson-2Dcanonicalization-2Dscheme&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=na5FVzBTWmanqWNy4DpctyXPpuYqPkAI1aLcLN4KZNA&m=MMo12b48B6GqvKdy8eBzH6ZAMMue9XSrSjSfwjHnqkQ&s=sZq9Tv1-r2RLEkVR50tXkMNdFi6nOmqWmEkuNbdTJio&e=>
is a decent attempt at JSON canonicalization (and an appendix lists a few other 
attempts).
This one sorts object members based on their UTF-16 encoding (without escapes), 
and assumes double precision floats is the model for numbers.

--
James Manger

From: jose [mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Bret Jordan
Sent: Thursday, 11 October 2018 11:02 AM
To: Jim Schaad <[email protected]<mailto:[email protected]>>
Cc: Nathaniel McCallum <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Subject: Re: [jose] Canonical JSON form


Other implementations say that you should preserver the order of the fields you 
read when serialized which is part of JSON for the browser implementations but 
not necessarily elsewhere.

Preserving order is hard.  Depending on your programming language you might be 
deserializing the content in to a struct or you may be using a map.

What I need is a way for individuals and organizations to be able to pass 
around and share JSON data and collaboratively work on that JSON data and sign 
the parts that they have done.



Thanks,
Bret
PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not 
be unscrambled is an egg."


_______________________________________________
jose mailing list
[email protected]<mailto:[email protected]>
https://www.ietf.org/mailman/listinfo/jose<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_jose&d=DwMFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=na5FVzBTWmanqWNy4DpctyXPpuYqPkAI1aLcLN4KZNA&m=MMo12b48B6GqvKdy8eBzH6ZAMMue9XSrSjSfwjHnqkQ&s=68ephlmudUEVF-9EE70huCbhCWZMtZFLhQwmunkXcbc&e=>


--

Best regards,
Kathleen



--

Best regards,
Kathleen
_______________________________________________
jose mailing list
[email protected]<mailto:[email protected]>
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf..org_mailman_listinfo_jose&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=na5FVzBTWmanqWNy4DpctyXPpuYqPkAI1aLcLN4KZNA&m=MMo12b48B6GqvKdy8eBzH6ZAMMue9XSrSjSfwjHnqkQ&s=68ephlmudUEVF-9EE70huCbhCWZMtZFLhQwmunkXcbc&e=<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_jose&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=na5FVzBTWmanqWNy4DpctyXPpuYqPkAI1aLcLN4KZNA&m=MMo12b48B6GqvKdy8eBzH6ZAMMue9XSrSjSfwjHnqkQ&s=68ephlmudUEVF-9EE70huCbhCWZMtZFLhQwmunkXcbc&e=>

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

Reply via email to