Re: [Cbor] Chair review of cbor-file-magic 08
Michael Richardson <mcr+ietf@sandelman.ca> Wed, 02 March 2022 16:23 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 CA0A63A0C5B
for <cbor@ietfa.amsl.com>; Wed, 2 Mar 2022 08:23:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 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, 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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=sandelman.ca
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 zAm7lcXSUwhT for <cbor@ietfa.amsl.com>;
Wed, 2 Mar 2022 08:23:55 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19])
(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id D13AF3A0C2D
for <cbor@ietf.org>; Wed, 2 Mar 2022 08:23:53 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
by tuna.sandelman.ca (Postfix) with ESMTP id 426CE38B93;
Wed, 2 Mar 2022 11:32:52 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1])
by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 163MQnubE8pG; Wed, 2 Mar 2022 11:32:49 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247])
by tuna.sandelman.ca (Postfix) with ESMTP id CE72538B53;
Wed, 2 Mar 2022 11:32:49 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail;
t=1646238769; bh=76XpVWdmWdJn719z7DdnOw5+nVY0kSksnv0xqH+FuuY=;
h=From:To:Subject:In-Reply-To:References:Date:From;
b=30GKbuV9R0nULshj0/AmqJAJv3DOrQ3TH1RGoFV+4SAqQfxpSBsXfBc3DMqD0Yj3I
2O0Lv97KmahbqQEYNFs1Glzb+FzPtUQxdS4W/2jx2kyHh8AHMscnFNWUrhhbdCZUW+
cUVlINsqeBYf+YLlG4EPX/RU5oLUmLXYK5rQlysCs/9DcH2By0o48QnNsBttp032nR
20zydI/v82LxO2Grs0GY0lld8sfvs57bV0Hat+DKw2tnuG/MG8scK2MyxXSKNkZY2V
2d8mhwvj+AjeZtgea1A1zVAcYUeL+MVkWNN1Rgf9r9V6Nj/Bvq7TU7l0s33va0MFOS
7/1smKPszIFOg==
Received: from localhost (localhost [IPv6:::1])
by sandelman.ca (Postfix) with ESMTP id 447E365;
Wed, 2 Mar 2022 11:23:49 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fus-ascii=3FB=3FPT9pc28tODg1OS0xP1E=2FQW1z?=
=?us-ascii?Q?PUZDc3M=2FPQ=3D=3D=3F=3D?= <christian@amsuess.com>,
cbor@ietf.org
In-Reply-To: <Yhcr0KlCYiak9Ati@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com>
<YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
<YhTi7sT7O7xzjLQz@hephaistos.amsuess.com> <11503.1645643287@localhost>
<Yhcr0KlCYiak9Ati@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.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-sha512; protocol="application/pgp-signature"
Date: Wed, 02 Mar 2022 11:23:49 -0500
Message-ID: <18167.1646238229@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/x7ySe9gzPOl9rm0HZ4NVtq7UXSs>
Subject: Re: [Cbor] Chair review of cbor-file-magic 08
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 02 Mar 2022 16:24:06 -0000
Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com> wrote: > On Wed, Feb 23, 2022 at 02:08:07PM -0500, Michael Richardson wrote: >> > * 5.3: At latest here, I'd have expected to read something about the >> > information that is lost when using this tag with 2.2. Maybe there >> > should be a line (not for IANA but for users, so maybe in a different >> > section) that outlines when this works with (non)CBOR content formats >> > and with which encodings. >> >> I've tried how to understand this comment, but I'm failing. >> Which information is lost? > I've phrased this badly: The ct encoded in the tag gives information > about the (structured) media type and the content coding. In the 2.2 and > 2.3 use cases, the information in the content coding is ... discarded > (should be the word to use rather than lost), if it is acceptable that a > ct for application/mine+cbor@gzip is also used in this tag. Or the > content coding is required to be identity, in which case any > non-identity content coding would be ruled out (just like any non-CBOR > media types are ruled out). I'm even more lost now. >> > I think I understand now that the 5.3 tags can be used with either >> > 2.2, 2.3 or C (55899, 55800 and 55801), but >> >> good... >> >> > * with 55899 the ct tags can only be used if the content format is a >> > CBOR content format and coding is identity (and then tags a value) >> >> 55899 marks CBOR, so the content had better be CBOR. > any tag tags CBOR, so the content needs to be CBOR. Yes, we are using CBOR to create the marks, so yes, this is trivially true. The marks do not all tag CBOR. At this point, I feel like adding 55801 and the CT stuff has just confused what was a really really simple proposal, and I wish we hadn't gone there. > I'm just saying that the formalities of defining the tags are complex > (because 55799(ct1234(X)) can take anything for X, whereas > 55801(ct1234(X)) takes precisely a bytestring ('BOR'). The text in the > IANA section 5.3 reflect that correctly, and I haven't found text that > sets the rules (rather than implying them). I'll look again to see if I can clarify this better. >> > * (Maybe security) considerations: 3.2 talks of trivially concatenated >> > data items. If CBOR Tag Sequence is used and the data gets literally >> > "concatenated", (say, `cat *.cborseq > outfile`), one might wind up >> > with self-described tags in the middle of the sequence. (As we do with >> > BOMs). >> >> I have added: >> https://github.com/cbor-wg/cbor-magic-number/commit/23c4176796d83e4d69ba56ab8a9b7f45cd691272 > That sounds like accepting such chains; is that really desirable? It > sounds really messy to me. Yes, it is sometimes appropriate to accept such chains. Consider a file containing a series (bag) of certificates. >> I think that you are having a problem with A.1 wrapping a CBOR thing in >> 55801? > I don't care about what is in a 55801, but the CDDL is confusing because > it is unspecific about which use case it is. > Either this tag is for use with 55800/55801, then it can be `senml-cbor > = #6.1668546672('BOR')` right away. > Or it is for use with 55799, then it needs to be `senml-cbor = > #6.1668546672([*record])` or whatever we use for SenML. I think that we shouldn't use senml-cbor in the example. -- Michael Richardson <mcr+IETF@sandelman.ca> . o O ( IPv6 IøT consulting ) Sandelman Software Works Inc, Ottawa and Worldwide
- [Cbor] 🔔 2nd WGLC on cbor-file-magic-08 Christian Amsüss
- Re: [Cbor] 🔔 2nd WGLC on cbor-file-magic-08 Barry Leiba
- [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann