Re: [media-types] Thoughts on suffixes, single and multiple

Michael Jones <michael_b_jones@hotmail.com> Wed, 03 April 2024 16:54 UTC

Return-Path: <michael_b_jones@hotmail.com>
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 794DDC14F6B5 for <media-types@ietfa.amsl.com>; Wed, 3 Apr 2024 09:54:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.221
X-Spam-Level:
X-Spam-Status: No, score=-1.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.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 q8q8fLQGIzPa for <media-types@ietfa.amsl.com>; Wed, 3 Apr 2024 09:54:19 -0700 (PDT)
Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04olkn2010.outbound.protection.outlook.com [40.92.47.10]) (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 3EF54C169402 for <media-types@ietf.org>; Wed, 3 Apr 2024 09:54:19 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V1s0Geq6rz/ClmWs/HHi4bJXE5BqSq/BFlUHZ9ad+JjrwagcBpr1qnyhkWZTLk14x0uu2pjPyJPdEOva/1DoawFBU/3uq/ZtcvCweHfvtu+5e87HVzG1xB7jXETaV31dGgpzRuSnsI/bYwgQ0rwflMFE7SNDCpNwgRTkY11xfOiiFwbPmO02qJejyd/gx4bwCmtHFyJw3NaMftP0AigIX9w1LVv16UKs52RrwzL9rswSe3Vx7XaLBBgeqyEhvyJlMO8hQTP/jlgdUs7MXjTbEFIeW8RXz9MqKgh3dVf8zU7jTJV0UfllUBhgq2QwPsIBYvDrI4tVMy1W3oCL+cgxhg==
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=tKQbmnWTmStW0fay70OO09Ax7/m19tQv7Ah1Yet7S0w=; b=SnHXkfZDaIplEBrc/9FEA2jZdDyNp7Q62YO+S+0chzlcjT+/aIvqhUMrpQD2jI6XorNvM3vIICexnXyJBEJMsXJqZc6lgN93zn5suPl8XaKxwjO+zsMS9wNQs25htPcMx2VIjEpQyqDnhT8vOGAFUwIzw8kGD0a6Ai752PLbbyCtZycf/3JX6VPMUYMenfk+ph+NYp8050PKJ7rQelVtUmioPWArlqJrgbQrcbECT1TwujSbSa7oP69PJmbRVLj4PZ52SK6jzE+fQuS+LwwL4YlNs10PXgRqCuHHzZiy0BfPEtsCaF89N3hCYWj8TiJSs+5jAeIRjzbMPR0otSvP7g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tKQbmnWTmStW0fay70OO09Ax7/m19tQv7Ah1Yet7S0w=; b=Of5kUF/LbZOQv9lPSdLTUcQO8/ZZaJWo+fZFVIQqw/XdOOkQqwDLBvE359GQagmvkoXiwjp09dZxIT/t9QJGQIyW7XHUuFeOsv9O1F/n6QcTgGI+mLPHJISsOx1/qXsythS93xjYmUXOsb4uyzNwCcne9FJUCA8jUOZIY0zYapUAxpNAir1eY5EddKSmdyEzBBXUK7wrNJNH/1vSXmHlOxA5acy2WlYFYkKIzolm+X5NZRFbstazXSts9WQohWOXPo3cKXF90AyVZKu58A5jxbNi2dZdnF/6yRmLk4yIfP4HbUQPoMpVApSY0/3X2Dm+NZrLQZdy/WINcYnnSdLESg==
Received: from SJ0PR02MB7439.namprd02.prod.outlook.com (2603:10b6:a03:295::14) by CH2PR02MB6663.namprd02.prod.outlook.com (2603:10b6:610:7e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.33; Wed, 3 Apr 2024 16:54:16 +0000
Received: from SJ0PR02MB7439.namprd02.prod.outlook.com ([fe80::7c2c:4b2:7be3:4f66]) by SJ0PR02MB7439.namprd02.prod.outlook.com ([fe80::7c2c:4b2:7be3:4f66%4]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024 16:54:16 +0000
From: Michael Jones <michael_b_jones@hotmail.com>
To: Brian Campbell <bcampbell=40pingidentity.com@dmarc.ietf.org>, "media-types@ietf.org" <media-types@ietf.org>, Orie Steele <orie@transmute.industries>, Kristina Yasuda <yasudakristina@gmail.com>, Daniel Fett <fett@danielfett.de>, Oliver Terbu <oliver.terbu@mattr.global>
Thread-Topic: [media-types] Thoughts on suffixes, single and multiple
Thread-Index: AQHaheeQ2ht4da7TLkiCK6rkk/uiQg==
Date: Wed, 03 Apr 2024 16:54:16 +0000
Message-ID: <SJ0PR02MB743954437952C86757B73BC7B73D2@SJ0PR02MB7439.namprd02.prod.outlook.com>
References: <2E20FEDE-C766-43EE-A6E2-1FB63E79CF0B@mnot.net> <CAN8C-_KzQOPhv3Tep8gsnLqDxO7EnAo0qUkVUg1E6COttBTrfA@mail.gmail.com> <CA+k3eCSAh1Mbx8S1-Vnn2oGZT8ik1R5JOi-=Oc4Z5OaJyG=Rsg@mail.gmail.com>
In-Reply-To: <CA+k3eCSAh1Mbx8S1-Vnn2oGZT8ik1R5JOi-=Oc4Z5OaJyG=Rsg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [ylkohuvCJTStawmHMKQXN14X3KgmDbplyUMIcp+XPD9re2ug1sgeP1LiR7dA7UgL1fVIHk5vTLo=]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ0PR02MB7439:EE_|CH2PR02MB6663:EE_
x-ms-office365-filtering-correlation-id: 07e7b2b1-94e6-41a5-9e5a-08dc53feb2d9
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mkppncRaXTpMsBsMWrXR1w4vZdSyPIX2hmWFm4CdmXL0B6/8ibDyQT01fazGyoulAPY6r6+dLd4WEHDkTvqMOE558oUhCYytCcRosh9Oyg3uoF1gWHphAvjJbarbpmZxsiJ/H4oQgoqcwVLaerl3sst+gHNfWUVBco02BPVpo/ex4tefgBjUrAROOgDFDgnxdRqu3mM2hI2FMCGgRl7vbT2g+m12OSYPvG6qi1gvt363L7CoWOT/UTono+qFjW4wBqbeHIIoe6YqCUhoPIjf0fgr7z8N4SnO61qdGi327V2OSDpTrCv7BFJUY0OVFJS6asQz1nKKxLz/IlPYwwGRsBhhQPI9cH7OHzEgdABjVCBXHz8X0IpiFmjI9bAsVHUXBW1+IDWgEuvCVlFSw4qN3nPOG7ITpAUSpPkU5n4uOdQNPwzcPwqHWJ5ayr8ZCXMNieXUTFqNYfdLxyFZ6B9fMw8dKfS9bG/lmNBJi/IKsBrwPpy2H9mEVW4SzO/1pLIv30SyXV0rjy3z3CcfoVjIQax3cEIOLVpDSxaufxpwGwDpSHiiEPFwP1VnRdY5V7TMV8qQip+g6m/6xlP0IiPcVcN90lMFg46VaVs6B2rR+8OSB5rZiUOdTiysJeiwfH54if5wDASHntoF8RRb32jhoJAuWbxEV7KVetBP0AQIW+120U4/pt/9HUNSM6bSLFsN11A6g9W1sfpLeuqQf5/wYQ==
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: vkAy4VAT4eFyFAnmosL4yjkIVUvpnfN9eU4sbS3v1/kBTtr+06E7zPyBF6bYSH7LzPZU1aNiJh5lvcvaMQhPUXanIqq935pdGhKaV1ujiadx/3VOUq3luZE2VhErRH5tTqICEeOzDWLEyAso75HypsC7KxblCBftFiMYLVLNhgRTICvZhtnHpSXUSP5AQZ1PtBf8MDbLHvs5iF029EXoM2ez6J8dY1QLG5Q5fDDfKDene1pzIGVayPrOhHBjK3+Sr38RH0jV8kdYGUma6BehX4HFRg/x+GEZWsleURzDWpaYnwhNtTuR7Cw+VDEu55Tlas8epris+D/CumuWdPSoZQCGPMhioPIoPVO6UF/ufjCqn5+fFh3GOqHo5T1nbaOdxhe0BT2C/ZgjRpks9XPlBwvR6s3zgZWrTZDLCPjPYmYmpxzMTSNtXg7bBDt7YQBJ89Yy1hRMA/b7PrLD5V5ovFiJEdCmN5bQ1SU9m6wMWufATySVuivnxJ90esMIggR4NBNP/CVbPeyzR2LHiZRenkKcTVqsffoAB+UHLrVx/Et42dBEY7qnpRWJ9yXb4awbsjepx3JE1PT6ebPziKksumaw5kOEBvfK3csFTae3+D4IhBrwkEiAUn/+JOdl0RDtxTV+ET5VNmEyqySwO4zv8uBauO5G/dAV8XOJdTUiOKAIjJ1QsxCkGNFuBbx9ODq1MLh2IZK605GilNA1o7ZCdkE4A1Uc/JWe/IgV+XFnflLjg/VO67RJ5HIY2dW+z+aWWVt65nawqR7PzyJEcMyc3FpRlYYj8e903KuE/MLcOAhG7bLB48xx1NWh1LNUB+8rxSv7f7i4ndpsEP+3RojIUsqHxUAMvOp4QSm+qzWL7gmF1lFXVGF5N8kEbKJtnZgDFArvKAPBSx3SqFPsLr8RgDVoQWtWRUMC/a7x0S/3J2aQwIzh6fJzxegmzPABL0Wbw8FUfPUuRvbeDvhTli1T+IMg2hVfz57FlQuErN01BCNe6oTxp44TFLhUJ1n5dxpzlwGvsnbEMe83LvvmYprgJ6LgSUpB2qRkDhTMC6Acm2fok1wsz4qj1SnyvXqZogljix8hjNb6c5jJUhtKaJji1u2vQqH7DCaIw7WmqmLSAfpRLbkWbbR5yyA1UofWy5nv7esBxE1PX9Rckmd8J56pyM+1KA69oBNPZ7o/gCVnkpYNvpdauLS+v0IoCExDIqxc7tSF8M+V0nSjE+O/J7OeGBXBFoHxuZqDpTN30Nd4EEiIyNmZ+uzSli9YToT9F0URS7J47LKoOjd9iFEuXFqB/4yR3FfLNCbTluphHEkKe8lVfDttgY+uPU5hlOutD40a
Content-Type: multipart/alternative; boundary="_000_SJ0PR02MB743954437952C86757B73BC7B73D2SJ0PR02MB7439namp_"
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR02MB7439.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 07e7b2b1-94e6-41a5-9e5a-08dc53feb2d9
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2024 16:54:16.6670 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6663
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/piFs4gReyRAaHszRszxUjpftkCo>
Subject: Re: [media-types] Thoughts on suffixes, single and multiple
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: Wed, 03 Apr 2024 16:54:23 -0000

Not only is +sd-jwt planning to be registered, it’s used by a W3C specification for securing Verifiable Credentials.

I understand pushback on multiple suffixes, but using a single suffix to indicate syntax is useful, and common existing practice.

                                                                -- Mike

From: media-types <media-types-bounces@ietf.org> On Behalf Of Brian Campbell
Sent: Wednesday, April 3, 2024 9:07 AM
To: media-types@ietf.org; Orie Steele <orie@transmute.industries>; Kristina Yasuda <yasudakristina@gmail.com>; Daniel Fett <fett@danielfett.de>; Oliver Terbu <oliver.terbu@mattr.global>
Subject: [media-types] Fwd: Thoughts on suffixes, single and multiple

Indeed there is work in progress that plans on requesting registration of "+sd-jwt" https://datatracker.ietf.org/doc/html/draft-ietf-oauth-selective-disclosure-jwt#name-structured-syntax-suffix-re based party on anticipated/suggested usage https://datatracker.ietf.org/doc/html/draft-ietf-oauth-selective-disclosure-jwt#name-explicit-typing similar to "+jwt" that Mike mentioned here https://mailarchive.ietf.org/arch/msg/media-types/WgnX1lyhUMR2M82HRlsegEGg8j0/. And other work in progress that plans on requesting registration of "vc+sd-jwt" https://datatracker.ietf.org/doc/html/draft-ietf-oauth-sd-jwt-vc#name-media-types-registry.  I suppose "+jwt" and the nascent "+sd-jwt" fall into the "seldom used" category mentioned by Mark (and those he's suspicious of) but they are used in practice and expected to be used going forward so deprecating them or the use of suffixes in media types would have ramifications with respect to that.




---------- Forwarded message ---------
From: Orie Steele <orie@transmute.industries<mailto:orie@transmute.industries>>
Date: Wed, Apr 3, 2024 at 7:43 AM
Subject: Fwd: [media-types] Thoughts on suffixes, single and multiple
To: Kristina Yasuda <Kristina.Yasuda@microsoft.com<mailto:Kristina.Yasuda@microsoft.com>>, Daniel Fett <fett@danielfett.de<mailto:fett@danielfett.de>>, bcampbell <bcampbell@pingidentity.com<mailto:bcampbell@pingidentity.com>>

Please remind this group that you are about to register +sd-jwt, and give any comments that might support arriving at some kind of consensus here.

OS
---------- Forwarded message ---------
From: Mark Nottingham <mnot=40mnot.net@dmarc.ietf.org<mailto:40mnot.net@dmarc.ietf.org>>
Date: Wed, Apr 3, 2024 at 1:30 AM
Subject: [media-types] Thoughts on suffixes, single and multiple
To: IETF Media Types <media-types@ietf.org<mailto:media-types@ietf.org>>


After the meeting in Brisbane, some of us went aside to continue to the multiple suffixes discussion. There, we quickly came to the conclusion that we should deprecate the concept of suffixes in media subtypes -- i.e., they would still be syntactically allowed, but would have no meaning or registry. Martin Thomson and I took an action to write something down about this.

Once I was home, I started to think more carefully about this and do research. One thing that I haven't yet seen is a summary of how suffixes are currently used (apologies if I missed someone else's effort there). These are the counts for each suffix in the registry that I came up with about a week ago:

+xml = 439
+json = 145
+ber = 0
+cbor = 16
+der = 1
+fastinfoset = 1
+wbxml = 7
+zip = 24
+tlv = 1
+json-seq = 2
+sqlite = 1
+jwt = 6
+gzip = 2
+cbor-seq = 4
+zstd = 0
+yaml = 2
+cose = 0

As you can see, we have a few very widely used suffixes (in a registry of 1,588 entries as of that survey), and many very seldom used ones - with a few not used at all.

The widespread use of +xml and +json in particular made me more cautious about deprecating suffixes altogether -- especially since we still sort-of believe that they are indeed used by (or at least potentially useful to) things like editors to hint syntactic conventions.

So, that leaves a few different options, considering the constraints we have:

1) Disallow more than one "+" sign in media subtypes, as floated at the meeting. This would put a fair amount of pressure on the registry's ability to reflect reality, depending on how widely deployed some things get (although we could grandfather some types in to ease the pressure here).

2) Syntactically allow suffixes before the last one, but not assign them any meaning or register them; e.g., application/foo+bar+xml would be an XML format, but who knows what bar is; effectively, it's just part of "foo+bar". This would allow people to define suffix-like things, but wouldn't give them any recognition or coordination -- potentially leading to the need to formalise things more down the road, just as we did in the first round of suffixes.

