Re: [jose] Canonical JSON form

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 18 November 2018 21:03 UTC

Return-Path: <anders.rundgren.net@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 E4D8212D7EA for <jose@ietfa.amsl.com>; Sun, 18 Nov 2018 13:03:57 -0800 (PST)
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 HXNcetcZbDSQ for <jose@ietfa.amsl.com>; Sun, 18 Nov 2018 13:03:56 -0800 (PST)
Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0: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 68AFA128CF3 for <jose@ietf.org>; Sun, 18 Nov 2018 13:03:56 -0800 (PST)
Received: by mail-pg1-x532.google.com with SMTP id 80so12873735pge.4 for <jose@ietf.org>; Sun, 18 Nov 2018 13:03:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VRmq4m8MrbYbO8WsbfrVQqdOrxY7rkQjRtcbrQMufCQ=; b=A+JTjvRbhIWoak6zOu64urdRqYO9+LngRNB375s6lCX8YXTWXY/kIlEP7F9Yvw+K+V wwwhri9K181AQF8buOYpY7TBd+aegGT8dhDYf5Xnc/gthEWIdUHnqw+M0GPxsZCSzpwV ZeAj1ItcjfIH14OitFEB+8eBv9dgedHVrtINmXKkfp7EGad3SlZIqRF7Sy0XGtsfzQIL IuFqsM3yhwVBg9wGNzByFIw3XDaLEky3dZdP9iaRuF+7i0HRWQuXYoterHWyPthlzeP7 QlfUrlnOuc/zvabRCUw9Gvk6ykxIuPUyavc7UFc0W5PBB6MvPLrqs2m9dcyCP2E74TPi VZuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VRmq4m8MrbYbO8WsbfrVQqdOrxY7rkQjRtcbrQMufCQ=; b=ex+VP699NoGbJ/+Pr+noZJJ2yHYmBb7IGQqWJuOn9AWIE0TZw9s4CbPu+Dd/wle7QU pUVvy36Y0oZypCKFFyxiBkKwTkCevZYLNLHrul7RgjbcIOEK7vWEVbOtjWy8FsbvNZlZ /NENkU37JnJsxxrxKyqGqRvP7VRtVtO0SfQ9hR6+Q59Qz/bmpR87+xyjmWz3G1Hug4gE u0qv+Acd3TWGdUU4RV4jHa1Vgr/KY6MMPYXVO5P4sJlaxVSjE3B4vTFff3DdjA8IlSuV njnZe3tF9z9+w4AZx0ZJEP4ooOgcXICGTm8yUY+x5ilmy8l/PE9KT0qK4yiJdgKP6LAT OdPQ==
X-Gm-Message-State: AGRZ1gLfyVmDS9oiMJyT/bv0lz1FTVgTyKbatyYuxMkqhqka1LCM7sND egcLbUy9pWm2ZZ4MkkDlsW1PeI8WWiKliQ9Yb9sOew==
X-Google-Smtp-Source: AJdET5fzomNYg1Zm/igfwjUVYnr25vFM9/NbRPIqOVXk9Gg5FdME0GZjApcWcLSaqht/tSoXvL6xFLzOItNptxaWAmI=
X-Received: by 2002:a63:62c3:: with SMTP id w186mr17813760pgb.345.1542575035904; Sun, 18 Nov 2018 13:03:55 -0800 (PST)
MIME-Version: 1.0
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <CAOASepNX4aYVmPWXyODn0E2Om_rimACPECqJBvZSOXVVd_p8LA@mail.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> <434fbdb6-0202-5a02-4cec-9332fbbe548c@gmail.com> <FBBFA6FA-4B0C-4239-9145-0B713120EC98@tzi.org> <01fd01d47f5f$4c4889f0$e4d99dd0$@augustcellars.com> <7b1d293c-1d97-44e4-0cd8-55ec1db6c3b5@gmail.com> <AD2DB2EB-3F06-4C55-94E4-CED60F6FF4CF@alkaline-solutions.com>
In-Reply-To: <AD2DB2EB-3F06-4C55-94E4-CED60F6FF4CF@alkaline-solutions.com>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Date: Sun, 18 Nov 2018 22:03:47 +0100
Message-ID: <CADEL5zvbLOtuFBD6zgEpcUQZ2Y7hNYHxLcj=EhkEOnV-_dqwJQ@mail.gmail.com>
To: David Waite <david@alkaline-solutions.com>
Cc: Jim Schaad <ietf@augustcellars.com>, Carsten Bormann <cabo@tzi.org>, jose@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000df7fb057af6bd9e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/NHSTRG4CyneMLv6GMZGhrvcaNjs>
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: Sun, 18 Nov 2018 21:03:58 -0000

On Sun, 18 Nov 2018, 20:37 David Waite <david@alkaline-solutions.com wrote:

> Not to be a jerk (I promise!), but is there documentation of the TEEP
> issues with using JWS/JWE structure?
>
> The existing specs seem to use JOSE as-is, I didn’t immediately see
> anything on the ML or in GitHub issues.
>

Correct.  Since the requirement was using standardized security solutions
but also maintaining a reasonable message structure, they didn't have any
option but adding a redundant layer like the TAInformation /
TAInformationTBS pair.

I was in a similar position having a bunch of systems to be converted from
XML to JSON.  Unlike TEEP, I had the freedom to select any working solution
which is the background to this work.



> It is difficult to fairly argue a specific desired solution to a
> non-disclosed problem set. Especially when so many people have battle scars
> from implementing that solution in the past.


Implementing, documenting and verifying this concept took quite some time
but apart from a math bug in .NET there were no surprises whatsoever.

The problem set is described, here is a short version:
- Keeping signed JSON in JSON format
- Enabling a consistent message structure regardless if messages are signed
or not
- Supporting signed JavaScript objects

Anders
https://mobilepki.org/jws-jcs


>
> -DW
>
> > On Nov 18, 2018, at 11:06 AM, Anders Rundgren <
> anders.rundgren.net@gmail.com> wrote:
> >
> > There's no mystery going on here.  The TEEP folks needed Signed Data
> rather than Signature objects with embedded Data.
>
>