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

Esko Dijk <esko.dijk@iotconsultancy.nl> Fri, 05 April 2024 15:33 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A2CADC1516F3; Fri, 5 Apr 2024 08:33:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, 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=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancy.nl
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 jX7YFOKcbOr3; Fri, 5 Apr 2024 08:33:01 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2101.outbound.protection.outlook.com [40.107.13.101]) (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 BD20CC151985; Fri, 5 Apr 2024 08:32:55 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OOe4Nk2j2PTPLtcdNd1f/VWcAGPDn3uckRDEtbxU8Z9oZ45rBdMqr7VGkZmHkTv4KSMPAmiYTeDGIcrd7nJKlyD2lASJmxrtd1IXx12yzDc6uV0g1QCwtMaCnyfBr3YorENP5K5fx6dkRw6ZdE6TItU7xc2C1+HMYk2rVf15zp/hDOm+WJfuX9RafA1YzP3aI+4unxJClaq+2k+8dVctRZ1jxt+VLRV6tLAT9zJPWr2ueWXusdNbDKguq4bSklU/buZN/L/JAreVXnsxn9mx03Sr22RfAPHsUkUhgn+sBV+46dqo7UYC4IicE+8REvEWPrS3nz20Zb26jFgdtqJGwA==
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=ZYKWtOZRRi26cZzW43lx45NH7A0BvoUZ9AI+a/iLFjI=; b=fZKAZdF7rXTWbZ6QUSN5bNUIdBg1AHXikPFzvLzkiG1XIWrfeVRdHnWJXx4y/hXXObssdbCuKyWne+0+cbUh1PyLbwK4Jodhfihtogw5nTD2+XrG3yDJVfrF3vJK45SZgw5NHm1vY/lHHynn9jMWXl0A33gqCAGGDGMWDDbsYKc8x6VhTBIcbeqX4ErhTyCdOk6FBGRiHQhoMtJzcCc3TMBIcffr1GNEh9F/FpZn1nygyfQl5/v93ritiA4IODV/9ZkVs4yVRewyimKGPGx6eXfGgpAxmU9025JMjwLBukU2M2hNDa+SiNpAdaZIPBFqA+0hRU9uaOrD4yC8KTWZEg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancy.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYKWtOZRRi26cZzW43lx45NH7A0BvoUZ9AI+a/iLFjI=; b=uZ+DC5U3VwwoHiBMgak644N5Pg104KERR5om0FRGQVkk69j5oFbKCY0utPCaeiMpZMP6RrTByIHINtuUr5VzfEfulIzBoT1GpVNcHInfG7s3m60+9XmH2CRO5Q6wuhjWaFSg9q7SxwvyVcxXsh4EBZSN6U0kLu6Y2QUq01F5mSo=
Received: from DU0P190MB1978.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:3b9::20) by AM8P190MB0977.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1dd::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 15:32:51 +0000
Received: from DU0P190MB1978.EURP190.PROD.OUTLOOK.COM ([fe80::2058:88ab:2f5a:8c02]) by DU0P190MB1978.EURP190.PROD.OUTLOOK.COM ([fe80::2058:88ab:2f5a:8c02%7]) with mapi id 15.20.7409.042; Fri, 5 Apr 2024 15:32:50 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: Michael Richardson <mcr+ietf@sandelman.ca>, Mark Nottingham <mnot@mnot.net>
CC: "media-types@ietf.org" <media-types@ietf.org>, "anima@ietf.org" <anima@ietf.org>
Thread-Topic: [media-types] Thoughts on suffixes, single and multiple
Thread-Index: AQHahygnSq9ZKQODXE+EbdJxc7/k1rFZjQkAgAA40bA=
Date: Fri, 05 Apr 2024 15:32:50 +0000
Message-ID: <DU0P190MB19784D3351F9529FEA3EB916FD032@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
References: <2E20FEDE-C766-43EE-A6E2-1FB63E79CF0B@mnot.net> <CAN8C-_JWg8MOOwxo-yxASO5K8nkS9ADOvOJoAGEV2Mxxae6YAQ@mail.gmail.com> <1810.1712262101@obiwan.sandelman.ca> <C9D868FA-1006-49A7-ABD3-A48CD06E7998@mnot.net> <2311.1712317064@obiwan.sandelman.ca>
In-Reply-To: <2311.1712317064@obiwan.sandelman.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DU0P190MB1978:EE_|AM8P190MB0977:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: QJoYabQmkNSGQOVicl6C+TGRuzkA8BrcXsrxsJyOqVJADrGWdB+tm/5/c+HDUaoTTNhQlbZbfiqHFw42hFstVYsT5DXolr075UbOOjYue3TEseTAgEYm1mqWZ8CHIt8Q8ifjdMf8AF8aGKtnxHTvN5kwhmHs9p8a820L6QP9mXyaYVHLCA4w4c3TL7PipetEp+mF4qwC+Y8vV2jlmXrnkp2dKizRoASLL3vle10Arnec6z/AwD8qTS0Ir1ARIS9zhBzod07hdeAwK9/wHk5QhaUdSebOp5Qn7qZOksWyBvjd73K5SwVhCXItIlyBzhOQshhWyzWBejSHzEQizMBqy9k+qqkp35xEBz84yZzNpd0MHq+xKUsiy1RlkwnGnoRSguhMoBQ6xkBA5PCyFDaPRgX3YvOu9KH+AFdqs8JwakyEnAUS4aCPBnM8zD5DUsVjbWxETswzCWg5O48yFr4VqibnbPBb5k+PqR2OXezAhdmNQsF+QmxjPERJlFiPzpDMnCWSPzuTyt0K82taQSEoiiXZZ8cY8oIxqgAt76JvG2U3w27iHbgNb3c56TojPBhxaGNNIaVwYRnNnfMWERj4gW1jCOVXhEZRrJFteFNl0sIIc0Z7Ws+QbdkYrsPB62hZg5ytPQL2E3xJZXg/SRmpr9EGEa6kwYlZDbL4ShVtWR8=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0P190MB1978.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(366007)(376005); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0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sejrl1KMir5cCLDrr6uostHX/xapqEF6Fekw6LlO8uXEYjmculXms15ORaeBOin5R5flMnINATz9n8+RUc1unNG1bNpGTJglEf0I/ihY6jojhV5U0bQEGZvIdQhxXrk+/l8S3BboAHYodaqzWGb0gTDnRG/UclCW8/wdCTltlV+Kt4S+sHYu+8RCgH3hG2sonuh/5fOYYVSpj2WJ3ybXtqMHI8TaDicgj7walRDzTEISkf9HYpuD+DfLO/v6/XklTOfAebPCnUq9Kcal8iaZGnN+SKU/2itaGXGK1bipeAI877ZPT9FkjgSNVo4oeZ6HaSyqe6CbyMbmzhfrA4rKtEX4LXTctkcZD+0RwzkGJ/S17IYok9hj+HWrKyloI9M6MPmORWmvd5Y7u5FTjj6Wq2n4te9DZ+spoioudExcOj+xOjuMxP/uWBO+aGUOb8X0vIyvQ4ulabf77oXtAHhADlO6JyJTqqU8RS+m4QmiqaAWjMblev7FkopJsNh3wCwEoAYMu3jxX+Qd+KTXc
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU0P190MB1978.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: be7260b3-36b9-4b48-8b34-08dc5585a74a
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2024 15:32:50.5221 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: x2IO6b1b6jm/r5oaGYiDIedEYamXYDPKPDXS/HlQpGaBP7pEyrY0GZ3cCj7of6Avz6raqa6gM8Kc7Ku65Jh2KRIlPeVp7VPWD6ztUi30Kyw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0977
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/ssBsbaaD1hMuhcoWE4xxKRs7YbA>
Subject: Re: [Anima] [media-types] Thoughts on suffixes, single and multiple
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Apr 2024 15:33:05 -0000

