Re: [COSE] Key identifier of type bstr / int

Michael Richardson <mcr+ietf@sandelman.ca> Thu, 24 March 2022 18:12 UTC

Return-Path: <mcr@sandelman.ca>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60B213A0121 for <cose@ietfa.amsl.com>; Thu, 24 Mar 2022 11:12:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IN-JXSviCMAr for <cose@ietfa.amsl.com>; Thu, 24 Mar 2022 11:12:23 -0700 (PDT)
Received: from relay.sandelman.ca (relay.cooperix.net [IPv6:2a01:7e00:e000:2bb::1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 690BB3A118E for <cose@ietf.org>; Thu, 24 Mar 2022 11:12:22 -0700 (PDT)
Received: from dooku.sandelman.ca (unknown [IPv6:2a02:3038:407:528c:125:89b1:c535:ce3c]) by relay.sandelman.ca (Postfix) with ESMTPS id 947621F45A for <cose@ietf.org>; Thu, 24 Mar 2022 18:12:19 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 4BC971A045C; Thu, 24 Mar 2022 19:06:12 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
to: "cose@ietf.org" <cose@ietf.org>
In-reply-to: <17648.1648129640@dooku>
References: <95B75634-B147-4756-A950-C6B139CF3ADD@ericsson.com> <9DF382AC-12A8-47A5-AAE7-2B0D75EAA669@island-resort.com> <EDFDB6E4-2BDE-4E2E-9CF0-D771E2DEF3C6@ericsson.com> <823C00C2-4F6C-4DF5-99B0-87D8524D4A9C@island-resort.com> <C059B669-4C5D-4980-A665-96A39F4457C3@island-resort.com> <Yjr1XF5A2Cl2Jn1s@LK-Perkele-VII2.locald> <SY4P282MB1274D757E003725775C9CB9B9D189@SY4P282MB1274.AUSP282.PROD.OUTLOOK.COM> <17648.1648129640@dooku>
Comments: In-reply-to Michael Richardson <mcr@sandelman.ca> message dated "Thu, 24 Mar 2022 14:47:20 +0100."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Thu, 24 Mar 2022 19:06:12 +0100
Message-ID: <30639.1648145172@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/01IdHdeoLga_cIc-Yj3FxudrZEU>
Subject: Re: [COSE] Key identifier of type bstr / int
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Mar 2022 18:12:29 -0000

Michael Richardson <mcr@sandelman.ca> wrote:
    > Of course, it breaks if you can't process the new type.  You'll reject
    > it.  That's fine. You'll reject anything you don't undrstand.  It's not
    > backwards compatible.

I received private email suggesting that surely I mean, forwards compatible.

Nope, I mean backwards compatible.  That means that a new sender can operate
with an older receiver.  MIME headers are backwards compatible.  The sender
doesn't need to know if my MTA supports DKIM headers, it can just put them
in. My end will ignore stuff it does not understand.  At the cost of
transfering those bytes.

If we change kid: to accept int as well as bstr, then a new sender who uses
*int* will not be understood by an older receiver.

But, since COSE is not a Protocol in of itself, but rather a building block
for some bigger protocol (like RATS EAT, or draft-ietf-anima-constrained-voucher),
if COSE adds int to the list of valid kids, then it would be up to EAT, or
constrained-voucher to say which version of COSE it supports.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-