Re: [jose] Canonical JSON form

Bret Jordan <jordan.ietf@gmail.com> Mon, 29 October 2018 03:04 UTC

Return-Path: <jordan.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E4D012F1A6 for <jose@ietfa.amsl.com>; Sun, 28 Oct 2018 20:04:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TSxRWhTtL7rV for <jose@ietfa.amsl.com>; Sun, 28 Oct 2018 20:04:29 -0700 (PDT)
Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2DD991286D9 for <jose@ietf.org>; Sun, 28 Oct 2018 20:04:29 -0700 (PDT)
Received: by mail-yb1-xb42.google.com with SMTP id p144-v6so2824706yba.11 for <jose@ietf.org>; Sun, 28 Oct 2018 20:04:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=hUjJJbMgU5hE6UF3KALkucLinGJOFIbPAQt6QmhMyHA=; b=E6FmKAgELWVqbVk7gzDsqsrS+XVPoujOpbwXn2Gvw0KG0pnjS251E8GbX3aKlFVSSl SkIjRxvZ8ttY7Vp24yaPhD+zolh0BeM5TxUs17ijcGGkMTnxPi3Ag0splSwq1R41hwrE Pa/Cymwpi1N9jWjG3Bt43SIZpIKqeG9MVMoNBmack3IdeLhsYC1RK3gmWfHpSpblnueA ze1ywpGnBLrfPA+G5eMy/aC3R9ap3dbI3POBCWJyQWLfO+BvS2ZmFHeQi8kqHnzKiTEk NIoq0TVkKh5chljAa1ME4/H1E+2Weno4B+jW9GowzW/zEpFZn/HkRtD0O3Dm232xo1sr GHng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=hUjJJbMgU5hE6UF3KALkucLinGJOFIbPAQt6QmhMyHA=; b=JJEWLsDobAaYaXVDz99CrPuGPdLYJKEY5X4DvhRcrK2rWbZa/uqISCTzzgwZveEzFK iT9+YD7JQjUDjaPN37f3fIzJTt8ceOirpSVsXW1lv9AfZ3Y3mTf1lYFxRNP7JnmjhlLX 50/w840Vg6TRtQRZ7TIi2KeP812mRwCliq/d9PWiAGCLRBfY/5N+T+NgsVx2P27aDmDd B8WIdzhazxPOFuPsAt+05oCL5RaBR9wGVRJVNPA1Se1wSt4IQ7LkoZpndzhojLotGsGS cQPHT4dxbVyzrrV9aEP9VRyabBIRdj4WSv5dlQsj0otJ3J2z/6GXWECIdDJ0ghBrlX41 ZOUA==
X-Gm-Message-State: AGRZ1gLVhzlH+oZ5cvMKUe951zYZEokSooITT7rfs+ynESfQ7/vUR5cB 6c1dQFePCj+48PIDmPJ/mYQ=
X-Google-Smtp-Source: AJdET5c/oNa3qwPuVQAkvYoynNKk10DTY/SiAyr8HypLp25NtI2Csg29n+xRh7kBknXNW8a9HnRReg==
X-Received: by 2002:a25:69cd:: with SMTP id e196-v6mr12144809ybc.439.1540782268409; Sun, 28 Oct 2018 20:04:28 -0700 (PDT)
Received: from ?IPv6:2605:a601:3260:266:5108:ee4b:f209:8e5e? ([2605:a601:3260:266:5108:ee4b:f209:8e5e]) by smtp.gmail.com with ESMTPSA id 84-v6sm4508629ywp.69.2018.10.28.20.04.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 20:04:27 -0700 (PDT)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <0A81DF6A-1EF5-42EA-AE88-69E2A0383FB5@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_79A40714-EF0D-41BF-ABD0-455F33191D36"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Sun, 28 Oct 2018 21:04:20 -0600
In-Reply-To: <CAF2hCbaPEdULLX41DeA_RMePZostcM46_eimQoR-NeE-JveHzg@mail.gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, david@alkaline-solutions.com, Anders Rundgren <anders.rundgren.net@gmail.com>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, jose@ietf.org, James.H.Manger@team.telstra.com, Phil Hunt <phil.hunt@oracle.com>
To: Samuel Erdtman <samuel@erdtman.se>
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <D21F3A95-0085-4DB7-A882-3496CC091B34@gmail.com> <CAOASepM=hB_k7Syqw4+b7L2vd6E_J0DSAAW0mHYdLExBZ6VBuw@mail.gmail.com> <00ad01d460f4$69ae8a00$3d0b9e00$@augustcellars.com> <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com> <MEAPR01MB35428606C09BF315DE04CC79E5E10@MEAPR01MB3542.ausprd01.prod.outlook.com> <CAHbuEH6DCD7Zc+PK3TnCBkKv1esnROwyCcDb8ZR+TKwgQQ+yXQ@mail.gmail.com> <0E6BD488-74D5-4640-BC31-5E45B0531AFC@gmail.com> <CAHbuEH5oH-Km6uAjrSr0pEHswFBLuDpfVweQ+gpj472yk+8iTQ@mail.gmail.com> <073CB50F-8D91-4EF6-90BE-FC897D557AA6@oracle.com> <A37D69B1-6B77-4E11-8BB9-A0209C77752C@tzi.org> <45bf6c0f-e510-4afc-4277-bdd486a8ce8c@gmail.com> <213796DB-D875-46B0-9F3C-1A56F9E154BA@gmail.com> <ff1dcd4e-2bf4-b85b-dde3-2cc8fe29fb17@gmail.com> <447AB837-7208-4A96-91CC-89D30A2734FA@gmail.com> <24cc6bb7-ea40-1a9c-8847-8d6c74131587@gmail.com> <92B9F9AF-BBCA-472D-9155-935F695CE7CE@gmail.com> <3b6a338b-5588-deb2-9a9c-23e0cc24a2f1@gmail.com> <FE6C1732-D16A-4D97-99F4-1350AF23A748@alkaline-solutions.com> <1B3A97D9-06BE-4225-BF8D-DE55C7FBF2DF@tzi.org> <CAF2hCbaPEdULLX41DeA_RMePZostcM46_eimQoR-NeE-JveHzg@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/EdB8t4fXVcE-hPqSxWvDUEUoMd4>
Subject: Re: [jose] Canonical JSON form
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Oct 2018 03:04:32 -0000