> The utility to the community is that if a dissector (debug tool) can see it's
> a signature, then it can, even without verifying the signature, dig down into
> the payload to show a developer what's what.   It seems reasonable to common
> tools will evolve to decode JWS and COSE, but not necessarily know what a
> voucher is.

I fully agree with this! A generic +jws or +cose or +cbor or +json viewer with syntax and 
component highlighting  would be super useful -- just like we have generic .txt / .json / .c  file viewers today. 
For +cose for example, the viewer can immediately extract the signed payload part without necessarily 
knowing how to validate the signature, or knowing what key it needs for that.

> Or maybe I should reverse this: in order for common tools to evolve, we need
> clear signals about the encoding of the signature blob.

Agree even more here :-)   

For the cBRSKI draft I looked at multiple suffixes, but saw it as getting too complex for us / the 
target population to understand and correctly apply. Without much benefit.  A single +name prefix is
useful however.

> I think that application/voucher-cms+json in RFC8366 was in the wrong.
> It should have been application/voucher-json+cms

Yes, I also saw this a while back - the +cms at the end would have been the right thing. 
A generic +cms viewer could for example extract, or highlight the payload and also separately
show the signing certificates even without necessarily being able to validate the CMS.
The CMS structure itself can also contain a number indicating the payload type, in eContentType.
The viewer can optionally use this to render the payload better.