Re: [COSE] [IANA #1284212] expert review for draft-ietf-cose-cwt-claims-in-headers (cose)

Michael Jones <michael_b_jones@hotmail.com> Sun, 05 November 2023 09:19 UTC

Return-Path: <michael_b_jones@hotmail.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D1B3C16F40F for <cose@ietfa.amsl.com>; Sun, 5 Nov 2023 01:19:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.234
X-Spam-Level:
X-Spam-Status: No, score=-6.234 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 (2048-bit key) header.d=hotmail.com
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 xFZpNhMyqjo5 for <cose@ietfa.amsl.com>; Sun, 5 Nov 2023 01:18:58 -0800 (PST)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2091.outbound.protection.outlook.com [40.92.19.91]) (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 E1372C16F414 for <cose@ietf.org>; Sun, 5 Nov 2023 01:18:57 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gCYRely9RIciO3r0LCOrh/V6jT1Rxq4gCCKIP3ZUyq6YaafS1sXT20Cb7yQtRpwMnuBkqtQ2X3hNjFN5Ssf00A+bqQcAgH2meFczWiA7AV7dVrukuhJOjeuyEv8boQ3ORlTY/vyu4DJifHDssZ3uABSxBXqaJej3d0kCOWLekGzPGPRSChn7eXNif7nmni+sT/Dlu6EagiTOByc41FHaXAGBwaMFBMv7Tjc8gjOUKA2EyQM4YpVTnYXSz5gargcYQgFH8Q4Dsx+B9dWE0imQ9gkzyoMwYXLMZx7SMT7Ctqi+hGRLyrpT38qGCC+7DDpzFGV0UFc69ioiey7eq9AUPQ==
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=ESk3vXvvWWZ3eeNJvezxDgrSyjw5EOFxbaWzuUR48rc=; b=gJs9XLmKEDW4MC9Mh7zoNXMXFFQI0hdpYhu1OgGckh0kpsaLG857OMe8EvQm13BhTYLLg5zB/HzodulRUVGE46GyVOjnV80+THcw2X8ol5sBlzeaz6/hPqxijnDE0E5ii7sV6fM/7Z/8T1MFjaewIdKyyL+z3Hb0pa4kmpkn9FQgJlGVS+C3nmRvc1zQl7upUijVfZxMRww/trcu7RLiQ9hGb3rbBaRjL8oM7O1VIOFzYdvDYOmUxeg99SNBuuBKhsbAQ7ZBpIYUHhz+nHwsS1VlL9mlQSfklqaCqNFzlsxpnMe9pDLEcKt6lfRski4o2o5zbPAMRB0V4DqBZZgzow==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ESk3vXvvWWZ3eeNJvezxDgrSyjw5EOFxbaWzuUR48rc=; b=dgXRycUWlP6ow2DWpNJ5CqQmbtdhNesZiMZu5QXqz+ummZX4ud1Lhe73HDCsW93wRI0Iuc5dHNQLEdAQtQO514xpNbnnNexagjlSFAL1psc8TAZzEGZMkriaF2sDq4YgbQtoQPy3Xj/RMzPsWBUavRda/GCTLYqmZNElRv858wET0slSKNtXXyxzFpaPtrlwYWyZlRRCse1KVwN0nrxim7GC+abhs8w1Vw28/uy5PnuEUvYB3B8JVneh99rCxlmaZ4FqgjUm8d8rGW5X39V2mc7fnymcsmr6DBVZBPGmexrfPZ5le3QK2b2xuAW+8nPQjHVBbMR0sq/UNMPys9iBkw==
Received: from SJ0PR02MB7439.namprd02.prod.outlook.com (2603:10b6:a03:295::14) by SJ0PR02MB8658.namprd02.prod.outlook.com (2603:10b6:a03:3f3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.25; Sun, 5 Nov 2023 09:18:56 +0000
Received: from SJ0PR02MB7439.namprd02.prod.outlook.com ([fe80::f0a:7be5:5407:5152]) by SJ0PR02MB7439.namprd02.prod.outlook.com ([fe80::f0a:7be5:5407:5152%6]) with mapi id 15.20.6954.021; Sun, 5 Nov 2023 09:18:56 +0000
From: Michael Jones <michael_b_jones@hotmail.com>
To: Carsten Bormann <cabo@tzi.org>
CC: "lgl island-resort.com" <lgl@island-resort.com>, Francesca Palombini <francesca.palombini@ericsson.com>, "drafts-expert-review-comment@iana.org" <drafts-expert-review-comment@iana.org>, "cose@ietf.org" <cose@ietf.org>, "paul.wouters@aiven.io" <paul.wouters@aiven.io>
Thread-Topic: [COSE] [IANA #1284212] expert review for draft-ietf-cose-cwt-claims-in-headers (cose)
Thread-Index: AQHaCDkP9UjpiCPQckyWupuy843ctbBco/WQgACxYgCAAB65gIAARemwgAASRQCAAAoXsIAAAxIAgAAAOxCAAAKOAIAAALPQgAAhnACADJQegIAABwuAgADCnICAABnTAIAABfoAgAAAiLA=
Date: Sun, 05 Nov 2023 09:18:55 +0000
Message-ID: <SJ0PR02MB7439B995FAE830D1F7509889B7ABA@SJ0PR02MB7439.namprd02.prod.outlook.com>
References: <RT-Ticket-1284212@icann.org> <rt-5.0.3-580051-1697567816-1595.1284212-9-0@icann.org> <rt-5.0.3-580636-1697568304-0.1284212-9-0@icann.org> <AS1PR07MB8616EFA12DB4F47075B7AB5198DDA@AS1PR07MB8616.eurprd07.prod.outlook.com> <MW4PR02MB7428022AEA2B4574410EE7EEB7DDA@MW4PR02MB7428.namprd02.prod.outlook.com> <AS1PR07MB8616E407B141D0C56F7EC65398DCA@AS1PR07MB8616.eurprd07.prod.outlook.com> <F465B3E6-B2CA-4580-B006-5DE7D8E9AABD@tzi.org> <MW4PR02MB7428E1B8942D1D64A825B0EEB7DCA@MW4PR02MB7428.namprd02.prod.outlook.com> <D4A1FC53-8D45-455B-8DF0-F3692F96AE4A@tzi.org> <MW4PR02MB7428A11CC4B4061109E5A07DB7DCA@MW4PR02MB7428.namprd02.prod.outlook.com> <56022A38-8D1A-4C65-A535-E3D45F3C3C7E@tzi.org> <MW4PR02MB7428751A6DC9804B8B15B66BB7DCA@MW4PR02MB7428.namprd02.prod.outlook.com> <641BD038-522A-41C2-B2C2-9E3C118DE915@tzi.org> <MW4PR02MB7428C73DA8A708AB8B860923B7DCA@MW4PR02MB7428.namprd02.prod.outlook.com> <4F61896C-4BAD-436E-AC31-3F50E9B93BF7@island-resort.com> <B7F75895-A2CD-4BDB-BDD9-08AE784690A2@tzi.org> <A5700329-C5E2-41B8-9AA8-9455855A088F@island-resort.com> <B2B317AD-CA0C-4B63-B797-572EF4D64E66@tzi.org> <SJ0PR02MB7439EBC79259647E7BF45789B7ABA@SJ0PR02MB7439.namprd02.prod.outlook.com> <3E122426-7C91-4362-A5BF-C82D4417F482@tzi.org>
In-Reply-To: <3E122426-7C91-4362-A5BF-C82D4417F482@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [XpsNccheC+UMr+/VXfpGg188zMxAElpVfJKmSEWJSKqmX0g4nPViFH0hGb+Cjvmn]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR02MB7439:EE_|SJ0PR02MB8658:EE_
x-ms-office365-filtering-correlation-id: ef9e3ad0-2c6e-4bdd-6553-08dbdde03c5c
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: itjQr5kHlnCW/kXbML9vMiYIYnianHBviCpMufZ5tN8p4mTgcM/XYXFMPKX3om8dA+t/PmOKbZLCKilS4tAt4faoHjricf79/0xq3sy2US4nlEmV8KRfeQo39Xqr3tinviRDsxdJlytZO4GobJvnSpXVuNb4pNmVggycbCfXBjKEj1rtLrDHiqq9fU+lMtkwxmBscrCqoQgpa4/2UUAumlf4vQ/+x7TaEYNHTWsdINq+I80E6YusAW1HSG7jkOgm8dsBFjS/N7YNoATW/jB/WkrVhrVc2EtxXcCvHpEq6KPbnFyYL7Etykkj84kF9aifeUzV/I+fXLn5izhqukqoxQ/q4ufX43BU8K/ReaHOScyjfDmyN+xHII9NuWglMATJLJTFXBc4+QUo2nvHsFAyCHQOGYg979B7daMZk/tXLP40tjKVvEgfzigC20T+upaea44HqT9MZSDYDEMgiNgf/OyuoO1F/slm6IL3Dl89YzigJp2jz+jd0GMvrcWzFqYDehOhXYeKnpHwAq0s40a33YSGnA5M8+WF/vMaS9QRAeKlLXosRkorSsxEpaOSuHlW
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: u0/8LR3g8exeot4sB96yhkmX5X1sVJBKpM2qsagp96W7lPJtKcHOXdz/WE4m7OC9xDEjOUEOQxlsuvZ7X4IkQrbba8kpQrD1xToRqtkJvCMMPgViaWClZqcxKngQ9WLQM2j5bt0o+tkLF4fqRQRXOkQDBWXQ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B4ce7KYsIenELJhL2z7fIMNMY7hRaeEzh3FO1Iio7QsQWvNsHGSe1F2eBUlw0/BcGYgmNtyjeEBxSjV4k=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR02MB7439.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: ef9e3ad0-2c6e-4bdd-6553-08dbdde03c5c
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2023 09:18:55.7745 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR02MB8658
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/1ZJDvewnfsia6pZK5Cd2U-54D6s>
Subject: Re: [COSE] [IANA #1284212] expert review for draft-ietf-cose-cwt-claims-in-headers (cose)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Nov 2023 09:19:02 -0000

Thanks Carsten,

First, I agree with you on the importance of "typ".  As you know, draft-ietf-cose-typ-header-parameter is defining a "typ" header parameter for COSE, so we're providing a means of declaring the semantics of a COSE object in another simple specification.

You wrote "In the COSE world, we try to be a bit more tied down on the semantics of the information in a COSE data item.  So you are motivating why using a CWT as a header parameter that is not further qualified as to its meaning in the COSE data item, should not be possible in COSE."  I see what you're saying but disagree both with the specifics and your conclusion.  Yes, CBOR does specify what the data type of a value is.  But knowing that something is a CBOR string doesn't tell you whether it's a family name or Pantone color name or a postal address.  You might respond, yes, but there are CBOR Tags, but the use of CBOR Tags is optional (unless, of course, required by the profile being used).  You know no more about the semantics of COSE payloads than you do about CBOR objects - again, unless you know the profile.

Indeed, taking your discussion to its logical conclusion, you might have also written "So you are motivating why using a CWT Claims Set as a COSE payload that is not further qualified as to its meaning in the COSE data item, should not be possible in COSE."  And yet that's exactly what RFC 8392 defines.  People have found it to be useful.

You wrote "What I am interested in right now is using these as COSE header parameters."  So am I. :-)  When contained in COSE header parameters, without a profile, you know exactly as much about the semantics of CWT claims as you do when they occur in the payload.  And with a profile, you know the semantics no matter whether the CWT claims are in the payload or the header parameter.  It's parallel in its semantic contents either way.  As I view it, that's as it should be.

Therefore, practically, I'd ask you to support the registration of the header parameter.  At least three working groups need something like it.  And I'd also ask you to support us sharing the same header parameter number between EDHOC and cwt-claims-in-headers.  The EDHOC profile of it will specify that the "cnf" claim MUST be present *and* how to use it.  It's a profile - again, as it should be.

				Best wishes,
				-- Mike

-----Original Message-----
From: Carsten Bormann <cabo@tzi.org> 
Sent: Sunday, November 5, 2023 9:59 AM
To: Michael Jones <michael_b_jones@hotmail.com>
Cc: lgl island-resort.com <lgl@island-resort.com>; Francesca Palombini <francesca.palombini@ericsson.com>; drafts-expert-review-comment@iana.org; cose@ietf.org; paul.wouters@aiven.io
Subject: Re: [COSE] [IANA #1284212] expert review for draft-ietf-cose-cwt-claims-in-headers (cose)

On Nov 5, 2023, at 09:41, Michael Jones <michael_b_jones@hotmail.com> wrote:
> 
> Carsten, you asked " In all these cases, does the CWT added to the header form its own CWT that can be evaluated as such independently before jumping into the COSE object, or is it just intended to convey additional parameters to the processing intended for the COSE object with the other header parameters?"
> 
> To be clear, even normal CWTs (and JWTs) are simply bags of claims.  Their definitions express syntax - not fully-actionable semantics.  Profiles define semantics for the kinds of CWTs (or JWTs) that they define.  Cwt-claims-in-headers are the same.  They define syntax for where you can put claims.  It's up to profiles like lake-edhoc or SCITT to define how they're using those claims and what processing is associate with them.  Cwt-claims-in-headers doesn't change anything in that regard.

Hi Mike,

thank you for elucidating this so clearly.
You provide a description of JWTs and CWTs.

What I am interested in right now is using these as COSE header parameters.
In the COSE world, we try to be a bit more tied down on the semantics of the information in a COSE data item.
So you are motivating why using a CWT as a header parameter that is not further qualified as to its meaning in the COSE data item, should not be possible in COSE.

Together with an unambiguous “profile" identification, where the profile defines the semantics of any CCSes/CWTs included unambiguously, CWTs (or CCSes) do make sense in a COSE header.

Giving the header parameter carrying them a header parameter number that is specific to the usage (profile, if you want to call it this way) is one way to do this, and that is why I like the way EDHOC is using the kccs/kcwt header parameters.

Using a future “typ” parameter might supply semantics as well; to make a generic CCS/CWT header parameter useful we just would need to ensure that a “typ” is present and that this “typ" actually does define the semantics of a generic CCS/CWT header parameter (and possibly some restrictions on that parameter and where it may occur).  We could register a “typ” in conjunction with the generic CCS/CWT header parameter.

Grüße, Carsten