Re: [media-types] [Rats] registration for +cwt

Darrel Miller <darrel@tavis.ca> Sun, 07 May 2023 21:26 UTC

Return-Path: <darrel@tavis.ca>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E204C14F73F; Sun, 7 May 2023 14:26:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-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=tavisdev.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 i0niENEjfpfp; Sun, 7 May 2023 14:26:13 -0700 (PDT)
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on20622.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8a::622]) (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 C890AC14F693; Sun, 7 May 2023 14:26:12 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XbVzql16d1DQgxzIZuhcqnfAuLoBPLICHGffKnLEjvmAAOLILAkNyh+4q3xvsZtXiwOBnfWaPilIHfkxwsJoTnaIKePdeMLh/dQRl/nySwRU4tXmlJcPAWga9hue4rCoCTExs2DdKxUYsWFo4c/wKJubKYsGQ3lsFbXQUNS8Id5L6oQYolQFqVXVdNLMly7uLg5IkbRzXE2OVRCPPEhjR9KolpJqLd4ZuTWdXrX8lwZRlpzs3fzOCDz74XxL3tw+aX3bo/0a7mn6NCwB5mS40o3bjZDeWqamqr9HoHjmnZhTayYrddsSnQiOw+vcQp5CKYGOll4eWkhAt4zTi7YIbQ==
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=qh4gC1f8efk1CVEhz1iEEdmQCRlNrxEukfaxdesRuxM=; b=Nmy6MdoZwtgjo5ySX8x9lzEWSJXKd+iDtW0JaMHi/UGZVtVEBA8PvfnG5iwmiCdaLZAxTSEkTU8Bvpt3b0PRKvfwGHyWDWbpwsK9TIAWGCzocUXed80X+bbw0mYv5NEruGcMnLnW5MoREUn+AtPjeoLIXKnUtYO0RtWJuKHVmXEVuq+EDv/L6Ht9YdB9uk/lQ2X4jDTUoNbuRa9V1noxzvtZQSkebOaROkpACnmkOX/a0iB0iGwUlLRgyRoTxY0rE5dW0bJtgXMCpHFBinoMsr9kPTYwtdWq9p4VC0tV0h75OSy9xMDrIIfvmw9viQ0qjmxtop5omHe+GkMFLXpTKg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tavis.ca; dmarc=pass action=none header.from=tavis.ca; dkim=pass header.d=tavis.ca; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tavisdev.onmicrosoft.com; s=selector2-tavisdev-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qh4gC1f8efk1CVEhz1iEEdmQCRlNrxEukfaxdesRuxM=; b=Par1NkV3i20AEdaYQ+XUVqHBDiRSaW5pftx72z5t1oAMcwxYdwULuR8U76t2ZzwezdmsYjMTgJkNPUDpQIpNdIABUVWpTBM2Stk/3KEmNr7WScjyhs8ZagvIZ1rFHqjXtEXpeQFkBn5H1kSbYZdutvluIa6GMVu1HNjx2ek5tAQ=
Received: from DM6PR01MB5964.prod.exchangelabs.com (2603:10b6:5:202::33) by SJ2PR01MB8321.prod.exchangelabs.com (2603:10b6:a03:53c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Sun, 7 May 2023 21:26:04 +0000
Received: from DM6PR01MB5964.prod.exchangelabs.com ([fe80::45a4:43a0:9021:97c9]) by DM6PR01MB5964.prod.exchangelabs.com ([fe80::45a4:43a0:9021:97c9%4]) with mapi id 15.20.6363.031; Sun, 7 May 2023 21:26:03 +0000
From: Darrel Miller <darrel@tavis.ca>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "Roy Williams (COSINE)" <roywill@exchange.microsoft.com>, "Smith, Ned" <ned.smith@intel.com>, "media-types@ietf.org" <media-types@ietf.org>, "rats@ietf.org" <rats@ietf.org>, "cose@ietf.org" <cose@ietf.org>
Thread-Topic: [media-types] [Rats] registration for +cwt
Thread-Index: AQHZgSNFJ8O9rj9PjEypfjz2/Q5+dQ==
Date: Sun, 07 May 2023 21:26:03 +0000
Message-ID: <DM6PR01MB59645310DA44F78D76EC1BACA3709@DM6PR01MB5964.prod.exchangelabs.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=tavis.ca;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DM6PR01MB5964:EE_|SJ2PR01MB8321:EE_
x-ms-office365-filtering-correlation-id: 648db963-1556-49f1-abc3-08db4f41a95e
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: am6eY79StVM5zfeB5CXPdaLMZ/oueb7WBkL//gGctdvht8wEug4i6N8oQXeCzAOBXZNL4u3bEQOVMxEnPpf7etAFzK/YtAWE4aYdAD6/4HTVcWgfFxxqq31FrTBPYL5K12slUkVQ0HDBsakXMtTgrycr5TX/u3EbAdlMSm086I7hfQbZLrJultrfUTmH+rfxrOvZFcvxw68yRmYm+k/X1ds6pSjd0E54nDfXQjTiNh40PtX+khm4TLzreo53o2sDbWFwCdbbhr5yvrFx9q8T6w0Z60h8PxGqoIQLyH1q19gaemrD0FMv1VM36ltfffkZ9CPKpWgSFny9sHcm/zGdaTpPrE4G301Z4TJhXiSwYGAZALX1xFSYC5mk/aYjvCFhmNnB5nN8ZMLH1mE5k/3qTxqYvGWNGVnGEFv9oyS+YPN/wmJQosH+m3Pt41rBAUVLv+egU5sB2z0RtmFvom3kv2qxyxuWIzEr1Pj8hH3UMoPebnSVP7OGDk8o2Pdv1NivbCh7mPfvSg1CskhZ2Wq9/a7762Y7tXcu2PxuJJUi/Wsxn0KHogEYdE2XsewDRrxr0dTRiU8dAkwjTSlffRVSrjBo3shvG3Q6aL5IV1FHadQ=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR01MB5964.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230028)(39830400003)(366004)(396003)(376002)(346002)(136003)(451199021)(86362001)(33656002)(91956017)(110136005)(316002)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(966005)(7696005)(478600001)(71200400001)(55016003)(8676002)(8936002)(5660300002)(52536014)(2906002)(41300700001)(38070700005)(38100700002)(122000001)(186003)(9686003)(6506007)(26005); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 3AS0GW/ElNyRUxWjEGTWEGPHPF1+EoNeN20s592m/Djo6RC8K6Uh26B4jPcE14yspkg5GOZBWiItM4Sj2PqkdFQiWIRlhS29Y8oS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6v6cOkibp/YfWB+EIfHgFVZvr77N5C4BtMAENAf/jofiWd6ZtTk2szCNX0r/1mcBXs0NOB8ln8/msZaVc9mIb6J1ZN/xn8gJSeSV/KY2zFsm3qPJeG23/z+IGhn5ZOHjZoIBzA+0yYRX9DAvSrIUoLN7ee/bnXf1iB0+hH9lXBzNRWAmZRUOMSY9fLQ9GsgyilJjBz4woxfD9LtiaApdJlFwl2furZTw5AZIyqTs81Y/sAdeJbfd7a4AIUJx5q60nl26ygFpI56kCGk52PuK4iC9YBa8N+MwhqKKEQPRItRQVUjdfA0ZfdAyr6MCKtUoj8l5j03ylbWqJSArmBaNrHFW4VPi6eThh4XGOjDEkdpPSwhyjM3HEYO3MT5ByGDeYbHW3qgsWR+neR7h8DTQPiwK4r8=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: tavis.ca
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5964.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 648db963-1556-49f1-abc3-08db4f41a95e
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 May 2023 21:26:03.6034 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8cea02ec-9788-4bac-a19b-3e782a3e9bb0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: HLRZVsGDKGYdT13kXdVn6Yl6xA4y1g2Aa/+RIt6T1e04UVs7YxkWfUdz3SNtgiHC
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR01MB8321
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/WYpYmm8kOuATyx7vSbjmpp7Xa4k>
Subject: Re: [media-types] [Rats] registration for +cwt
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 07 May 2023 21:26:17 -0000

Michael,

> From: Michael Richardson
> Sent: Sunday, April 30, 2023 4:43 PM
>
>  > Could you share what scenarios you envision for clients processing an
>  > application/eat+cwt as a cwt without understanding what an eat is?

> Yes, any kind of network diagnostics program (tcpdump, wireshark, ssldump),

I can see that WireShark has display filters for cbor https://www.wireshark.org/docs/dfref/c/cbor.html 
but I don't see any reference to native +cwt support.  I'm guessing it requires doing configuration to map +cwt to the CBOR display filter.  
If that is the case, why not just map application/eat;format=cwt to the CBOR display filter?  That way you can also map application/eat;format=eat-bun+cbor etc, to the CBOR filter.

> or any kind of desktop system that tags files with MIME types and can start
> programs the look at them.

If a user has to do the mapping between mime types and programs, then I don't see how registering the +cwt suffix makes this any easier.  If tooling hasn't already implemented fallback for rendering +cbor content types automatically, then it is not likely that +cwt, an even more specialized suffix will get adoption.  Worse, it could fragment implementation efforts.   

> > I get the impression that primary goal of registering the set of media
> > types
> > https://www.ietf.org/archive/id/draft-ietf-rats-eat-media-type-01.txt
> > is to provide decoding instructions rather than conveying additional
> > semantics.  I wonder whether registering just "application/eat" and a
> > "format" parameter might be a simpler solution.

> I don't believe so.

I don't believe that the intent of suffixes was to provide a generalized "inheritance" hierarchy of semantics.  My understanding is that they are intended to provide the ability for generic tools to gracefully degrade in how specialized media types are processed.  This is very similar to how HTTP clients that don't understand the meaning of a 422 can legally treat the response status as a 400.

The introduction of +cwt is going to lead us down the path of people asking the question "should this new media type be application/foo+cwt or application/foo+cbor or application/foo+cwt+cbor".  That's not a place we want to be.

I acknowledge that +jwt already has been registered.  However, the situation is slightly different because JSON Web Tokens are not encoded as JSON, therefore there is some value in having the +jwt suffix to indicate that the content is encoded as:
   "a series of base64url-encoded values (with trailing '=' characters removed), some of which may be the empty string, separated by period ('.') characters."

It is my understanding that application/cwt is cbor and therefore +cbor is sufficient for generic clients to gracefully degrade.


Regards,

Darrel