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

Carsten Bormann <cabo@tzi.org> Tue, 09 April 2024 18:49 UTC

Return-Path: <cabo@tzi.org>
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 5C23BC14CF17; Tue, 9 Apr 2024 11:49:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.897
X-Spam-Level:
X-Spam-Status: No, score=-6.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 Tcra-xFzz1rC; Tue, 9 Apr 2024 11:49:47 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87833C14F5FD; Tue, 9 Apr 2024 11:49:43 -0700 (PDT)
Received: from smtpclient.apple (p5089a101.dip0.t-ipconnect.de [80.137.161.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4VDZkr3qG7zDCbt; Tue, 9 Apr 2024 20:49:40 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <3FECD79D-C19A-4F04-BF04-A39AC4962C2D@island-resort.com>
Date: Tue, 09 Apr 2024 20:49:29 +0200
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>
Content-Transfer-Encoding: quoted-printable
Message-Id: <31FEFB97-87CD-4B6D-86A7-06CBE12D51E8@tzi.org>
References: <ZeMG7tpfKLyf3aSz@hephaistos.amsuess.com> <ZhPIC9DyzcpyhjPI@hephaistos.amsuess.com> <3FECD79D-C19A-4F04-BF04-A39AC4962C2D@island-resort.com>
To: "lgl island-resort.com" <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/bN-ooMCTBzoyS3HtNaguLNiemrY>
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: Tue, 09 Apr 2024 18:49:52 -0000

Hi Laurence,

thank you for this response.

> On 9. Apr 2024, at 20:11, lgl island-resort.com <lgl@island-resort.com> wrote:
> 
> Is there a .join that works for bstr? Seems useful to me.

That is indeed a good point.
We could do that with a different control operator (leaving .join for text strings only), or by making .join be responsive to whether the array on the control side contains text or byte strings.
I’ll try to come up with a proposal.

> Also, what about converting a b64 text string into a bstr? I can’t describe a specific use case off the top of my head, but maybe?

You mean, different from what .b64u/.b64c and friends do?
Maybe I do need an example to understand what this would be.

> Ideally, I’d try re doing the cddl for EAT with these to see how they work. EAT does a lot of CBOR-JSON mixing so it’s a good test. Thomas offered to help too. I’m not going to promise completing that, but I’ll give it a try.

That would certainly be a good, realistic test!

> Is there a version of the cddl tool that supports these available?

“In the CDDL tool described in Appendix F of [RFC8610], the control operators defined in the present revision of this specification are implemented as of version 0.10.4” [1].  (The cddl gem currently is at 0.11.2.)

[1]: https://www.ietf.org/archive/id/draft-ietf-cbor-cddl-more-control-04.html#section-5-2

Grüße, Carsten