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

"lgl island-resort.com" <lgl@island-resort.com> Fri, 12 April 2024 18:59 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 0CADCC14F69B; Fri, 12 Apr 2024 11:59:11 -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 sEjThIp81Gw8; Fri, 12 Apr 2024 11:59:06 -0700 (PDT)
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2094.outbound.protection.outlook.com [40.107.236.94]) (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 42049C14F696; Fri, 12 Apr 2024 11:59:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZptwaaItag7ATTnKC/nPyxqxn1grKq3UNmbBhrsi3U0PZ89LSdqdUsZUhZ47F+jk8Xwcq23cDEuLwRvLMOblNqIkHunR8qUxTxttApGNeAmKE1KpObJUvV3cQ9U3ZBk/1Z7SgI7Gy7IB2JEp9NzE0gFgMhR2jzYoplcV12/uAh2KOMGKsEISPPdroG/nM7o+kuq5ex5XKxwi7vS96I91Ouyfazskzbxz4DxmvdhYYvvwbWDXJgZmD5uBlvxokYctc2Xrd1pPoslAYq9sAbzWoJaGMh7fQ58Z2LYdU/SiB9TNImew3C/3cirkqqjRi/KITox7hsu8VEvWYiqsoVR03g==
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=lTVq3dNXn5qVlJKaCf9MYop3SOpSvmdMnHGAdl9GeOU=; b=ZB+sBjgo0VDgCTZTgdvIt6nYYCZaPfDjhTRpqVAk3nei/8RK+7aUZmyYi6j1roaNQ0E1pFWpNBAEOE7h4RAIAZ8qrEsHhuNeiPB0r/QY0lwrSw8a6Jvs8X5Q550P1A2Rfd8HgvmDx8kUcNqRSVzbYSl+J/Nz0cZZlvhlOsffP9QkfLn/SMK27UXBuvZ62VQ924SFpIKup8tv8zHZ59/xOJO03ZX/Z9daOdoCq34gCU84H24z89bLjostHKrFPd6W+75Iuap9ifl1nuG0HfppOeH9Nj9/Na1JwrqL2yaOjfBj9HxV/uzrE8ZqseG2fz9ksxcXchYmMdENxUlg56R5sA==
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 PH0PR22MB2844.namprd22.prod.outlook.com (2603:10b6:510:f7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 12 Apr 2024 18:59:02 +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; Fri, 12 Apr 2024 18:59:02 +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: AQHaiaBHsJSaT6YN1UegnAVoy4cepLFgP1yAgAAKsYCAAqT9gIAAJZaAgAHvCYA=
Date: Fri, 12 Apr 2024 18:59:02 +0000
Message-ID: <BBC88890-56DF-4A38-BFE6-A2CF27239ECA@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_|PH0PR22MB2844:EE_
x-ms-office365-filtering-correlation-id: 701d3a52-05d1-4791-9027-08dc5b229e3c
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 8V8L006VPlgV2LsTJXZMuucDgwe32gQpDN8dot0uqnKU18TTXJB6TCjISlKmcJLCNgINYn90uIOzCwYcp7i/HSVeSleJGHs97vZxzx4U/02s2gjJdEZSTTESsldVCa4x+dYkfIZaLuQWRJrR/x9ouXemU34qVbCT4PB1QgKxMZQXqkqo/lMJhiWSInmGqp/Lej4bEQq8lGo3PYDQRDAUCjjT7tmCKv4+DDW6mz3ABP0OptKQSTDGEH40wKXB+J9KZyljEDodT5pXJ9eDYpdW6ssyfWN6ykFO6DRX3oFoQJeDMX9D/55I2WV+/q4w30uHdWTjQCaom6dyu8Kyhu/UvI3FsPRXbI9e7ntBnI6pucbkEC99BECJ29ry+BrBmn2jgVTJDVhsdLLN8Z+mZ9hJVuUeeoG6J/VDS4XtcVqYa80TzDeAGtNJ+NIY8R9H1Ppi42Xtc0giYDPtAKJ+/Ug7kQLhTEvunJpI5rtBwrAgsuETB3sUt+NYzUvjgD1iRvdd2ps5UcybyaJWKhbqDlDZ/QOjUOp5CUHdJ5oBKaGg5A56CNBEMEMt9otsIdZ9/zAP2zGAdebVu17Avvyb6fChWzDlslenywUyjEO6gFjG1Afh1u0Ui9W47RDouVnUpvXRZ/W4yWUPKEGzEps12+Caxd3967cKpoKvkdMBR+UYL/rBPaoSIf85lKQrUdn8cNGCPbFYyH8q+h1vromxglhqI9k0D3/7xrD6nYdVCzaObjQ=
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: OsAZRa1/nzkVZaVfIt+ERJ5Blkuy6gXee7HQq8F1fi5aFQA42QsbUmDq99rpjJu/DfnxYaAScQYdPvpcSGTZ9Y8jxTjYOyh/aho4fl2kjomZUbOLF7hUEdLKUk24eI5Tx+ldDqtiKQWgiEMbzRbrCvlfzE0pWhUBUnUT75Mw8Ua1qPUNjrH7Xy+JSuc7ApRaUDceayZuaAUJF+Owkxrph7WM7hRe4rjSMBFx0y7MKPcMafIukkfRwW+05Y0EoHCb2qdSZYtam4DcjoxMuzJnf2XXQPrus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ziuBl7mwHpDnMBGZZuiMou+Oxvb93ufL6KK3T6NvSAgbcJBnF+u3xdTGinVdaYqAAxlHG3K2/vMX1hJScdyEW7/z2NJoHbQ6KlCKoRdgPJdLablQjxy/a5aciY3TXmm6UnjoPZaJpNjq6NM58Ay/uYD2XoSdE8BKIu6XH2lUZzpUCuMWrdSYS86CpHwred0yN/OtFH0ZiJBImGypK1xzgq2cKnTwAoPTZf+nJDCY2GEYEYjpuBuvXsi4wxrIIoYReBkbhYRWZA==
Content-Type: multipart/alternative; boundary="_000_BBC8889056DF4A38BFE6A2CF27239ECAislandresortcom_"
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: 701d3a52-05d1-4791-9027-08dc5b229e3c
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2024 18:59:02.1352 (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: KRKEAFK05tKetgwn9exhtttdWcptlu9T1illN9ub2mb2Za1kDw/3sWYDgrALNjsDlFGI0r2MEfFiTZgckqb2aw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR22MB2844
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/YOwXycnOQ3J8jKryJEYrKunaTFc>
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: Fri, 12 Apr 2024 18:59:11 -0000

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

It would be nice if the cddl tool had a —version option so you could know easily what you have and put version dependency in document validation scripts. I wasn’t planning on updating the CDDL in the to-be-published EAT because you can’t error out saying “you need a new version of the cddl tool”.

I added a version number to the usage message in 0.11.3.

Thx!


I've done some work on this, mostly putting .b64u to work. Much is good and makes the CDDL neater and validation more thorough. The interesting one is validating https://github.com/ietf-rats-wg/eat/blob/master/cddl/Example-Tokens/deb.json

Ah, this is about describing the JWT by dividing it into its three parts, essentially a “split”-like usage of “.join”…

Hmm.


b64u should work on text strings, not just on byte strings.

Well, it accepts a text string as the target (left hand side), and a byte string as its controller (right hand side).
Do you have an example where you need something different?

The use case is JWT and EAT. JSON data that they sign is b64 wrapped for protection in transit.

In EAT, it’s a Claims-Set that is wrapped so it is desired that the validation descend into the Claims-Set. The Claims-Set wrapping is part of the detached claims sets and detached eat bundles.



(In a pinch, .cat can be used as a conversion operator between text and byte strings, but I’m not sure the tool is very smart about that.)

Not sure how to use .cat here. I tried a little, but couldn't’ get it to work.

LL