Re: [Cbor] Unusual map labels, dCBOR and interop

Wolf McNally <wolf@wolfmcnally.com> Thu, 28 March 2024 19:02 UTC

Return-Path: <wolf@wolfmcnally.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 A0810C14F75F for <cbor@ietfa.amsl.com>; Thu, 28 Mar 2024 12:02:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.894
X-Spam-Level:
X-Spam-Status: No, score=-1.894 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 (2048-bit key) header.d=wolfmcnally-com.20230601.gappssmtp.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 bd_DXgQPXa2k for <cbor@ietfa.amsl.com>; Thu, 28 Mar 2024 12:02:32 -0700 (PDT)
Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 D6865C14F70E for <cbor@ietf.org>; Thu, 28 Mar 2024 12:02:32 -0700 (PDT)
Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6ead4093f85so1282828b3a.3 for <cbor@ietf.org>; Thu, 28 Mar 2024 12:02:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfmcnally-com.20230601.gappssmtp.com; s=20230601; t=1711652552; x=1712257352; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=N4J/PBp14MfmCG+xeTwW+jaClszkThoeGD2RWvBcePw=; b=uDdvivpO8DKIU+O01rWn3JQXSshoy79cNo1yaoDFwgm66Jx4uWyQotyUtpkhVD2CaD qmYzlOHlOZAWd6Owd8dAUComs/eOmlsWVtBgVT+frWGJVDbQiwzpp//wToJq6Rrm8xa2 +nq2bYYKdd/b+9my2u2oAsRP9trIFGsH20zCwtAErKN3ecgnbrXZbmsQXK9j+APE9Cv4 dwLxCyd2OdUtjS37FTdX0ULqpFnjYLwlyWLc3o3WCmWO3RhT7YZx1pQXJ4aqQnr3Q/fO Z8e4x4+yfsWd4jTza9gR11B2Yy4awTVzYsOWvMDrGDbugvQoYnX2TxSQK9+JljpifF/8 XI4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711652552; x=1712257352; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N4J/PBp14MfmCG+xeTwW+jaClszkThoeGD2RWvBcePw=; b=cxa73mdyM+5pfQanNjJDgLjjMZm1pot+RRoneQmHI8fDLChiiPHSKTR7+IPJZfmTOM n+/5rvL4OYfLgK1sW+VupENF6oho+VcqzKN8bW+c/0ZdG0fauIUzLBqZjcZkxO2ZrZnt uyUbB+awU2M7vwCoO4eSz4/slZaImtuoW1Rtu1otvd7hmdewkEjDFjnzGQk8/5qTWt8Z wWODty6eSzci57JpRsdTCuktNmAZ1KN47dc/ydOTVqPLsmnH/UWKjTRbrUgh5n2Nqvi6 BWhJhhPtgJ3F4WnSjvQA8pY4+ARQOu8TKEPY2+zSuWmnaNde1YkYcNS9gW9ldznZoWDw XrWA==
X-Forwarded-Encrypted: i=1; AJvYcCUI83jRzAqaopcwsMejUN55iL5vxxRvjRghBxfZpkYKB8oxysjAJP7Ky4Qma491HMiaI8cPHHerF9UrJhbJ
X-Gm-Message-State: AOJu0YxpJEmN7wGTcVPY0i3Qtd7T2bLWbKPCVxYR0hesJ1ljEhTSK6xT N50+/Be/RxjqoR/+oE9vRN/D88YiBG7JwotCEGtWmrw3M4u1q1qjwGclbDWMmqHon/vH+ViEdvf K9kI=
X-Google-Smtp-Source: AGHT+IENzdkFzQstdBU1go5QfZk18sY2HmATbQwlL0ZT+Ugai1YOCRCPFPS99GKX6nzO9MDqiyeAtg==
X-Received: by 2002:a05:6a00:4c17:b0:6e7:9a5e:3b45 with SMTP id ea23-20020a056a004c1700b006e79a5e3b45mr209741pfb.11.1711652551547; Thu, 28 Mar 2024 12:02:31 -0700 (PDT)
Received: from smtpclient.apple (ip70-180-193-108.lv.lv.cox.net. [70.180.193.108]) by smtp.gmail.com with ESMTPSA id n12-20020aa78a4c000000b006e5359e621csm1703903pfa.182.2024.03.28.12.02.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2024 12:02:30 -0700 (PDT)
From: Wolf McNally <wolf@wolfmcnally.com>
Message-Id: <F8325766-B744-41F0-BD8E-0C6079F313F6@wolfmcnally.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_2E1D968A-3C66-45B5-8EFE-BCA2F62B9358"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Date: Thu, 28 Mar 2024 12:02:19 -0700
In-Reply-To: <CAN8C-_+bZ7O1MHpPrLqJ97NfecCPbuzvF7RvNL8oYCe68pfORA@mail.gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, CBOR <cbor@ietf.org>
To: Orie Steele <orie@transmute.industries>
References: <8C245824-1990-4616-AB70-FFD4FACB1AE9@island-resort.com> <11E8A8A5-D891-49FF-AF16-697C06F463B3@tzi.org> <9A0CE364-C141-4EBE-9703-292C416D12F5@island-resort.com> <3D62C4F0-D570-4EE4-AF6A-163C708AA6BE@tzi.org> <58BA8F8C-0C63-4534-9BF7-255C32D02C16@island-resort.com> <CAN8C-_KCLv_cAt-0-C_=i6DXjZFkgkmgZ8DNq48RcxcvV+jEUQ@mail.gmail.com> <437a375c-49e8-4406-a192-acb9a5e7bf31@gmail.com> <9272C2ED-432D-4D6D-AB64-38976F9297D5@wolfmcnally.com> <794fae9f-1c87-498b-aaea-4e476b0dc420@gmail.com> <C24BFA9D-D19C-4267-B0C8-54842B124452@wolfmcnally.com> <03144212-69bd-441e-8697-fdf1fd9f9689@gmail.com> <B53F373E-4997-4654-AB56-7719EF0ADD99@wolfmcnally.com> <CADEL5zt=CHZPpksVm8Qwo3NY0VTStbpSFPgfDbDMN8RgjVrJwQ@mail.gmail.com> <1FD1F074-F07D-46A5-AB80-7782F33FCBAB@wolfmcnally.com> <CAN8C-_JiRzWQZLpxs5p5fx7BM_zPH8-NGY-e9b6MJ_iN8nAP0A@mail.gmail.com> <DD5E4E51-62BA-4E7D-9CC2-44CA829767EB@tzi.org> <CAN8C-_+bZ7O1MHpPrLqJ97NfecCPbuzvF7RvNL8oYCe68pfORA@mail.gmail.com>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/7F86WPhO1fpKrWdvd7Gw3u8TGvI>
Subject: Re: [Cbor] Unusual map labels, dCBOR and interop
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: Thu, 28 Mar 2024 19:02:38 -0000