3) Consider multiple suffixes, when they occur, to be unrelated hints as to the syntax of the format -- i.e., there is no processing model, there is no ordering (although a registrant would have to choose an order; registrations with different orderings should be refused). Effectively, suffixes would just be a 'bag of hints' about the format being used.

I'd be interested in hearing people's reactions to these.

Separately, I think we need to settle a few other matters to make progress:


### Defining What Suffixes Are For (no matter how many there are)

After the discussion in Brisbane, I strongly believe that suffixes should ONLY be for hinting about the syntax or format convention in use, as an aid eg to editors, syntax highlighters, etc. This is the proven use case for media type suffixes. Suffixes should not be used to hint semantics; only syntax. We should have strong language about the dangers of using suffixes to hint particular kinds of processing; cf the previous discussion on the 'polyglot problem' and the potential security issues around performing processing based upon suffixes.

The suffix registration process should be designed to assure that only such suffixes are registered.

Note that in this view, "+ld" is very likely unregistrable.


### Cleaning Up Existing Suffixes

+gzip and +zstd are problematic; the former should be disallowed for new registrations, and the latter should be removed or obsoleted in the registry. Likewise, I am highly suspicious of +jwt and +cose. +zip _is_ a format convention, so I suppose it's OK?


Cheers,

--
Mark Nottingham   https://www.mnot.net/

_______________________________________________
media-types mailing list
media-types@ietf.org<mailto:media-types@ietf.org>
https://www.ietf.org/mailman/listinfo/media-types

ᐧ

CONFIDENTIALITY NOTICE: This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by e-mail and delete the message and any file attachments from your computer. Thank you.