[Cbor] draft-ietf-cbor-file-magic: Processing recommendations

Christian Amsüss <christian@amsuess.com> Wed, 21 April 2021 15:15 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id 1ECD63A2B9B; Wed, 21 Apr 2021 08:15:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.793
X-Spam-Status: No, score=-0.793 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, LOCALPART_IN_SUBJECT=1.107, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id o4uuGAyKk89O; Wed, 21 Apr 2021 08:15:40 -0700 (PDT)
Received: from prometheus.amsuess.com (prometheus.amsuess.com []) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 80F4A3A2B9D; Wed, 21 Apr 2021 08:15:37 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net []) by prometheus.amsuess.com (Postfix) with ESMTPS id CBBB9407AD; Wed, 21 Apr 2021 17:15:29 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com []) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 52F66D3; Wed, 21 Apr 2021 17:15:28 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:9391:8308:15c5:2377]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 132C710A; Wed, 21 Apr 2021 17:15:28 +0200 (CEST)
Received: (nullmailer pid 1851879 invoked by uid 1000); Wed, 21 Apr 2021 15:15:27 -0000
Date: Wed, 21 Apr 2021 17:15:27 +0200
From: Christian Amsüss <christian@amsuess.com>
To: draft-ietf-cbor-file-magic@ietf.org
Cc: cbor@ietf.org
Message-ID: <YIBBjy5wuep9yd+M@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="AMMwATS0tPVQvRIY"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/3ZyvYvoMiFbUC5uaOv75Q_CBlmo>
Subject: [Cbor] draft-ietf-cbor-file-magic: Processing recommendations
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, 21 Apr 2021 15:15:44 -0000

Hello Michael,

looking at cbor-file-magic from the "implementing generic tools" (static
CoAP file server, downloading CoAP client) point of view, I'm wondering
whether anything actionable for these cases.

I'm tempted to do crazy things, serving content formats from recognized
CBOR protocol tags, and possibly stripping the tagging once transferred
into a Content-Format option, or doing the inverse when downloading into
a file. Turning down the crazy, these things may make more sense in an
opt-in fashion both on the server and on the client side. Going only
half the way and serving the content-format while also sending the full
data stream probably makes no sense (if the data was really intended to
be application/octet-stream, the server is already lying about the
content format, and stealing the inital bytes just adds to the charges).

Is there any recommendation on that topic that you'd deem sensible,
either in-document or just on the "it's been discussed on the list"

(On the mapping between content formats and tags I'll have to revisit
the discussion history; I was under the impression that at some point
this was tied to content format numbers, as in "registering 2**16 tags
at once", but seems I was mistaken here).


PS. Is bcp really the intended category for that document?

Yesterday is history, tomorrow is a mystery, and today is a gift. That
is why it is called the present.
  -- ancient saying