Re: [Cbor] Reviews and shepherd for draft-ietf-cbor-cddl-more-control

"lgl island-resort.com" <lgl@island-resort.com> Mon, 15 April 2024 18:47 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4E3A0C14CE2C; Mon, 15 Apr 2024 11:47:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001] 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 7O67y42ArKor; Mon, 15 Apr 2024 11:47:52 -0700 (PDT)
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2138.outbound.protection.outlook.com [40.107.94.138]) (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 81BEEC14CE25; Mon, 15 Apr 2024 11:47:52 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdO9QnXbsCgB68HE/136XDdohifPvEfymTp0fsPW6fTBsarcJq5RRLPdwtXpSxTRSJxt225Usp6xIzbGWlyNAcsn0kQOWjvOgS4OE1BZ73BRwLBwO58HzAQ67LIV81llgqZYc0snAcrfezcX0Bw/DuutuFL5iAIdJSvcIdZWNnw6Hwq8M/6iBo6ujE5huQgbVpYp7gff3rBfzfVRXROIdZsS40c8Rydiv6grOfSIVdPWWbjJQA6u0hYNjApsvuSmPloEWWONU0fs1jrOH3kFHDrJzJBrG31DL5GmERhzsXetga8eta2XlzeLdZ1fUPf9SPmLKwkeJhb1RgkbJ0hH5g==
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=8p81yJrorcGCqnue/wyh2HtDtbchIoINnF5B++zF7Tk=; b=Igi3tuqrksHuBFNLW+DKbk0y71FU+kDSNN8tAiHqGN1nxqbUodRqClFWIezLbzvj0Du6/M+EJC8OpiRDbsPTUVl6oX0QNRRhjYZSM/OPGVh5lXTolsXf7T5On9XxNbrdawVjg98aOo10codamafrn+ID37Qnr6CWdl3jSRS2wEkp+isMVqskMbop+Jr1FIw62V+oRPNgAOCgUxKnHbP0+rPrfPyFSjdhJMrU1n1aSEngrFreU/keioc1hVtBV+ly3+2dxagpglKXBrGNdf/+2oNlTWY+UyMeCSCSeB9clbXIYhPatm1glEpc1zTF/E4qUIokgNwTXwVs8YB5WJEItg==
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
Received: from PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8) by MN0PR22MB5662.namprd22.prod.outlook.com (2603:10b6:208:4a5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.49; Mon, 15 Apr 2024 18:47:48 +0000
Received: from PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::1cab:7344:221c:bb8e]) by PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::1cab:7344:221c:bb8e%5]) with mapi id 15.20.7409.042; Mon, 15 Apr 2024 18:47:48 +0000
From: "lgl island-resort.com" <lgl@island-resort.com>
To: Carsten Bormann <cabo@tzi.org>
CC: Christian Amsüss <christian@amsuess.com>, "cbor@ietf.org" <cbor@ietf.org>, "draft-ietf-cbor-cddl-more-control@ietf.org" <draft-ietf-cbor-cddl-more-control@ietf.org>
Thread-Topic: [Cbor] Reviews and shepherd for draft-ietf-cbor-cddl-more-control
Thread-Index: AQHaiaBHsJSaT6YN1UegnAVoy4cepLFgP1yAgAAKsYCAAqT9gIAAJZaAgAai5QA=
Date: Mon, 15 Apr 2024 18:47:48 +0000
Message-ID: <C2F1EF99-23DB-4575-A1D7-80560B14533D@island-resort.com>
References: <ZeMG7tpfKLyf3aSz@hephaistos.amsuess.com> <ZhPIC9DyzcpyhjPI@hephaistos.amsuess.com> <3FECD79D-C19A-4F04-BF04-A39AC4962C2D@island-resort.com> <31FEFB97-87CD-4B6D-86A7-06CBE12D51E8@tzi.org> <EF87DF03-8483-45DD-AA80-8E885BB78F75@island-resort.com> <824851A4-BB83-400A-BBBE-2BFA5E6A4D60@tzi.org>
In-Reply-To: <824851A4-BB83-400A-BBBE-2BFA5E6A4D60@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=island-resort.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH7PR22MB3092:EE_|MN0PR22MB5662:EE_
x-ms-office365-filtering-correlation-id: 7edec3f3-7cb2-4379-1212-08dc5d7c8bf6
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 5mncntDtrfR9ol/ItCuxxjvMzp59+WMtP2nPFf6YrojG7vgHGYnkJq/2fZqSj1mmbokAHxVtDokNj9VbWI6RqJ19ixY/LPh8XO94rt+zxrzs2IPt8r8Nd7eK5ncFpc/tWovgAZI5j/PdzWe5AXgub54iIRuseVcUWUnqe6uRbEAuuFrg2v9Mau2ihPk3iicbDA2zaEN1L6Xchgv51QKRagUnlzDHQ9SzvaQUhkd5AERziqV95ULh0+OdivjuDbkoJHWvHmmN8YKi6y/6LreWUz85ZHBSHBGTWpVBPkJYjpFCYfHvsEtBYDl1AmE6zFucgK8MAZYl7pwfn940wTajqR3JT1X6E5GNS5Fx5y1KCmydxzJrSGkCAgKdukrRcJIMePEG856uD+6bk06rVT7teL4hyUCsacqFMImygrqz21FUMzoZHsjtwRfzBb1e1XCd4D/CWoI/PtRJunCoBWIdmyPY5bSkMK4aN7wQMaiGMVH2uVurKdExV7N3IRYkb+l2drlPU+4A7oSLYuNL9xO/CvC0+PHgErAG7JTQ5uqpoIkZjCT8uxbUhSL1P62aKtxXkdxuXf0Af+PX39zDxqQ1uzeQI/eYnnRL5OJdxGdLJpSpMtUhc+R+FjI27VVMvXm6zdEkawV621tQPxvzVvAik7LoBw85ecGejgqHig0V8/YImSvwX4S5atg325hiqplczJBMpEsVRMX3/brMdI8umeK2EDi9YEmwIDiw6IrkohI=
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:(13230031)(376005)(1800799015)(366007)(38070700009); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: T5DHlu0WAaztaSF2qhNevw7XFoM74ely4HlaBePOUjQ9EOtmS4UtYL4ws6BAKZCy8oxFHl8b3OfkhC9pa0dQHavsRQtNbrqS77VMhDtIPg8GK18uDAqNKKiMfz3d3VyXLJJyzBan1w7Bx74f9Ls9V/3/K+jF5/F8hjy+wXzhZWwUznN3knf8+TSyqBion8wLMZyAblCdnWymEOtaMgr/1CgncE2O7ZmWjrDeUtUuKIrW2pMPXZCPhPPTf2T85OWl3RJmmbwAutS8CK1aRFJ3352iqbgwgSs4CIGQKiFAcmMvvXa9Jj46pHuSkvHGmUPjSVzEFnbRTef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hJXxRPm5wt2IfXs7D0MjAsmBHVF0oDzR5Sbi69BGQC1MSmteJcsSax0dypw6opyKGvk6uY5W1rudHlSYqq0Yukn6fA/swleUNecsYVDEQIb9MCP568k1frELspzsiDgcbM7sfKqqBAgk4tNhRa00CYQ2nSZg/XDbuVjE4wO/oXp5qoc0xbhqXpwKwz46ikK0K
Content-Type: multipart/alternative; boundary="_000_C2F1EF9923DB4575A1D780560B14533Dislandresortcom_"
MIME-Version: 1.0
X-OriginatorOrg: island-resort.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3092.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7edec3f3-7cb2-4379-1212-08dc5d7c8bf6
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2024 18:47:48.4933 (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: v8Y6d8dFya0ioTKWyDDKNc7o8SsWF+IgcbacSuwOBBkHr/3/umwLl5L38dvalHzkeGIm02N0/Es/vmVVHSEP8A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR22MB5662
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8b5e77vK8fS8mBzFqyR9vIC_mM8>
Subject: Re: [Cbor] Reviews and shepherd for draft-ietf-cbor-cddl-more-control
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Apr 2024 18:47:53 -0000

This is in reference to this text in the draft.

In general, this control operator is hard to validate as it would require full parser functionality. It is therefore recommended to only use it in simple cases, and leave full parsing to ABNF (see Section 3 of [RFC9165]) or similar.

On Apr 11, 2024, at 6:27 AM, Carsten Bormann <cabo@tzi.org> wrote:

Plaining to try out .join to validate the JWT message, a series of b64 strings separated by “.”.

Successfully got that to work, but only after Carsten said to add an extra layer of (). I suspect the example in the document won’t work without the extra () either.


So far not sure what to make of the comment about complex use of .join and switching to ABNF.  Seems more like tool documentation than a standards.

I think it is useful to mention that it is not easy to do a full implementation of this.

Maybe this instead:

This control operator is hard to fully implement. Some cddl tools may only partially implement it or not implement it at all. Authors of CDDL documents using this should check to see if the cddl tools they plan to use support it.

Personally, I don’t know what “simple cases” are here, so I don’t find that text useful. Seems like most of us using CDDL to author documents won’t know what simple is either.

It’s hard for a document author specifying with CDDL to know if they should use .join or not. If one is planning on broad and general use of some CDDL for validation, probably not at this point. On the other hand it is powerful and useful.

Note that I’m thinking of draft-ietf-cbor-cddl-more-control and friends as instructions to IETF document authors as well as a standards-track specification for implementors of CDDL tools.

LL