Re: [Rats] Vetting claim definitions

Laurence Lundblade <lgl@island-resort.com> Wed, 05 June 2019 15:46 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: rats@ietfa.amsl.com
Delivered-To: rats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB508120169 for <rats@ietfa.amsl.com>; Wed, 5 Jun 2019 08:46:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 0GXO2v9OzIae for <rats@ietfa.amsl.com>; Wed, 5 Jun 2019 08:46:23 -0700 (PDT)
Received: from p3plsmtpa06-08.prod.phx3.secureserver.net (p3plsmtpa06-08.prod.phx3.secureserver.net [173.201.192.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 95B4112012C for <rats@ietf.org>; Wed, 5 Jun 2019 08:46:23 -0700 (PDT)
Received: from [192.168.1.82] ([76.192.164.238]) by :SMTPAUTH: with ESMTPA id YY7GhwnhnmARFYY7KhHBJB; Wed, 05 Jun 2019 08:46:22 -0700
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <30754CD8-98AB-4080-952E-880BC630EC69@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_615FEB15-B6DA-47E3-9BF6-1B022B440513"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Wed, 05 Jun 2019 08:46:18 -0700
In-Reply-To: <12913.1559739926@localhost>
Cc: rats@ietf.org, Michael.Jones@microsoft.com
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <BC6D5D3A-BD2F-496E-AA68-D2A758A33843@island-resort.com> <12913.1559739926@localhost>
X-Mailer: Apple Mail (2.3445.9.1)
X-CMAE-Envelope: MS4wfMYVGJB0YlGRpb63kSbdTBN49Z6TnCbkBQTA4dsvqOcmR6o0uHZcF82ftA2QCDJYbjLM2z/EaYwgf6qcSE/Hy7ZLNu9vwYqB754He00vq/6+/hqbLCuq vnkXRrOypJgib5G2tnCDl1hyA2MIEefe1zfFHH28kcULsHqjCMVkUZKg7A3nKMgOJOaOZLtabfW4zBdeGpF4nhbFB+wcrFaoLFSCujPqdVt6yr6cb0lZlhln u2nLlxAybp47BexVvJcwwA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/LsU9-qCDInE2efgDuaKhahJxRCE>
Subject: Re: [Rats] Vetting claim definitions
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Remote Attestation Procedures <rats.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rats>, <mailto:rats-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rats/>
List-Post: <mailto:rats@ietf.org>
List-Help: <mailto:rats-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rats>, <mailto:rats-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jun 2019 15:46:26 -0000

Below…
+ Mike Jones, co-author of CWT

> On Jun 5, 2019, at 6:05 AM, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> 
> 
> Laurence Lundblade <lgl@island-resort.com> wrote:
>> — Today CWT allocates millions of slots for expert review. No
>> specification is required, but some information should be provided.
> 
>> JWT doesn’t seem to have this, which is maybe why it is messier. It
>> kind of seems bad and wrong that it doesn’t to me.
> 
> JWT doesn't have this because the claims are "unlimited" length strings, so
> one can always make up a unique string in lieu of registration.
>  org.island-resort.lgl.whateverstringyouwant
> 
> is probably completely yours :-)
> Of course, if you want to interoperate you need to agree about how, so there
> are some advantages of a forcing function that demands you write things down
> first :-)

Unlimited length string claim names are fully part of CWT. Also, COSE allows them for headers, algorithm names and such too. So from a syntax view CWT and COSE are the same as JWT in allowing long string names.

However, COSE and CWT are different in the management of the string name space:

Strings of length 1	Standards Action
Strings of length 2	Specification Required
Strings of length greater than 2	Expert Review

These, along with the integer names space rules, then imply:

Integer values less than -65536 are the only ones free for use with no review or processing by IANA and experts.

JWT also has this notion of Collision-Resistant Name based on OIDs or UUIDs, which is essentially some rules to make up names that don’t go into an IANA registry and are still unique and won’t collide.

JWT could have done what CWT does. Seems to me that CWT has taken a radically more managed approach to the super-open JWT approach. Maybe the CWT folks realized the JWT design was poor.


At any rate, there seems to be some consensus here that the CWT approach is what we want for attestation. It is also the more recent and thus maybe more advanced thinking.

I’m hoping we can find our way to just accept the CWT claim naming management scheme as is for attestation. If other CWT-based efforts did the same (draft-birkholz-core-coid) did the same then the world would be much simpler. 

However that still leaves open some issue with JWT namespace management. (We do want JSON based attestation to be JWT’s, right? Just the same as CBOR-based attestation are CWT’s).

LL