Re: [Rats] Mixed format token collections (was Re: New RATS)

Simon Frost <Simon.Frost@arm.com> Sat, 04 June 2022 07:24 UTC

Return-Path: <Simon.Frost@arm.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 23565C15790C for <rats@ietfa.amsl.com>; Sat, 4 Jun 2022 00:24:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=wR2WW4CP; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=wR2WW4CP
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 KJwZzZcrsP5K for <rats@ietfa.amsl.com>; Sat, 4 Jun 2022 00:24:51 -0700 (PDT)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20602.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::602]) (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 1DFBFC14F738 for <rats@ietf.org>; Sat, 4 Jun 2022 00:24:50 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=CleZa01XQR2imvT38n4JNRRmXkUCogZqZfrXBPRGCB8mhSWMWID7dN/uT98Godf0HzIz5lBVtyd/FdJtnbA6EGbPfq5hv2GFdfdq6/bfs7Bv37golaADnmiGRDEMAxci1765MV9Boil7JmQoIVDKcbMyei2QvtAiJ2Jxhcb0QvWSTrMwHbrSnz2ovybMd1+SGftLqcpQJVU3G7ayzRXhWuSlwjOgQ9CB+5JSwE23nXtAmc8ByMj4LhfSnV3vNln0KIp//l23e0d/4BPMBGAefKWXPKUDTPy94a1p2moo5VXw2uljDJkd8vpnKt7VgQKCVjXz7okAoq7QLtsthk78rw==
ARC-Message-Signature: i=2; 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=fAuZPl78J+AKQyYx2JpRnpDGOtddTWBWuzLxw8MM+Vg=; b=iFZOx8ZaDA+6dBlhS20NOGjb9FTttPjZ5n4mMQtMuGOMLFYoaXaJlVwMvOyImfbuR9GasEw2NSXPpJgxZW3tuRYL00kQ32lR7VkYbpiwwJBKnYnUwkCA7A/i4WDD3aIdPlAEuA5sE/AAmnujDTUMBkWXjgUqXxXKCk962jt67rn1urL6cO6oiwd3531GRdAfpTyUpb1qqrCjCbCReuxkqnn+BMOJ8wGlETmOxGReYxx6i6pY1Gb4uP3wqJl0nduOUeqWezDx/A5Slzugui6sK7f2c7v88LIeOXr0G777i6jzzdBkpWr7q2VEWVzHfHRvpeCtxVXr5pg/cvIiJr5sfg==
ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=ietf.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fAuZPl78J+AKQyYx2JpRnpDGOtddTWBWuzLxw8MM+Vg=; b=wR2WW4CPdqC0Ibt34fJTYGcLUQHyAmdUFUjZoquuHe/VnTdgWIv2F0l88KdhEA9jf2cVCbgBMe0xAOygYrR0TR4HVDygaZZAIufShf7xFvypjX5K4Yf0YVpQwDTq6gBxp14IPYXcSwWqfOpzt04Y/nyLrF5L4rmrlivbrANcpI0=
Received: from DB6P191CA0020.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::30) by PR2PR08MB4714.eurprd08.prod.outlook.com (2603:10a6:101:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Sat, 4 Jun 2022 07:24:43 +0000
Received: from DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:28:cafe::34) by DB6P191CA0020.outlook.office365.com (2603:10a6:6:28::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13 via Frontend Transport; Sat, 4 Jun 2022 07:24:43 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT027.mail.protection.outlook.com (100.127.142.237) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12 via Frontend Transport; Sat, 4 Jun 2022 07:24:40 +0000
Received: ("Tessian outbound 5b5a41c043d3:v120"); Sat, 04 Jun 2022 07:24:40 +0000
X-CR-MTA-TID: 64aa7808
Received: from edbb48c37102.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 412D5978-E4A6-45A6-8749-F89BC9FD2A25.1; Sat, 04 Jun 2022 07:24:34 +0000
Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id edbb48c37102.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 04 Jun 2022 07:24:34 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fgrtrUT+PO0ON7S1mGDuQJtOsE3o0izQPWOkhWBBW5cmgkuOQsTf9pGfpk3WWriSCJClgdKXOBP/epv1VvS5Ahee3J+JGC53myJOGzto+APTRV89ptAPatiMcFcGqeTspQOn7sCeggENT4cHt5ja7Ga9OeR4JL7OMKBwNlAn8ALj8EAHq1XayuwqVoqHwAY1A72Q11qVZnEikqp7G844xW7yPiOo0WtXt0n+MBYvTRATmYophcktlFz8DO0sqHyL42DsPPahZpSbOxSEyynSSY2LfilkOTArcEC/8JCLzF6ENrZYrb1Dq5SVITbFdofeY9bOL0AicVtaOlfI94Lgpw==
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=fAuZPl78J+AKQyYx2JpRnpDGOtddTWBWuzLxw8MM+Vg=; b=byqDTt58gr9xvCRgsteMpaf5q727L9K4kggruYs0zKzEnfr+DnsdTC5kXwWOsDPgReFNTN4CGfTEoWo5lytwcdEXjZm7vKu435hcD6QgdE7/EbjTqb31a7HeofEnhpKof/u6ayy46YCEOApypmGse1MvGhxW4j93yjQ2iWHZnKZFonNybTYR6y54n8hIhkwjBhGvksxCbVvqKbCMBH94yxfnin3Khsn4XTPkLmXPCw1rDkXilBYTKNH3Vw3t6SRL6Co+CypPY+YYM8kYdQHtnphA2bXDH22RNuGe7tZPMyrdMf+dOtFVFdRvwsD8GqJMEuu+FmYu2B28pLF9d1gIbQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fAuZPl78J+AKQyYx2JpRnpDGOtddTWBWuzLxw8MM+Vg=; b=wR2WW4CPdqC0Ibt34fJTYGcLUQHyAmdUFUjZoquuHe/VnTdgWIv2F0l88KdhEA9jf2cVCbgBMe0xAOygYrR0TR4HVDygaZZAIufShf7xFvypjX5K4Yf0YVpQwDTq6gBxp14IPYXcSwWqfOpzt04Y/nyLrF5L4rmrlivbrANcpI0=
Received: from AS8PR08MB6392.eurprd08.prod.outlook.com (2603:10a6:20b:31a::14) by VI1PR08MB2847.eurprd08.prod.outlook.com (2603:10a6:802:19::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Sat, 4 Jun 2022 07:24:32 +0000
Received: from AS8PR08MB6392.eurprd08.prod.outlook.com ([fe80::fd45:ac7:7028:8262]) by AS8PR08MB6392.eurprd08.prod.outlook.com ([fe80::fd45:ac7:7028:8262%7]) with mapi id 15.20.5314.013; Sat, 4 Jun 2022 07:24:32 +0000
From: Simon Frost <Simon.Frost@arm.com>
To: Laurence Lundblade <lgl@island-resort.com>
CC: "rats@ietf.org" <rats@ietf.org>, Thomas Fossati <Thomas.Fossati@arm.com>
Thread-Topic: Mixed format token collections (was Re: [Rats] New RATS)
Thread-Index: AQHYd3lfFlQ/ayC4cU6TYL2bv58I+K0+2M/w
Date: Sat, 04 Jun 2022 07:24:32 +0000
Message-ID: <AS8PR08MB639240EA42105EA7B47D8D8DEFA09@AS8PR08MB6392.eurprd08.prod.outlook.com>
References: <AS8PR08MB6392C7D0CC195B30CBC789CBEFDD9@AS8PR08MB6392.eurprd08.prod.outlook.com> <51B31989-C674-4FBD-A147-514BE17E8E3E@island-resort.com>
In-Reply-To: <51B31989-C674-4FBD-A147-514BE17E8E3E@island-resort.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ts-tracking-id: 86CEF7B732BDEC4A8E9C537C69145256.0
x-checkrecipientchecked: true
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-MS-Office365-Filtering-Correlation-Id: ebf37378-c099-4541-e6f6-08da45fb4a14
x-ms-traffictypediagnostic: VI1PR08MB2847:EE_|DBAEUR03FT027:EE_|PR2PR08MB4714:EE_
X-Microsoft-Antispam-PRVS: <PR2PR08MB471486BA1861FC6D104D0C2CEFA09@PR2PR08MB4714.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: t0RnIUUATCLKyb9g+Z3+GQVds/JV5XpPgmtL8EQPpyzNRfQracfSZuuFblMOZtoUj+xRA97M5Im1kz1Xpw+JSmNBCEThBr8zvO28mWbekwypK0tgv5MJHDePP05wNh4aKtFsyHz94XH9ca9+dcf+UnOwz1eP7dGaNjEWntoE0Tm2JWnyej8mrNsAXHuU0xa6DLF+Bt4u9Bj+BT4hGnTIp3K08cmyb6y4IRDeNwFeyK7pu7DGsJNsXIH2ISnsUTuDTCYIXTLIGjfoItV4YiaaY51zxAbywLuiz+3oMVlEXR8jqewBAuDCTP4tBGGhdt82a+3fzJsk12ft+0vijk6QMkKkHUGhx6rvHD3o03ofq6J6YX8XEPU87GxOmz0yTewWHrvBuOCdSBH5jH1fCopg50bqz/lOMcLtRzJ7N5dIh/g3rn4eHWm+IJKZoFUvYwzJ1rMIReXRHQq0FLtnSL35BjxFhhgz8J6msC+zfrTlhXAw/R9gK6QTRfYJje+0mn/0PdrxPDzKwwkY+kC9WCaLbII0cLpMv9qNU3FIbcDrDvwFQD8oRfvYcUvVWokpRUo3QeI5sIM0BKQLB0jOaMb+DqQYCJQCzUUdX0L/LfWsjn6hFnLuX0hcZewP0S+EBB0USAWfD872GDd86vXnFb9EO4Opv7Kij6e03FpXQMK6z8CKFObxmCpFDi95lN9r8lJdgZLwQphy731HhVLJULwEmk6bWpZVhF6euo5MC8fEz3eHjQq2PKOSyY66SAQOvFqJfrm0Aes+N2ZXZod+vILWpQ5oq4B9+9k3wCY1HtTsRiyd6WICetIsp6z1dbbnq3Rk9dauczJcDs1vRNhU+b5wCg==
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6392.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(66946007)(66476007)(966005)(8936002)(26005)(122000001)(166002)(7696005)(86362001)(6506007)(52536014)(508600001)(5660300002)(38100700002)(2906002)(53546011)(38070700005)(71200400001)(76116006)(66446008)(8676002)(64756008)(33656002)(9686003)(4326008)(55016003)(54906003)(6916009)(316002)(83380400001)(186003)(66556008); DIR:OUT; SFP:1101;
Content-Type: multipart/alternative; boundary="_000_AS8PR08MB639240EA42105EA7B47D8D8DEFA09AS8PR08MB6392eurp_"
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2847
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: 8d5766e8-06d3-45a4-24b1-08da45fb4507
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: luHknhn6SDj6fh7MMcBI9cu3v4f15/kz1jZcEJ0aKwC8tFyANQhgxl9mjsuk3nxcRz2KPl4AZ4ZZDCz1xce3HTE7/pVh+LMa5WaLdtdfCiUH3tLB4ezn+g9Ss8J+BtTZICo3kLOH+tbmdKR8TPqWLd/OfyIm8S9aCZ4PQpO3ffsOH/hTao8tiopFMBYqrBZw82kZp/sEck6VQSuSddYyo9KGXZx2WujLQn4nPe5LkKnFkxkPMzxI/Acxf0ol0Mgw3w7WyWTLXUbzmpau7eIPTe3a3kagdUpV6jaZ+YOl6u4cTWpdCJ6e4tAcVs7eDPBVTKiSR5TCqSs3FQnvb1nkVoZpPQvIQKIyL8ZhYbKf2TC6ysWNFBoPgq2GT5NjYBjll7RysNsBUSwFHkSl+zPIyEq1K7tMX6gn3OVDv4wSDDrvoR1NIO987VuF2uluXJNvCs4oI2WQlFk1TiDUZTG5Wwz9AHe6tU/hytMuQrqi8r3DdgY+oF/9n/Onk957bKBBERZgIFrhWSNvLa/p+nBX2X3O3Y/RCbSGCvDhFc7k7SLuSwuiUoqggT/tQxQaXwnKgP1pybYB0l4PEXJ+rP51if+Ks0FHCxct5KU+R46Xn6r0SicL6s0vtojUxWNgjm1fjhK11Y+DsY/10BEGMpKVbIqRa8xUfRvZ+WYsYg3goP2r6kXOaFLvC/P/FG+r8qfJ+op9epF7nczfCT4bn0cKxBTtAGjkW+tHi0ReqmN15d8m5UiDrby0orf7NFMBXDy4dki87JaxeywAqCSfluir823bQsk8PyCuWA7f3R+sCIM=
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(26005)(33964004)(40460700003)(8676002)(4326008)(966005)(9686003)(53546011)(7696005)(6506007)(83380400001)(186003)(336012)(2906002)(54906003)(70586007)(316002)(70206006)(82310400005)(47076005)(33656002)(5660300002)(6862004)(36860700001)(55016003)(86362001)(356005)(8936002)(81166007)(508600001)(166002)(52536014); DIR:OUT; SFP:1101;
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2022 07:24:40.8181 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: ebf37378-c099-4541-e6f6-08da45fb4a14
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4714
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/JZ1MEs1hXoYTqm9iq68Y9iFYGRY>
Subject: Re: [Rats] Mixed format token collections (was Re: New RATS)
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: Sat, 04 Jun 2022 07:24:55 -0000

Thanks for pointing out the lack of support for mixed formats Laurence, I’ll raise an issue to be fixed in a future draft.

From: Laurence Lundblade <lgl@island-resort.com>
Sent: 03 June 2022 19:39
To: Simon Frost <Simon.Frost@arm.com>
Cc: rats@ietf.org; Thomas Fossati <Thomas.Fossati@arm.com>
Subject: Mixed format token collections (was Re: [Rats] New RATS)

EAT takes the view that tokens can be either JSON or CBOR, that any attester can use either format and that composite devices might be made up of sub modules that use either. Therefore in any composition scenario mixed format tokens must be accommodated.

In EAT the top-level token must be either CBOR or JSON, but a nested token doesn’t have to be the same format as the top-level. The CDDL in EAT works and the examples of the various combinations do validate using the “cddl” tool.

EAT collections don’t support mixed devices. It’s hard to tell right now if this will be a problem. Most folks are oriented around CBOR tokens, but JSON is very widely used.

A remedy to this would be to defined EAT collections as a collection of Nested-Tokens. Nested-Token is defined in EAT as the thing holds a nested token. The nested token can be either CBOR or JSON. It also accommodates the discovery of whether it is unsigned (e.g., UCCS), signed (e.g. CWT), or a detached bundle (e.g. DEB). On the CBOR side it does this with tags. On the JSON side there is a type string.

I think the format neutral CDDL in collection would probably be this:

   Collection = {
       ? eat-collection-identifier,
       2* Nested-Token
   }

Personally, I think this should be addressed in EAT collections. If it is not addressed it should be called out that it is not addressed. If it is not addressed there is a risk it will have to be addressed by a separate standard in the future.

LL



(CDDL seems reasonably complete when you define a protocol that is always serialized fully in JSON or fully in CBOR, but it is messy when defining a protocol that nests JSON in CBOR and vice versa.

Most of the CDDL in EAT can be serialized as either JSON or CBOR, but in the case of the top-level and token nesting it wasn’t possible, so there’s specific CDDL for JSON and for CBOR for those. The problem is the .feature control used for the JC<> is subject to the greedy matching of a PEG and will always go JSON when the structure represented is the same in CBOR and JSON.

There’s some more details to what the EAT CDDL did to handle all this that I’m not mentioning here).




On May 30, 2022, at 4:33 AM, Simon Frost <Simon.Frost@arm.com<mailto:Simon.Frost@arm.com>> wrote:

FYI. I’ve just submitted a new draft for a proposed extension to the top level object in EAT.

There’s a full justification in the doc, but as a quick summary, there are difficulties in creating a top level ‘envelope’ object for a multi-token system while remaining compatible with EAT. Given the recent move to fix the list of top level objects but embrace extensions, this approach seems to be an appropriate proposal.

See: https://datatracker.ietf.org/doc/draft-frost-rats-eat-collection/ & https://github.com/SimonFrost-Arm/draft-frost-rats-eat-collection

Thanks
Simon

Simon Frost
Senior Principal Systems Solution Architect, ATG, Arm
Mob: +44 7855 265691

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________
RATS mailing list
RATS@ietf.org<mailto:RATS@ietf.org>
https://www.ietf.org/mailman/listinfo/rats

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.