Re: [Json-canon] [EXT] Re: Support for a WG

Bret Jordan <jordan.ietf@gmail.com> Wed, 23 January 2019 09:27 UTC

Return-Path: <jordan.ietf@gmail.com>
X-Original-To: json-canon@ietfa.amsl.com
Delivered-To: json-canon@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 109AE130E76 for <json-canon@ietfa.amsl.com>; Wed, 23 Jan 2019 01:27:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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] 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 KTdIY9acAAcV for <json-canon@ietfa.amsl.com>; Wed, 23 Jan 2019 01:27:53 -0800 (PST)
Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 3B30F130E6E for <json-canon@ietf.org>; Wed, 23 Jan 2019 01:27:53 -0800 (PST)
Received: by mail-ed1-x532.google.com with SMTP id g22so1114603edr.7 for <json-canon@ietf.org>; Wed, 23 Jan 2019 01:27:53 -0800 (PST)
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=kuBMTprt+u5fcSZUDjXGiEMpMiyQv23Db4/WZdeB92c=; b=T+BfsKk8CCo68A1KCv5JGQr3pn+E937indhWRA6bx5brFP8901FvsLoMX3ySuyECIy 9pLL5o5CiIhku0p3wQLTlIpaa8Tond1Anrfchra+kubUDKyK+Y04jHZ6X7p+ZLlIq169 8lUgfkQ9YRPJu+RlChEvaAIrQbRmJLzWQ5QzKD9I3WbGVmwjc9X9yPKBex7cONALl6z3 gSdRKw+kypMeHaLO5S0NkQxn3tk8bYLZXw9dcbdCbai/Y8XL8nrZbqtyLO8PNePKXkj2 0nb5N5N32SuCT8IJlN9EFGPOK7KELvcIkpf03LwYxQTmQ3kQUsMz85R1lPmPYQ47IU/V 3A7w==
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=kuBMTprt+u5fcSZUDjXGiEMpMiyQv23Db4/WZdeB92c=; b=JB2VtMafMv8T517gNF+c4BcsffxpqvUAPvoZTecr/DisXafcHdOYb1tLVPtPWpuLak Q2apwsv7RFY7CvdR8Nplj/a3JHqoQMmMx4+BhutuBgGiqB1c0snegM+PFHk0ZvFjaSjz FHt96r6RX+Gr6R51WQZ3m/0dnH9s8l8v2hkdw3ItgcpGyf5E/0BIFDjRlS3eRLGxcfLw d71qxovA6eLVt94WnnCOHp0O/r92orSL2yRdkVALq/yFE3MSe2o0MymjseZe7mZPv8lb 3E5wX9zyILaTBIejbupyAuAmBklzqC1k7OFc2TDJcU8Lxta4Qqts9C8nF+q1fIgR1o5n 4ggQ==
X-Gm-Message-State: AJcUukexuDAzdSNMzVh5b3+awGTYHJljboxyxVd7QrjHLjNccUO0IptW DumGfpT0yViF40+X/XGFsT8J9ICW
X-Google-Smtp-Source: ALg8bN7CqZLTaET4VeAhNDhGdVQcHh2p3EN8gXVQiDfKZFAnkr2OClGODwLRsnfixQBOlL33hXb4CA==
X-Received: by 2002:a50:d1d4:: with SMTP id i20mr1985696edg.268.1548235671647; Wed, 23 Jan 2019 01:27:51 -0800 (PST)
Received: from [156.106.225.150] ([156.106.225.150]) by smtp.gmail.com with ESMTPSA id t24sm10246154edb.7.2019.01.23.01.27.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 01:27:50 -0800 (PST)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <00243004-7200-4887-BB46-ED30D03C4545@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_A150DC7E-3E9B-478A-9507-0B079540EC83"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Wed, 23 Jan 2019 10:27:37 +0100
In-Reply-To: <CBC45241-0BBB-410C-AF8C-9D49C642566B@tzi.org>
Cc: Richard Struse <rjs@mitre.org>, "json-canon@ietf.org" <json-canon@ietf.org>
To: Carsten Bormann <cabo@tzi.org>
References: <38C84459-3D2E-4E78-BF48-FE277388E33A@contoso.com> <21415_1547794000_5C417650_21415_473_1_34A23FAA-C8F5-40E3-8358-FD42C5F78126@tzi.org> <60B977A0-0958-4DDF-A666-A44F074E5946@mitre.org> <CBC45241-0BBB-410C-AF8C-9D49C642566B@tzi.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/json-canon/3X7CTTNMU7I8HinO3bMMYZOUipw>
Subject: Re: [Json-canon] [EXT] Re: Support for a WG
X-BeenThere: json-canon@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Canonicalization <json-canon.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json-canon>, <mailto:json-canon-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json-canon/>
List-Post: <mailto:json-canon@ietf.org>
List-Help: <mailto:json-canon-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json-canon>, <mailto:json-canon-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2019 09:27:56 -0000

Carsten,

I do not see what the hang up is for doing this. There is a document that proposes a very nice solution.  There are libraries for various programming languages that can do this.  What we need is a standard that people can reference when they want to use it.  At the end of the day people, organizations, vendors, and groups need a way of dealing with white space, ordering, and the JSON Number type in a consistent way.  They do not want to use CBOR, ASN.1, XML, or anything else.  The market wants to use plain and simple JSON. Right now we have various groups and organizations going off and doing their own form of this. It will save a lot of pain if we could just, finally, standardize this. 

Lets not make this overly complicated.  Organizations, vendors, other standards, and other working groups want the ability to use JSON “as-is” and perform security operations on that string of data.  To do this, we need a canonical string of data that can be consistently generated.   

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 Jan 22, 2019, at 7:05 PM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> Hi Richard,
> 
>> On Jan 22, 2019, at 13:31, Struse, Richard J. <rjs@mitre.org> wrote:
>> 
>> The use case is to enable other standards that use a JSON serialization to be able to count on two objects, each with the same contents, having the same hash value based on their representation in JSON.
> 
> Well, that is the technical requirement, but what do you use this property for?
> 
> JSON was discovered/presented around 2002 and so far has worked quite well without this property.  What use cases have sprung up that now need it?
> 
> I’m asking because for many use cases I have heard, there actually are better technical approaches than canonicalization.  Having said that, CBOR, a data format defined in 2013, does have recommendations for deterministic encoding (“canonicalization”), which turned out to be useful for instance for test scripts.  One thing we found out quickly is that deterministic encoding is dependent on the application concept of equality, so it is hard to define a single variant of it for a serialization used in multiple applications.  One more reason to find out about use cases.
> 
> Grüße, Carsten
> 
> -- 
> json-canon mailing list
> json-canon@ietf.org
> https://www.ietf.org/mailman/listinfo/json-canon