Re: [Cbor] [EXTERNAL EMAIL] Re: Private tag numbers
Tony Putman <Anthony.Putman@dyson.com> Mon, 24 April 2023 11:27 UTC
Return-Path: <Anthony.Putman@dyson.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 6A838C151B2B for <cbor@ietfa.amsl.com>; Mon, 24 Apr 2023 04:27:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.895
X-Spam-Level:
X-Spam-Status: No, score=-6.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dysononline.onmicrosoft.com
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 cuHD7bg_XruY for <cbor@ietfa.amsl.com>; Mon, 24 Apr 2023 04:27:21 -0700 (PDT)
Received: from mail1.bemta34.messagelabs.com (mail1.bemta34.messagelabs.com [195.245.231.3]) (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 CF319C151B3C for <cbor@ietf.org>; Mon, 24 Apr 2023 04:27:19 -0700 (PDT)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAJsWRWlGSWpSXmKPExsWSoc9gqdud7pZ iMKPJxGJmx3QWB0aPJUt+MgUwR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V75Nbe6Ir7bJNY7h588/WyZIuU17aDXo8ufX0W8SnIY7ai/qv5L+aqFx9Pvv6 Mvzap673pJ/5/u3QvKPJqClUI+/uHxmUrsRRnJBpqMRcVJwIAKl8re0MEAAA=
X-Env-Sender: Anthony.Putman@dyson.com
X-Msg-Ref: server-13.tower-548.messagelabs.com!1682335626!189915!2
X-Originating-IP: [104.47.0.57]
X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass
X-StarScan-Received:
X-StarScan-Version: 9.105.2; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2961 invoked from network); 24 Apr 2023 11:27:07 -0000
Received: from mail-he1eur01lp2057.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.57) by server-13.tower-548.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 24 Apr 2023 11:27:07 -0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F3SSasjDI+4fjHoQS0yZ8owLmpKZPZrbW6outd6kzf4fCBeGUJSvyF9u6FQFxmbM2CyndXlgA1Td86PTRkVR9Q7+pkNptQsDPsVVg5c5VGLg2rM4vDyF6AWE8/UMIeUrA/aJYJZiuniXDbZ/YtOGtd7IKUZ6m7pNqBriWUo0jWBtKtQQqduZdO7HNNq0oxA4A5TI0Sj33hJ4sAnRreN7OXTP/avKBnqJz+0d7Y18QK5c4sYXhqOESDZW87o4s6H83sKOoJgs1Kd8SWySGlR6RZM22rCGiSAmNEGXP2KwoTioA5ESeFm1e2vZyhTO2h75SSVM3EDe+gZIGxkXZQaVcQ==
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=xvBcl987c97LQSrzUDMaRDPozfgmFhHd+97Z0RMnDXA=; b=XEy1O+WO9hHrLXBgJuxgSh8EXBF0C7gjV/by40wZH8kht0vDGvMlsYks137Ceyz8KDgt2aoO5qubrv+EgmMkJ+2KBR2L7tEa19AJpo93og+AiI7XSfsRTNWLt3IzDh0QJlQ6wscyLphQ4JvqX7aBVcMooKhhuzZl/DJMaQfDOW0XR162q5KD+0jubOciXYlWBL/s0mrCXzCHAT9HdVgve0pRLGmT8DIS8H8zpdGFJ/x/vlIc2DfNU37x1vW+ZhfzoAMYa1XkhBm/u1IOfRvFhdIMTXHH8mkzZGq1ZbkNSwwKeAtyEB5QujGy0p9Za8MCr67McdaNirt7vCXp/HNnAg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=dyson.com; dmarc=pass action=none header.from=dyson.com; dkim=pass header.d=dyson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=DysonOnline.onmicrosoft.com; s=selector2-DysonOnline-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xvBcl987c97LQSrzUDMaRDPozfgmFhHd+97Z0RMnDXA=; b=WVkIabkgbqjU0uNPI3A9SSYPqgRFqQGtYsrCwUN9vAsH1PNvNDmC8it0E1pzRk+IHREcH/b0ADdCtAK5OMsHvQ1JPdL80zSAU2fk+Wj00BGmVIg0K0LBAia7WcmaeYJ5guS3BLckGPm13iez5irCpog6mITsCGoicHHn3lauPd8=
Received: from AS2PR09MB6342.eurprd09.prod.outlook.com (2603:10a6:20b:579::17) by AM0PR09MB3585.eurprd09.prod.outlook.com (2603:10a6:208:18b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Mon, 24 Apr 2023 11:27:03 +0000
Received: from AS2PR09MB6342.eurprd09.prod.outlook.com ([fe80::7e5a:c77f:b2fb:d33f]) by AS2PR09MB6342.eurprd09.prod.outlook.com ([fe80::7e5a:c77f:b2fb:d33f%6]) with mapi id 15.20.6319.033; Mon, 24 Apr 2023 11:27:03 +0000
From: Tony Putman <Anthony.Putman@dyson.com>
To: "cbor@ietf.org" <cbor@ietf.org>
CC: Anders Rundgren <anders.rundgren.net@gmail.com>
Thread-Topic: [EXTERNAL EMAIL] Re: [Cbor] Private tag numbers
Thread-Index: Adl0cGmiywwb9oNjQraLGz5k9TUBTwAiVUcAAGehWAA=
Date: Mon, 24 Apr 2023 11:27:03 +0000
Message-ID: <AS2PR09MB6342F12AB6545FB90627BAA88C679@AS2PR09MB6342.eurprd09.prod.outlook.com>
References: <AS2PR09MB6342AB1E5DFF19EDFB65F25F8C609@AS2PR09MB6342.eurprd09.prod.outlook.com> <f27e5b19-c263-7c1b-9627-b3f05d6a33ab@gmail.com>
In-Reply-To: <f27e5b19-c263-7c1b-9627-b3f05d6a33ab@gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_ActionId=6e2141a3-9981-4fb0-89e3-a298b57a46ee; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_ContentBits=0; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_Enabled=true; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_Method=Privileged; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_Name=4b0daab4-b646-43ae-ac6e-8cb22112916e; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_SetDate=2023-04-24T11:26:25Z; MSIP_Label_4b0daab4-b646-43ae-ac6e-8cb22112916e_SiteId=b6e8236b-ceb2-401d-9169-2917d0b07d48;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AS2PR09MB6342:EE_|AM0PR09MB3585:EE_
x-ms-office365-filtering-correlation-id: e6758bbf-3b90-4c9f-5186-08db44b6d429
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: cyxFwY7ZtpgWKhtbDmPJQb5s8QttCmHaZl4ZR2PfKg9gTxepEljY3A/mZ/BVOwD2r36WRBldt30aOIQaw3/VQb+2bPiyUSQgR396OpE+eQi5Pn7wHQIOXK5XphUlSkegbn3vdlntLXThdkLs3g2UOkHu3yJ7FnhdMYwmVWQltJ3Wy0yrmWrcLpV+fT1HkZ/1GgKj8wpR4Nd2BzDTY7On9CMxgDcCgq6q1UXE2khKBkq1baA9BVmYE1kvP+P1ATEBeUTjGVOXyBm3UPq3rJxC14SrASFBLm/RYtYzIKpjcUDPh6PbfGyAOZ9hsFc3NHVBSKzsxbp5FIiTl9VSpqeOpHoJMnybqrx9BYRxL6tleKk1dNdhrrByuS9tpzB7KM+74nbC35XYylyO03l5fNq8oPbl2z9oot4X2SubfgliNVn1YjWVJoW8NdOGvfDzVP4a5MnvoRZZu1X7+xkcZsK6fp/9FsyTeuK13mXT1cOzJ7LwixY3f3sGrK4qA8DTZzXe21kblrxtZK7h9f7QVJe2dbxh1GiFbG5DvJHlmw2Yi+Rcui2GCnLZs/ug4lEzM1ZBMvPGiQHu9dBzAmyFTzAx36+o6aaFv0ZTBxzheSPRFlnf/+upR34pCsKIn6bn1rkFZI4Z18f2TzSeblSR3wUeow==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS2PR09MB6342.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(376002)(346002)(136003)(39860400002)(366004)(451199021)(2906002)(7696005)(71200400001)(107886003)(966005)(55016003)(9686003)(6506007)(26005)(53546011)(186003)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(8676002)(8936002)(316002)(41300700001)(6916009)(4326008)(478600001)(5660300002)(52536014)(38070700005)(38100700002)(122000001)(86362001)(33656002)(83380400001); DIR:OUT; S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aPHIP+ShIGn4fqTnQn7co5P09216Z9qKTmsssH9O1EIeuaMKpGx0nTda8sgo33QpSeiQO2EE2yf6Lwmy6tLOsdYVydLU46c4/udtXLCte48VPw7RdfhkxtnoJLrozNq+LPssUE2EH7YWbaPX9cA+IpUTuemMEpgrcsWOWbXN8gBUkG4PSg0gTmfR+a1pk3BB1vlrU+eaHx4UteoztZOxzByOp1gNCkN/kOqNOGgd4e0UOecc+ppAN6N0UDWimQGRKT+056csYd8enWAybkutbwGLSry97BuD5VA30PzexBVs1nECBpFKIZaZhAW/Ficlw7/4rKM2w4lYV+00XO5fPyYVjqr7JXt1NRXtjvqaEbFX6WPYDsTk/P8FonrAzMKKGsPZ1XcHQ3iL+AIqscgW3zg2n0I7XUWDk9kIf/7YvQwRc2zrGi7ZoIVq9fQx9Zfelh4qQ3kEur50TgE1IcSBLa65j9Gr1ZhcB78o3O+V879mwYzD3n2mE8+k7ae9nJpJjDRAAdhtOEWgOjtjujr4+NM8yUyFhS5l9U7rPOGTISi7u9aft1TeS3D9XYAkdNVN
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: dyson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AS2PR09MB6342.eurprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e6758bbf-3b90-4c9f-5186-08db44b6d429
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2023 11:27:03.7134 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: b6e8236b-ceb2-401d-9169-2917d0b07d48
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: +HDrJPXnCbnpmB9WIhl3JOdXrtV5TCX4bbuuYt3eFzL/WzkyE7w7D3BMqRMv1rLBWDVY6CLkVpNaTWyOVk8HCQmbIJeYJgDbbI8FdrWUMvg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB3585
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/z-3vXCrD1eWpigo89mW2XQrR2xY>
X-Mailman-Approved-At: Mon, 24 Apr 2023 06:20:25 -0700
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 11:27:25 -0000
Hi Anders, Thanks for the suggestion. I had somehow missed your COTX draft. It looks like a mixed approach is the way to go if the contents schema is changing often. I don't think this is the case for what I'm investigating right now, but we're trying to use CBOR in more areas, so it's good to keep this solution in mind. Best regards, Tony -----Original Message----- From: Anders Rundgren <anders.rundgren.net@gmail.com> Sent: 22 April 2023 10:07 To: Tony Putman <Anthony.Putman@dyson.com>; cbor@ietf.org Subject: [EXTERNAL EMAIL] Re: [Cbor] Private tag numbers CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. On 2023-04-21 18:53, Tony Putman wrote: > Hi all, > > I'm defining a data schema for purely internal use (no interoperability needed) and encoding it in CBOR. There are points where we may want to vary/extend the contents with new data, and I thought the natural way to do this would be to define different tags to hold the data. I expected to find a set of tag numbers defined in IANA for private use, but there don't appear to be any. > > - Is this a misuse of tags? And if so, what would be the more natural way to specify this? > > - Is this a general problem that people face and would it be worth defining a set of private tags which are known to be context-sensitive and not interoperable? > Hi Tony, Personally I find the tag system less useful if you have a large bunch of ever changing objects. Obviously reusing tag numbers for revised objects isn't a good idea. One way to address this issue would be to register a *single* master tag, and then use locally defined sub-tags to specify the actual object id: 78564([2, { "hi": "there" }]) Where 78564 would be your master (registered) tag, and 2 the locally defined id. The overhead in the sample is just two bytes compared to specifying a unique tag for each object. If saving bytes is not your main concern, you may find a concept borrowed from the XML world useful: https://www.ietf.org/archive/id/draft-rundgren-cotx-04.html With public repositories like GitHub, anybody can enjoy a robust and project specific namespace. Example: https://fido-web-pay.github.io/specification/crypto.html#5 Anders > Thoughts/comments on this will be gratefully received. > > Tony > > > _______________________________________________ > CBOR mailing list > CBOR@ietf.org > https://www.ietf.org/mailman/listinfo/cbor
- 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