Re: [jose] Beyond RFC 8785 (JSON Canonicalization Scheme)

Carsten Bormann <cabo@tzi.org> Sat, 11 July 2020 07:55 UTC

Return-Path: <cabo@tzi.org>
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 12CA33A07D6 for <jose@ietfa.amsl.com>; Sat, 11 Jul 2020 00:55:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 PUc0AVfdBopN for <jose@ietfa.amsl.com>; Sat, 11 Jul 2020 00:55:52 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF9F83A07D4 for <jose@ietf.org>; Sat, 11 Jul 2020 00:55:52 -0700 (PDT)
Received: from [172.16.42.100] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4B3hzp26jPzyY8; Sat, 11 Jul 2020 09:55:50 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CF84E380-9312-4B81-97C0-3FED005E7496@alkaline-solutions.com>
Date: Sat, 11 Jul 2020 09:55:49 +0200
Cc: Anders Rundgren <anders.rundgren.net@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>
X-Mao-Original-Outgoing-Id: 616146949.564351-03371a0e71d1ca274a8afca5f9f67cfe
Content-Transfer-Encoding: quoted-printable
Message-Id: <CEFEE221-B47B-4AEE-BE23-1450469C1DFF@tzi.org>
References: <MN2PR00MB06880AA5E91B9DC72AF93D25F5650@MN2PR00MB0688.namprd00.prod.outlook.com> <45fb23ee-5f61-1fe1-4d77-7af50096c287@gmail.com> <CF84E380-9312-4B81-97C0-3FED005E7496@alkaline-solutions.com>
To: David Waite <david=40alkaline-solutions.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/RmpkTzUkQ72T9MbL3gfJ1zKt6wQ>
Subject: Re: [jose] Beyond RFC 8785 (JSON Canonicalization Scheme)
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: Sat, 11 Jul 2020 07:55:55 -0000

On 2020-07-11, at 09:25, David Waite <david=40alkaline-solutions.com@dmarc.ietf.org> wrote:
> 
> Printing the code points, that is an inline DEL character in the JSON stringified output.

Arguably, this is really a JSON problem and not a JCS one.

There are many “non-printables” in Unicode, and JSON chose to require escaping only U+0000 to U+001F (and \ and ").  U+007F to U+009F is not the only range of interest here, think U+2028 and U+2029, or even U+200D.

I think the idea of JSON as a (readable) “text” form only ever worked to the first approximation.

Grüße, Carsten