Re: [Rats] EAT Profiles

Laurence Lundblade <lgl@island-resort.com> Wed, 14 September 2022 18:33 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 AF8DCC14CF1B for <rats@ietfa.amsl.com>; Wed, 14 Sep 2022 11:33:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RdmeT1mewqkO for <rats@ietfa.amsl.com>; Wed, 14 Sep 2022 11:33:46 -0700 (PDT)
Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2119.outbound.protection.outlook.com [40.107.102.119]) (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 F024CC14CF12 for <rats@ietf.org>; Wed, 14 Sep 2022 11:33:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jyl2ANiElNtbKffKIPA1qSyCQb7tV7J/uAaBYNRpSwzb0f1CYT/zmF/I/lZuZdODGSBvlLzt5srtxEGkPZCEKiN3xNEcUvlOhrYzeoWGL1E/+cdlLTs2hC5KugOVscv3zk00FJYvHo+zs7ufeP2PohVQdpWSWj/ndTdIwBQDIP9P+fjeS3BCO4QeL4Wb6jKMR5DSOxSab7GD2h3i7XCI/ofZeZo6j/ZuPJKOAJAT1i9eueH9nCbmDmKnV6TflYKZN3iQm/MUKOASHN6vFZd/IHiNcDi+BYQ+g/Fw/K0bnqe4ztMiUE8MfXev8JJnxj9YDJP6fte2Ps6a7F55zHhSLQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ruVCKLWzEqGnHFWdPs6UWjaSCQkcbHvCQ4/i3aG23Js=; b=TKSQQjvmvt+IfQY12C+iK0FR0z60PAWeaafTYQ29awBWVuFfoTNaVBzcRuTfsVWmSYWHNmXQlRK7rp/vYbjik6B/JKSVJUhLos2zZDXicAHcLsnR6sPyLD2NuAK5xQ1sYerDtCRcdXJDMQLy4f7agz/P/W19s5y9TvaxiuIuxhq0KtiAyinAPcGmFEiwg/z0GvntQB6T1ERF7143yEwqee4nBq/m0x8i6QV6esB1rh4BjosbZZmAj1dtdjzH6h2+Cv+xYm5p8xcwXqKVsgTjH9eGtQfOXYnBWmQh20f3BAbGvoTInOLLvOKUIxJ0QXAZZhiNVfvhi6Sofftzzh5lRw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=island-resort.com; dmarc=pass action=none header.from=island-resort.com; dkim=pass header.d=island-resort.com; arc=none
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=island-resort.com;
Received: from PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8) by PH0PR22MB3244.namprd22.prod.outlook.com (2603:10b6:510:117::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Wed, 14 Sep 2022 18:33:43 +0000
Received: from PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::fde6:13a5:680b:756a]) by PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::fde6:13a5:680b:756a%5]) with mapi id 15.20.5612.022; Wed, 14 Sep 2022 18:33:43 +0000
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <6D74BAE0-3B37-4A1F-9966-96EB60B9D675@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_5027EC75-A888-4AD9-A04C-2A907D45593C"
Date: Wed, 14 Sep 2022 11:33:41 -0700
In-Reply-To: <71934.1663019954@dooku>
Cc: rats@ietf.org
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <71934.1663019954@dooku>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
X-ClientProxiedBy: SJ0PR03CA0160.namprd03.prod.outlook.com (2603:10b6:a03:338::15) To PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: PH7PR22MB3092:EE_|PH0PR22MB3244:EE_
X-MS-Office365-Filtering-Correlation-Id: d84817ef-b33a-4596-dc34-08da967fa708
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: Z+xmmQbGzK8VF0Bf8NFHS2Tqbf3KqtImp87SdppmXI0WH6yNFOX4MBrtxeX0Wdc319yhEHK66P5eGiov5r1QUz7GAM6kRxiIncVW0wnMxQ6YOtlEzazuR4YeGRmJl1S3A3FJQQ38CPsPGOf8HYCHdjrAp9ps6vxU1VT+9OMt45LbBS18hCWykmnu+DOS7NEqDfGiiSRU7LAxqseitrmWS4H1DQ47f6FxzRL2pjrQQT2w/iQOyv9riBlGh9+tjR+y5YfaEdMWl0QDSIu2nhlSK+rnByauM51aHLfTctJOxQ8QA79mrU9rVNc3846N6PxTZLE56UNcNzIhs2Yzdn9fHr7snpkhsgfayb81WZWZBtMu/x2fAIUe1bfhNqS9CeWxRC+bUPkE6xrfadt+PhQdNZuvg7YsN53migFAsJRH+hC6E+Gr7eSCaXUNbYyLw0/x0y5fZMKKXKyEN3MNFFOu575DJLJz1c3yKLlKjweFfwGtC8vGv/X/2bwyIBshDdezZxA7XNXa9N5Oc1i2MjUy7apEALark8T/OayHcq+jLL6hrWnwwbECorikK1tIlQBBZtERDIS3KwrmUeJXvoBuIpXIUqQbfLbkdiOWM2aHPQfKvT7UcFHG1lvCkIO/Z1agL4AXOB4C0bS5V+t0vXad5490+12XuVTg49WOiCxe22ErGaoti7NjL8HjJNJmMi5YW6VNc0a4BWUbVdBDRhdjPanwlZnodHGhyKmfFdQrGMLrIxRZq7VYV0mIrJvc0vlpUAuH9ABXtTMbqKiw2Qx80VybrvOo+V6N6wrOPE3tz9k=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR22MB3092.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(396003)(39830400003)(136003)(346002)(376002)(451199015)(4326008)(316002)(6506007)(8936002)(6512007)(66476007)(26005)(33964004)(36756003)(478600001)(5660300002)(8676002)(41300700001)(186003)(52116002)(2616005)(53546011)(86362001)(2906002)(66946007)(66556008)(6486002)(83380400001)(33656002)(38100700002)(38350700002)(45980500001); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: K6hn1K0z8ir3q7tFNRPWKtd8Ld94NPdHqC49in12oXA3fkBzxaojpet6EooeTZA1DFVoSfyb22r3nBZXgvcQYu4R/GKg3qu9oIosGG2XbPmw0Hg1DhjzTjeJIXWHPqS4WbdF15Xny/0F2KzQH2/HD6AM5s1p5cg/r38OA9/aPRz1wW0mit+9mdYjI4eK8shQgfWUvKTu9Vtydcz7A4U4UuifSJbz97r0jOqTiZUsYKLj7g6Pl/4bfa/Uq5CRsyRg/GW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e4ANnTmtqxsoA0SMshThVQBkq6cAbgSZnaQZqgYgf1DhAgfvzKQXKqXvFF47bdFuV5QuQKH5aIDR2MqpG6mS5i1A1fTcobtXO+wJjxRZ8vPZDhFgP8bRbCMn4FjMehyEkLuKCnBfGDSNtIokzG7Rj4ja133CNQ89R6HITbDufL2ze5wqn8b0zBp5H0KHruS1Q4K56LxQaKfzqqevS6O1A19ZvotEs6IAhtXNEBW0DVwtRQgNLG0TYCkfHbKkbzeavSdtuuBKatmOPj2k2ATo1uVzzCpui+vQXm5Kv
X-OriginatorOrg: island-resort.com
X-MS-Exchange-CrossTenant-Network-Message-Id: d84817ef-b33a-4596-dc34-08da967fa708
X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3092.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 18:33:43.5297 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: ad4b5b91-a549-4435-8c42-a30bf94d14a8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 7w1evf3+gEctPz9QMJODnUBZu6gKMLlshECJPt9zXhBMx8z1czGX2dWYP6/0xdnmlt4P8PCZwpz/YSHSZ89lBA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR22MB3244
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/ZBGWgQDS0Fuf1pzCz5NNVRhqJec>
Subject: Re: [Rats] EAT Profiles
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.39
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, 14 Sep 2022 18:33:46 -0000