Orie,

> On Mar 28, 2024, at 11:01 AM, Orie Steele <orie@transmute.industries> wrote:
> 
> <no hat>
> 
> Sounds like the advice is:
> 
> For more specific media types such as gordian envelope, make it clear that while they might end in +cbor they are actually a subset of cbor / dcbor.
> As you have said this is essentially the same as what we do today, when creating more specific media types for cbor based application formats.
> This advice belongs in the dcbor draft, but a new media type for generic "application/dcbor+cbor" is maybe not needed since we don't expect any protocols to use generic "application/dcbor+cbor" or really even "application/cbor" when they have more specific media types available such as:
> 
> application/cose (which is never dcbor)
> application/cwt (which is never dcbor)
> ... https://www.iana.org/assignments/media-types/media-types.xhtml (anything with +cbor, is only dcbor when it says its dcbor)
> 
> ... and it's forbidden to update a media type that was previously cbor to dbor because doing so would create a breaking change.
> 
> I think this advice is worth writing down.
> 
> OS

Since registering an `application/<x>` media type requires RFC status, we have held off on proposing specific media types for either dCBOR or Gordian Envelope until such a time as the community feels that the time is right. Even then, despite the fact that it would be semantically correct, intuitively we’d like to avoid unwieldy constructions like `application/envelope+dcbor+cde+cbor`.

This is definitely a question open for discussion.

~ Wolf