Re: [Rats] What's to EAT? - terminology clarification

Laurence Lundblade <lgl@island-resort.com> Wed, 13 November 2019 19:30 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 BC0891208AA for <rats@ietfa.amsl.com>; Wed, 13 Nov 2019 11:30:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 8xeR6-Aqx7En for <rats@ietfa.amsl.com>; Wed, 13 Nov 2019 11:30:02 -0800 (PST)
Received: from p3plsmtpa06-07.prod.phx3.secureserver.net (p3plsmtpa06-07.prod.phx3.secureserver.net [173.201.192.108]) (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 65E241200B4 for <rats@ietf.org>; Wed, 13 Nov 2019 11:30:02 -0800 (PST)
Received: from [10.141.0.146] ([45.56.150.139]) by :SMTPAUTH: with ESMTPA id UyL3ilkCXz03vUyL3i0QNP; Wed, 13 Nov 2019 12:30:02 -0700
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Laurence Lundblade <lgl@island-resort.com>
In-Reply-To: <2be3acbe-c2a3-076c-63a2-b5d00a3ba4c2@sit.fraunhofer.de>
Date: Wed, 13 Nov 2019 11:30:01 -0800
Cc: "\"Schönwälder, Jürgen\"" <J.Schoenwaelder@jacobs-university.de>, "Salz, Rich" <rsalz@akamai.com>, "rats@ietf.org" <rats@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <ACB7685F-54F8-465E-889F-E36CB1F5BAB0@island-resort.com>
References: <229E0A72-4B44-4C9A-AD0A-142A13020C9A@intel.com> <MWHPR21MB0784058F591C52EEB31E0736A3770@MWHPR21MB0784.namprd21.prod.outlook.com> <4F586E15-9CF7-4824-87F2-8E2C20D1AF1D@intel.com> <MWHPR21MB078439E9EB07E3BB72E15137A3760@MWHPR21MB0784.namprd21.prod.outlook.com> <71173EC8-A167-47B9-B0F1-05759D59890B@akamai.com> <20191113071244.onqdgo2roqt7efb6@anna.jacobs.jacobs-university.de> <B555FC8E-FF3B-468A-B3DF-9F10DD6FBBF6@island-resort.com> <2be3acbe-c2a3-076c-63a2-b5d00a3ba4c2@sit.fraunhofer.de>
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
X-Mailer: Apple Mail (2.3445.104.11)
X-CMAE-Envelope: MS4wfAA3+9YMZ2LAORcdAJVoZ3nED1G2JiO6Ai7ULF0p0/cCvjw0rzNNF6FQQWBNKDWV+nD1Np2I6HWYxnoOiBfDHS9Dqd/5fAS5sIpGyMP87V92RpQbNAV2 s4zk8IzCPQ55gj3sZXmg1l8a/MZ9J9sHF+dOfw7b1mmeY7rgja1K6RbDBXw+uYPk8KG3Az15UvkhbC4hiZRAMu/tL+c3whLCzQqxiNSmyXH/UcjoUwtMVAyN HlAzlf5AuCn9S4yb3xL4Iinnx2cbnhz1XvvtvhKLr+MD8SP1tZlPqhv0WBhhIO6F
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/DNgj9pS7H-S6jDHm3b2euNEvris>
Subject: Re: [Rats] What's to EAT? - terminology clarification
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, 13 Nov 2019 19:30:05 -0000

One of the D’s in CDDL is for Data and I think someone told me that CDDL is for Data Models and that what is currently labeled as the Data Model in the EAT document is the Encoding.

It doesn’t matter much to me what we label the different parts of the EAT document. Happy to adjust the labeling. However having 1) the textual claim descriptions, 2) having CDDL as the next level of description and 3) being able to encode CDDL in JSON and CBOR (and maybe ASN.1) mechanically does matter to me.

LL




> On Nov 13, 2019, at 9:51 AM, Henk Birkholz <henk.birkholz@sit.fraunhofer.de> wrote:
> 
> Now I am a bit confused. Didn't you attempt to use CDDL as an information model in the EAT I-D?
> 
> On 13.11.19 18:49, Laurence Lundblade wrote:
>>> On Nov 12, 2019, at 11:12 PM, Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de <mailto:J.Schoenwaelder@jacobs-university.de>> wrote:
>>> 
>>> Concerning IMs and DMs, here is the (extended) RFC 3444 view that
>>> is commonly used by some parts of the IETF:
>>> 
>>>                 IM               --> conceptual/abstract model
>>>                 |                    for designers and operators
>>>      +----------+---------+
>>>      |          |         |
>>>      DM         DM        DM     --> concrete/detailed model
>>>      |          |         |          for implementors
>>>   +--+--+   +--+--+--+    |
>>>   |     |   |  |  |  |    |
>>>   EN    EN  EN EN EN EN   EN     --> encodings / representation formats
>>>                                      for instance data
>> In the EAT draft, the EAT claims information model is in the largely textual description of each claim.
>> In the EAT draft there is just one EAT claims data model. It is the CDDL in the EAT draft.
>> Currently there are two claims encodings, CBOR and JSON. Thanks to CDDL, we get from data model to encoding in a largely mechanical way and there is little text needed.
>>                 IM: Text
>>                 |
>>                 +
>>                 |
>>                 DM: CDDL
>>                 |
>>             +---+--+
>>             |      |
>>            CBOR   JSON
>> I think this is a good, simple and effective way to proceed.
>> (There are a few things wrong with the way this is written up in the current EAT draft that need to be fixed:
>> - The encodings are mis labeled as the data model
>> - I’m not sure the CDDL is correct)
>> Maybe one more encoding for X.509/ASN.1/DER is added to cover Dave’s use case. Hopefully it could be by saying how to encode the needed subset of CDDL into ASN.1/DER. Android Keystore also uses X.509 for attestations, so this might add motivation. To keep effort down, CDDL->ASN.1 should just be for EAT and a CDDL subset.
>> I do not think we should try to bring YANG in here. So there is no YANG expression of EAT claims. (I did see Eric’s GPS use case, but don’t think it is mainstream enough to motivate the complexity and large effort to bring YANG into play here).
>> This email is just about the “EAT claims information model”. There can be other separate information models for other parts of RATS. I don’t think there should be one global RATS information model that spans all the documents.
>> The gap of sorts here is IANA registered claims, the existing ones and new ones. There’s no requirement to provide an information model or CDDL when you register new claims with IANA or even coordinate between JWT and CWT.
>> LL
>> _______________________________________________
>> RATS mailing list
>> RATS@ietf.org
>> https://www.ietf.org/mailman/listinfo/rats
>