> On Sep 12, 2022, at 2:59 PM, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> 
> Second, the next bunch of items:
> 
>> Use of JSON, CBOR, or both: CBOR only.
>> CBOR Map and Array Encoding: Only definite length arrays and maps.
>> CBOR String Encoding: Only definite-length strings are allowed.
>> CBOR Preferred Serialization: Encoders must use preferred serialization,
>> and decoders need not accept non-preferred serialization. 
>> COSE/JOSE Protection: See Section 8.
>> Detached EAT Bundle Support: DEB use is permitted.
>> Verification Key Identification: COSE Key ID (kid) is used, where the key
>> ID is the hash of a public key (where the public key may be used as a raw
>> public key, or in a certificate).
>> CBOR Tags: CBOR Tags are not used.
> 
> I really don't like the EAT has not made a clear judgement on these things
> already.   I'd really really like EAT to be far more opinionated.

CWT has most of this variability and it is a standards track RFC. Should the CWT authors have been more opinionated? Should someone write a follow-on RFC to it that says what CBOR serialization it should use, what key ID scheme to use, ...?

I don’t know if there have or have not been interoperability issues with CWT deployment. Probably there’s few issues with the CBOR parts because everyone just follows along with the preferred serialization and no one is trying to implement CWT in pure hardware. Possibly there are some issues with algorithm selection. Probably there just isn’t very much deployment, so we haven’t run into much. 

I’m not trying to be argumentative here. I just want to get to the bottom / heart of the issue.

> 
> The above list looks like it will be 95% of CBOR-based EAT "profiles"
> Could EAT just write this down, and give it a name?

What I wonder about here is layered or partial profiles.

We could write down the CBOR serialization selections and call it a profile, but that doesn’t give 100% end-end interoperability because it doesn’t pick the COSE algorithm, key identification scheme and such.

I’m a bit scared of the notion of partial/layered profiles because that adds complexity to EAT, but it doesn’t seem out of the question.

I’m open to solutions here and want to figure out what makes good sense.


> That way, we can well tested libraries that do the right thing here.
> I think that really this is where Eliot is coming from.

My COSE/CWT/EAT libraries deals with the variability this way:
- Receiving indefinite length maps/arrays — Supports because the CBOR library does. Can be turned off by #ifdef to save object code.
- Receiving Indefinite length strings — Not supported because a memory allocator is required and my library doesn’t want to depend on one
- Preferred serialization — Always sends it and can receive it
- Sending non-preferred — The point of this would be to reduce object code or implement in HW. This is not supported.
- Algorithms — Variable support for depending on library version and crypto library used
- Key ID — Public APIs allow caller to do what they want
- Custom COSE headers — No support yet, but eventually by public API so caller can do what they want.
- Claims — Public APIs allow the caller to do what they want

The library uses a mix of approaches for different issues. It has to be flexible because it may be used in a variety of use cases. It doesn’t guarantee interoperability by itself.


> EAT is all a la carte, and we are asking for a coordinated, three course set-menu.
> (Please pair the wine with the fish.)

Good analogy! :-)

The desire for small code size is a really big factor here. Weight watchers are definitely implementing EAT in scenarios where code and memory size are big issue.

Not sure we can provide one set menu when some are vegan, some are teetotalers and some have nut allergies, and some really really like cheese steak with a beer.

Maybe EAT is the restaurant supply company and the profile authors are the restaurants with the set menu?

LL