Re: [Rats] [Cbor] πŸ”” WGLC on draft-ietf-cbor-tags-oid-02

Carsten Bormann <cabo@tzi.org> Thu, 29 October 2020 20:25 UTC

Return-Path: <cabo@tzi.org>
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 A73423A084D; Thu, 29 Oct 2020 13:25:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k9kHXfU4bjUk; Thu, 29 Oct 2020 13:25:48 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9CC883A0829; Thu, 29 Oct 2020 13:25:47 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc60.dip0.t-ipconnect.de [84.141.204.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4CMcQK3y9TzygC; Thu, 29 Oct 2020 21:25:45 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <F835894B-8149-4884-AEFB-76EBD07DFB61@island-resort.com>
Date: Thu, 29 Oct 2020 21:25:45 +0100
Cc: Francesca Palombini <francesca.palombini=40ericsson.com@dmarc.ietf.org>, "sacm@ietf.org" <sacm@ietf.org>, "rats@ietf.org" <rats@ietf.org>, "draft-ietf-cbor-tags-oid@ietf.org" <draft-ietf-cbor-tags-oid@ietf.org>
X-Mao-Original-Outgoing-Id: 625695945.082491-b37391a99c74ed336d37b36f3136858b
Content-Transfer-Encoding: quoted-printable
Message-Id: <3BBDCDD5-BEAC-4826-8D84-13814CF210C8@tzi.org>
References: <12027D40-562D-4859-8A3B-25551C5CBAC8@ericsson.com> <F835894B-8149-4884-AEFB-76EBD07DFB61@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/r1hjFZs7sjwYycmf8PZZRpDU3ls>
Subject: Re: [Rats] [Cbor] πŸ”” WGLC on draft-ietf-cbor-tags-oid-02
X-BeenThere: rats@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 29 Oct 2020 20:25:51 -0000

Hi Laurence,

On 2020-10-29, at 20:44, Laurence Lundblade <lgl@island-resort.com> wrote:
> 
> The question I have is whether there is any intent for these OIDs to be keys or labels in CBOR maps.

The way tag factoring (Section 5 [1]) works for maps was specifically meant to support this.

> In X.509/PKIX extensions are labeled by OIDs. Would there be similar use in CBOR?

Please see the example on page 8 [2] for such usage.

> Typically, CBOR map labels are integers and sometimes text strings. Having to pay attention to tags in map keys might be very inconvenient for some CBOR decoders, though that could be avoided in a given protocol by saying the map keys are byte strings that borrow tag 111 content eliminating the need for the tag.

That is of course also possible.

Which reminds me that we specify CDDL control operators, but not prelude-like conventional names for the types created by these tags (e.g., cf. [3]).  Now Issue 6 [4].

Grüße, Carsten

[1]: https://www.ietf.org/archive/id/draft-ietf-cbor-tags-oid-02.html#name-tag-factoring-with-oid-arra
[2]: https://tools.ietf.org/html/draft-ietf-cbor-tags-oid-02#page-8
[Yessss… :-)]
[3]: https://www.rfc-editor.org/rfc/rfc8746.html#section-5
[4]: https://github.com/cbor-wg/cbor-oid/issues/6