Re: [Cbor] cbor key allocations and IANA
Michael Richardson <mcr+ietf@sandelman.ca> Thu, 10 May 2018 21:12 UTC
Return-Path: <mcr+ietf@sandelman.ca>
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 C80CE127863 for <cbor@ietfa.amsl.com>; Thu, 10 May 2018 14:12:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, 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 orZ87xZHdhGE for <cbor@ietfa.amsl.com>; Thu, 10 May 2018 14:12:55 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E79412D77E for <cbor@ietf.org>; Thu, 10 May 2018 14:12:53 -0700 (PDT)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id BA47220090 for <cbor@ietf.org>; Thu, 10 May 2018 17:24:46 -0400 (EDT)
Received: by sandelman.ca (Postfix, from userid 179) id 2035B2E37; Thu, 10 May 2018 17:12:35 -0400 (EDT)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id 1DBF12E05 for <cbor@ietf.org>; Thu, 10 May 2018 17:12:35 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: cbor@ietf.org
In-Reply-To: <00f001d3e8a0$115c4f30$3414ed90$@augustcellars.com>
References: <13362.1525977902@localhost> <00f001d3e8a0$115c4f30$3414ed90$@augustcellars.com>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Date: Thu, 10 May 2018 17:12:35 -0400
Message-ID: <29933.1525986755@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/YwKdijvUxsEELmc3cnQQYmA6At4>
Subject: Re: [Cbor] cbor key allocations and IANA
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.22
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, 10 May 2018 21:12:58 -0000
Jim Schaad <ietf@augustcellars.com> wrote: >> I'm about to write an IANA Considerations section for a document that says >> essentially: >> >> *) that the 1-byte positive and negative integers may be allocated by > IETF >> Standards action. >> *) that the 2-byte, 3-byte and 4-byte positive integers may be allocated > by >> IANA >> First Come First Served > (https://tools.ietf.org/html/rfc8126#section-4.4) >> *) that the 2-byte, 3-byte and 4-byte negative integers be reserved for > as >> an experimental range. > The first bike shed is what you mean by 1-byte and 2-byte. Are you talking > about the integer value or the encoded CBOR integer value. okay, this is a good reason why I'd like to have standardized text :-) I mean, integers that when encoded, fit into 1 byte. So, -31 to +31. >> The exact details of the could be adjusted slightly. It seems that this >> kind of >> pattern will be frequently repeated, and so I wonder if a document should >> be written that updates RFC8126 to create some "macro" statement about >> CBOR key values taht would say something like that. > I guess one question is could this be done for IANA by reference. "Use the > same assignment policy as this registry" which might make things > easier. I Yes, we could use that way, except if that registry changed in some way. Mike Jones <Michael.Jones@microsoft.com> wrote: > The shiny new CBOR Web Token (CWT) RFC - RFC uses similar language and > rules, which were heavily discussed and vetted both by the IESG and > IANA. I suggest that you copy them verbatim. Yes, so this could for the above suggestion by Jim be the registry to point to. Do I really want to make IANA think so much? I'd rather just give it a name. > In particular, the "Claim Key" allocation rules at https://tools.ietf.org/html/rfc8392#section-9.1.1 are: > Claim Key: > CBOR map key for the claim. Different ranges of values use > different registration policies [RFC8126]. Integer values from > -256 to 255 and strings of length 1 are designated as Standards > Action. Integer values from -65536 to -257 and from 256 to 65535 > along with strings of length 2 are designated as Specification > Required. Integer values greater than 65535 and strings of length > greater than 2 are designated as Expert Review. Integer values > less than -65536 are marked as Private Use. So I guess there is no special category from -31 to +31. Probably that's okay as we allocate those first and we are careful about them. I will do what you suggest and use your text for now. Do you think I should say, "like the Claim Key"? I think it's sufficiently well written that I'd still like to have an IANA "macro" that indicates this. > These are also based on and similar the allocation rules in COSE, such > as those in https://tools.ietf.org/html/rfc8152#section-16.2 for labels > and in https://tools.ietf.org/html/rfc8152#section-16.8 for values. > However, I would use the CWT language over the COSE language, as the > IESG and IANA suggested several changes to the (already clear) language > in COSE. -- Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works -= IPv6 IoT consulting =-
- [Cbor] cbor key allocations and IANA Michael Richardson
- Re: [Cbor] cbor key allocations and IANA Jim Schaad
- Re: [Cbor] cbor key allocations and IANA Mike Jones
- Re: [Cbor] cbor key allocations and IANA Michael Richardson
- Re: [Cbor] cbor key allocations and IANA Thiago Macieira
- Re: [Cbor] cbor key allocations and IANA Michael Richardson