Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbers
Carsten Bormann <cabo@tzi.org> Mon, 24 April 2023 14:32 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 74D25C152D9E for <cbor@ietfa.amsl.com>; Mon, 24 Apr 2023 07:32:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.884
X-Spam-Level:
X-Spam-Status: No, score=-1.884 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=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 puxH9iX4kTBK for <cbor@ietfa.amsl.com>; Mon, 24 Apr 2023 07:32:27 -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 E99D1C152D97 for <cbor@ietf.org>; Mon, 24 Apr 2023 07:32:24 -0700 (PDT)
Received: from [192.168.217.124] (p548dc9a4.dip0.t-ipconnect.de [84.141.201.164]) (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 4Q4ndx62TJzDCdV; Mon, 24 Apr 2023 16:32:21 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <AS2PR09MB6342F12AB6545FB90627BAA88C679@AS2PR09MB6342.eurprd09.prod.outlook.com>
Date: Mon, 24 Apr 2023 16:32:21 +0200
Cc: "cbor@ietf.org" <cbor@ietf.org>
X-Mao-Original-Outgoing-Id: 704039538.774873-08b36a882858a98cc5ba4cd086dfc6c6
Content-Transfer-Encoding: quoted-printable
Message-Id: <229AC905-F898-49D0-A488-9F8622C6E802@tzi.org>
References: <AS2PR09MB6342AB1E5DFF19EDFB65F25F8C609@AS2PR09MB6342.eurprd09.prod.outlook.com> <f27e5b19-c263-7c1b-9627-b3f05d6a33ab@gmail.com> <AS2PR09MB6342F12AB6545FB90627BAA88C679@AS2PR09MB6342.eurprd09.prod.outlook.com>
To: Tony Putman <Anthony.Putman@dyson.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/B6DxQmP_bipFyM39pOMnqnj0Cig>
Subject: Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbers
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, 24 Apr 2023 14:32:32 -0000
On 2023-04-24, at 13:27, Tony Putman <Anthony.Putman@dyson.com> wrote: > > It looks like a mixed approach is the way to go if the contents schema is changing often. If “mixed approach” is combining a tag allocation with some internal (number-/)namespace, here is an example for how we tend to do this: CWT (RFC 8392) has CBOR tag 61 for indicating the overall data item (Section 9.4 [1]). (Alternatively, this can be indicated using transfer protocol mechanisms such as Content-Type in HTTP or Content-Format in CoAP (Section 9.2, 9.3 [2]).) Within CWT, we have a namespace of numbers for the individual claims (“Claim Keys”), e.g., number 4 for expiration time (“exp”) [3]. This namespace (and not the tag number space) is augmented by further standards contributing to CWT, e.g. number 8 for the confirmation claim (“cnf”) defined in RFC 8747 [4]. Note that RFC 8747 in turn defines a nested internal name space for sub-items of the confirmation claim [5] such as 3 for “kid” or 1 for “COSE_Key”. Grüße, Carsten [1]: https://www.rfc-editor.org/rfc/rfc8392#section-9.4 [2]: https://www.rfc-editor.org/rfc/rfc8392#section-9.2 [3]: https://www.rfc-editor.org/rfc/rfc8392#section-9.1.2 [4]: https://www.rfc-editor.org/rfc/rfc8747#section-7.1 [5]: https://www.rfc-editor.org/rfc/rfc8747#section-7.2.2
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Tony Putman
- Re: [Cbor] Private tag numbers Carsten Bormann
- [Cbor] Private tag numbers Tony Putman
- Re: [Cbor] Private tag numbers Vadim Goncharov
- Re: [Cbor] Private tag numbers Anders Rundgren
- Re: [Cbor] Private tag numbers Carsten Bormann
- Re: [Cbor] Private tag numbers Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Tony Putman
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Anders Rundgren
- Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbe… Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- [Cbor] Re: Private tag numbers / 1010 Carsten Bormann
- [Cbor] Re: Private tag numbers / 1010 Vadim Goncharov
- Re: [Cbor] Private tag numbers Anders Rundgren