Oh there is real need.  Several standards and implementations inside the IETF and outside the IETF in other SDOs need this.  So in my view there are a few options:

1) Try and convince a working group here in the IETF that this is a good idea so we can actually work on it. 

2) Work on this in another SDO outside the IETF (ETSI, OASIS, ITU, etc etc etc)

3) Do this work as an industry standard similar to what happened between W3C and WHATWG. 

I would personally prefer that this work be done here in the IETF.  But there seems to be a lot of resistance here. I am willing to work on this and help make this a reality.  There is a lot of great prior work on this.  

Maybe we can have a meeting in Prague?  Or I can setup a Telepresence WebEx after Bangkok and all those that are interested can join and we can discuss next steps. 

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 28, 2018, at 2:32 PM, Samuel Erdtman <samuel@erdtman.se> wrote:
> 
> In my opinion we can create a good canonicalization format for JSON to be used to sign cleartext JSON.
> 
> As can be seen on this list many are skeptical so my approach would be to publish easy to use open source implementations. If we do that and there is real interest then we might be able to convince people here about the need. In line with this ambition I have done the JS and Java publications. This might also show there is no actual interest and then that is also an outcome.
> 
> Best regards
> //Samuel
> 
> 
> On Mon, Oct 22, 2018 at 8:44 AM Carsten Bormann <cabo@tzi.org <mailto:cabo@tzi.org>> wrote:
> On Oct 22, 2018, at 04:47, David Waite <david@alkaline-solutions.com <mailto:david@alkaline-solutions.com>> wrote:
> > 
> > intermittent interoperability failures until a new language runtime release which revises the numerical print and parse functions
> 
> Note that this is not a theoretical concern, as CVE-2010-4476 and CVE-2010-4645 amply demonstrate, nicely underscored by the re-occurrence of the latter in https://www.exploringbinary.com/php-converts-2-2250738585072012e-308-incorrectly/ <https://www.exploringbinary.com/php-converts-2-2250738585072012e-308-incorrectly/>
> 
> Grüße, Carsten
> 
> _______________________________________________
> jose mailing list
> jose@ietf.org <mailto:jose@ietf.org>
> https://www.ietf.org/mailman/listinfo/jose <https://www.ietf.org/mailman/listinfo/jose>