[Cbor] Re: draft-edn-for-tls (was: Rebooting the naming discussion)
Rohan Mahy <rohan.mahy@gmail.com> Sat, 09 May 2026 07:14 UTC
Return-Path: <rohan.mahy@gmail.com>
X-Original-To: cbor@mail2.ietf.org
Delivered-To: cbor@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 87D6FEB9E48F for <cbor@mail2.ietf.org>; Sat, 9 May 2026 00:14:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1778310855; bh=VNDMc229jnQirElwweV41rvVMAtnzDRuiBQ+XEA0dWI=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=qRXJJX3mU9Ij6V2cZFGrWrcSPr18MGztirwlFLulntwC4pnP8o696ei9A0AaV/UeX ZraW6StAcNiCWnp9x/PyNm8jAqHeWNws5zS9pRnLwhZaZBTmm5Zph3jRw4ZD4ItLPu mv0rughVeX4kzF/pOI8WpM49Gew5LqRSKX3Soeuc=
X-Virus-Scanned: amavisd-new at ietf.org
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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytuDyBbrWMty for <cbor@mail2.ietf.org>; Sat, 9 May 2026 00:14:11 -0700 (PDT)
Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 78D7AEB9E466 for <cbor@ietf.org>; Sat, 9 May 2026 00:14:10 -0700 (PDT)
Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-44a74032ff8so1969923f8f.1 for <cbor@ietf.org>; Sat, 09 May 2026 00:14:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1778310849; cv=none; d=google.com; s=arc-20240605; b=k4QI+1/Vo/0JlTU/rHxcGWXHaU2rABJ46rp7dXXTq74/yR8abf/HSfaTJeJYWRvrAt pzTdcpmU9ZhVz5mAsg4MPXs0T8B2XoUOiEOEAwrzg6E/nDU/JnqWZguvbH6vpekwbF5c i5F64fwYa+W4q7KNPOkZBMe5n9R9gA9jPErD6+PwMTuR5SQTELtIf/F4ny5Cr4jGgRAr MKlre5F+1iEcWMQEFKrBNH3hUFpYCzoakFulv7l6LZVsvdEw66IOqEazzi0+Wn8FboJP XsBA6k1ggOyAbE1q3Qv7/cWFNRvtIdocsTl1Y5YTgPa1rZsYQWXK07dqG40zRnY/2EhP I1fg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=OSYzavEpRoiNdCusHhPm3e4TklA8kt1vKoNlrVWzKSg=; fh=CHhvFrEVpJ+J65TENPiEMzVTpBzQ7Nq56mag48rWwL4=; b=bichurGqLcg7vxh0R7kdtLCv7sHUCiPpayRhI1k1u73kNfPU2Nq/A/9lYwXxLPfMDf ftlCnN6YSQ0W9Qi9eaSIKOXL583cgdrFnzYqrEigOlgh+zMLY2iv/fGIsk8xo/mfUy66 QXnfhc3uhS9ZbNmmLYTvoBBSH2TkqbyjB9i9TQ9CNyO5wOeT4eWB1LksAc/SEsjmpPDy Gd0u8SYoQDezd5sPqCi70avIxIaqbTMpI7CcQypPjmNwYfblmGtSeuZpZHuen4RBdF12 RZekBhbiu8v3CZOTaOqeX2NPZFDT4tKsLbQaSJIUTMo8KhMROuy+m/yggzbWzPENZZPB X6yQ==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778310849; x=1778915649; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OSYzavEpRoiNdCusHhPm3e4TklA8kt1vKoNlrVWzKSg=; b=fs2P0kl43drOhA8LCIDhZkaCBlWBh3SFrpBSH0AOc600t5WVqbccXF0vYvsq4iLPWv UbwvOzQjglkmACY/5fNUdmo0Iq8sT8feMBu3aRcOaH5XMEX4nMl/siP0QeUDBUYu+ZWm 2lljzl4vJGrJTL2jgGcmupkxVGHQ/rnlq4jHyxNUOLRAr0t9fTkTkQ0txx9MD8OoKBil dJnmJ348RG3x7jqb3DGNjBIddd0ha7BMjQI7iV68vSB24qr2uA8GpD/YyuPe49nQOdph rN+z8i1QKK0cC6upXeuwgmmz1B4lT2/kozLvOjOHBf8X2z1FZ1S9FsmqrCj/QIcblkiC NOlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778310849; x=1778915649; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OSYzavEpRoiNdCusHhPm3e4TklA8kt1vKoNlrVWzKSg=; b=tSGyQRUayRNNhE9OYq4a0q+8jGDjm0fhhk7fIjutY3pLEmHs11MIiENDXivlBoJQum pDQugnS0MSTR5u8/Uy7y4EkFeHnRXePRI/9JZS3jD2XausbxWgu+LAwv7RPj+KhoFgS2 usGaLOiTVWctgJIwdKOx25mFRYK4YVw0EqtPEpGYKiQt4c9prhhiDRo/Arukwzc4vWeZ 2RKNCVzce9Md0xSR985W6t+xhzv/5IZN0Eq+veieaew2LPmILnfrIKic3Pw9e/vlnfjD lNrpskZU3/tP0n5sZRLjzHf3ukzG60Taonfb4psUV+7x5zj/Mvon9nhYDIEwifocnbxi oGTQ==
X-Forwarded-Encrypted: i=1; AFNElJ8Ylk5Kc3DZA1xjg3GzfH4bUOUHIh0bv7FmycuRJg45z2a2d6RKvnB4Sj7znWLXgTbGfwh2@ietf.org
X-Gm-Message-State: AOJu0YxTDUgFBsgGL4wMhFIpmq0PzRVvsI85idEqTiZeAZl+sOv4RKdk /r0XwrzMp7MIFG4AHoJZmjvb6mXgiZ3clp/xpmdZ4iMuqgjoH1s4znCiSsyx6oH1tFTRNQhfs1Q uzjxDOWdwOuOmk4FOlHRtj6Wb+TBoL+8NHZbO
X-Gm-Gg: Acq92OGLfRxwZSFb8aQNYrp95WoHtZGrDZHGtAGicsvgDb1bfYpyDPlwWSeFiigZRTp +BAob5pErlxPaMhmw15yyW2P++Gz1I8miZK07j+vzG8Ww7eG0jEepiG7X5egMe5ibBTNz9K7I7A ZBWXCp2Tex+/ZncPVK8l1Wz+L+gNHYsFwQ16DiJHLd17BdIOVMKNcKlnynQN5WLaQUTb6sDPmgG r62ZqUND+aNkKmZfyf0CVtzm+uDXh8TrfXuWKrwOrODbXKBcbURVn2ShAwKzwlCXWGVnhwNRysd sybpdVBTAdFlUFS9O3og0rknrZzJscJKgNxkiyS2K6qtmM0TtlOOwWHLKPIcxqrxiBP+lgUvic/ rgBGLMIvzVRaPDRetn6Gv5zTw
X-Received: by 2002:a05:6000:2c05:b0:43d:7868:21f0 with SMTP id ffacd0b85a97d-4515b056a7dmr26207936f8f.9.1778310849103; Sat, 09 May 2026 00:14:09 -0700 (PDT)
MIME-Version: 1.0
References: <177746864313.330731.1323092014299188811@dt-datatracker-b45949c58-t72jx> <20260429192059.7e7ade5b@nuclight.lan> <DDA81B0B-0E8E-4312-9AEE-897B91477395@tzi.org> <29349.1777845854@obiwan.sandelman.ca> <20E50EDD-7D4A-4789-8764-823565066B34@tzi.org> <CAKoiRuZK_YEwW-79vGzF_tDNYX-ydfTKFZL6rO4gkCoWKyM87w@mail.gmail.com> <4F8D3784-95D6-4168-8A71-267E43A27314@tzi.org> <20260509021059.3eb68a0a@nuclight.lan>
In-Reply-To: <20260509021059.3eb68a0a@nuclight.lan>
From: Rohan Mahy <rohan.mahy@gmail.com>
Date: Sat, 09 May 2026 09:13:57 +0200
X-Gm-Features: AVHnY4J79BBJ0lpdtg6wYIIsj07-YlDLFJFFvbcHw0s4OANYUwzQ0lZLzurpaaY
Message-ID: <CAKoiRuaQS1rCH_eUgL86H_AJbBGBC2gEhzcBd5BO82Mphfs6Jg@mail.gmail.com>
To: Vadim Goncharov <vadimnuclight@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000007609a206515d42a6"
Message-ID-Hash: G5JHQQ3OTMGBDBEVXILMRZRAL5EF7MCE
X-Message-ID-Hash: G5JHQQ3OTMGBDBEVXILMRZRAL5EF7MCE
X-MailFrom: rohan.mahy@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Carsten Bormann <cabo@tzi.org>, CBOR <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: draft-edn-for-tls (was: Rebooting the naming discussion)
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Wpn4y7gZx9lmYAHyFwD0oFVOJ4A>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>
Hi Vadim, On Sat, May 9, 2026 at 1:12 AM Vadim Goncharov <vadimnuclight@gmail.com> wrote: > On Tue, 5 May 2026 19:54:28 +0200 > Carsten Bormann <cabo@tzi.org> wrote: > > > On May 5, 2026, at 19:20, Rohan Mahy <rohan.mahy@gmail.com> wrote: > > > > > > Another reason to not restrict EDN to CBOR: > > > https://www.ietf.org/archive/id/draft-mahy-cbor-edn-for-tls-00.html > > I don't understand the whole goal of this draft. How this is supposed to be > used? > Examples in EDN describe something in CBOR, not TLS' binary format > Why? EDN is a diagnostic notation that describes common data types like text strings, byte strings, arrays, and maps; plus tags and simple values. We can use EDN to add comments to JSON instances. We can use it to represent instance data in YAML (which is particularly nice if your YAML contains tags). There is currently no standard notation for TLS struct *instances*. Likewise, the defacto way of human-notating Protobuf instances (Protoscope [1]) is non-standard and pretty ugly. Certainly there is no harm in generating EDN from a TLS instance or Protobuf instance for humans to read. It is much more readable than hex dumps (and IMO Protoscope). What about taking EDN instances for test vectors and using it to generate binary formats other than CBOR? Surely that is OK too as long as the processor knows to generate the target format. If it is OK to have bazaar-style extensibility which allows all kinds of extensions in EDN, why wouldn't it be ok to use EDN to generate other formats?? [1] https://github.com/protocolbuffers/protoscope > (which isn't explainable why it is used at all in 2020's for new RFCs > instead > of CBOR, but that's another topic). TLS Presentation Language and Protobuf start with what most programmers would casually call schema definitions (Carsten would likely prefer "data definitions"). They define rules about the structure of data like CDDL does, but the binary instances that are generated from TLS PL and Protobuf are useless without knowing the structure. However, they are very appropriate where the validation of these structures is essential (ex: as in security protocols and APIs). Sadly, the CBOR community is still lacking robust, CDDL-validating CBOR decoders across a range of languages (especially compiled ones) that provide the same level of functionality available off-the-shelf with Protobuf. However, having a standard, human-readable format for communicating instance data for those formats is quite valuable. If you really want more CBOR in the world, having other communities already familiar with EDN makes it relatively easy to transition to CBOR+CDDL. ("Hey, our test vectors are already done!"). Thanks, -rohan > Is this a EDN-to-TLS converter, or vice > versa? Please explain how it is to be used in tooling - what accepts it, > what > produces, etc. Why EDN at all for the alien format, let the dead bury > their dead... > > > Nice! > > > > The document’s text does position our diagnostic notation as a CBOR > format, > > which it indeed is. Maybe having CBOR in the docname (file name) and in > the > > introductory text doesn’t actually hurt that much? (If you do a > > s/extended/CBOR/g the text still makes a lot of sense!) > > > > (Of course, TLS should never have been called TLS because that > abbreviation > > meant thread-local storage for anyone active in making platforms exploit > > multicore CPUs at the time. That separate meaning doesn’t seem to have > hurt > > either, even if it *still* is called “SSL” in a lot of places.) > > In fact TLS should just die, together with all ASN.1 and X.509, but the > latter > will live longer, even in CBOR-based alternative... Still to be considered > as > legacy, hope we will be still alive when it's phased out.. > > > Grüße, Carsten > > > > PS.: The convention > > # ~~~ tls followed by the struct name > > is quite related to (if less formal than) the mapkey proposal; great food > > for thought! BTW, tls<<“structname”, …>> would work without the need to > > extract information from comments. > > +100500: comments syntax looks as quite ugly crutch given that we > app-literals. > The first example actually should like like: > > tls-pl<< > tls-definition` > enum { > false(0), > true(1), > (255) > } Bool; > > enum { > red(1), > yellow(2), > green(3) > (255) > } Color; > > struct { > uint16 id; > uint8[16] nonce; > Bool active; > Color traffic_light_color; > uint32 divisible_by<V>; > opaque reason; > } FooBar; > `, > { > "id": 16798, > "nonce": h'f6bafb33a535d1fd05bef225d2ac8f35', > "active": true, > "traffic_light_color": 3, # Color green > "divisible_by": [3, 5, 11], > "reason": 'server down' > }>> > > for inline definition, and your suggested > > tls-pl<<“structname”, …>> > > when definition was seen earlier. This then would correspond to CBOR binary > string which has h'that serialized instance' > > The only thing we should care here at the comment/pragma level is an > "include" for file with struct definitions or something other type of > reference > here (CDDL?). May be also an "unwrap" from h'' to raw binary string, but > this > is just a guess which may be wrong depending to answers in first part of > message. > > -- > WBR, @nuclight >
- [Cbor] registrations before WGLC Re: I-D Action: … Vadim Goncharov
- [Cbor] I-D Action: draft-ietf-cbor-edn-literals-2… internet-drafts
- [Cbor] Re: registrations before WGLC Re: I-D Acti… Rohan Mahy
- [Cbor] Re: registrations before WGLC Re: I-D Acti… Carsten Bormann
- [Cbor] Re: registrations before WGLC Re: I-D Acti… Rohan Mahy
- [Cbor] Re: registrations before WGLC Re: I-D Acti… Carsten Bormann
- [Cbor] Re: EDN file extension (Re: registrations … Rohan Mahy
- [Cbor] Re: EDN file extension (Re: registrations … Carsten Bormann
- [Cbor] Re: EDN file extension (Re: registrations … Vadim Goncharov
- [Cbor] Re: EDN file extension (Re: registrations … Carsten Bormann
- [Cbor] Re: EDN file extension (Re: registrations … Vadim Goncharov
- [Cbor] Re: registrations before WGLC Re: I-D Acti… Vadim Goncharov
- [Cbor] EDN file extension (Re: registrations befo… Carsten Bormann
- [Cbor] Re: EDN file extension (Re: registrations … Vadim Goncharov
- [Cbor] Re: EDN file extension (Re: registrations … Michael Richardson
- [Cbor] Re: EDN file extension (Re: registrations … Vadim Goncharov
- [Cbor] Rebooting the naming discussion (Re: EDN f… Carsten Bormann
- [Cbor] Re: Rebooting the naming discussion (Re: E… Vadim Goncharov
- [Cbor] Re: Rebooting the naming discussion (Re: E… Rohan Mahy
- [Cbor] Re: Rebooting the naming discussion (Re: E… Carsten Bormann
- [Cbor] Re: Rebooting the naming discussion (Re: E… Michael Richardson
- [Cbor] Re: Rebooting the naming discussion (Re: E… Carsten Bormann
- [Cbor] Re: Rebooting the naming discussion (Re: E… Laurence Lundblade
- [Cbor] Re: Rebooting the naming discussion (Re: E… Vadim Goncharov
- [Cbor] Re: Rebooting the naming discussion (Re: E… Carsten Bormann
- [Cbor] Re: Rebooting the naming discussion (Re: E… Vadim Goncharov
- [Cbor] Re: Rebooting the naming discussion (Re: E… Carsten Bormann
- [Cbor] EDN (fileext) naming and compatibility (Wa… Vadim Goncharov
- [Cbor] Re: Rebooting the naming discussion (Re: E… Rohan Mahy
- [Cbor] Re: Rebooting the naming discussion (Re: E… Carsten Bormann
- [Cbor] Re: Rebooting the naming discussion (Re: E… Rohan Mahy
- [Cbor] draft-edn-for-tls (was: Rebooting the nami… Vadim Goncharov
- [Cbor] Re: draft-edn-for-tls (was: Rebooting the … Rohan Mahy
- [Cbor] Re: draft-edn-for-tls (was: Rebooting the … Vadim Goncharov
- [Cbor] "<other-binary-format> should just die" (w… Rohan Mahy
- [Cbor] Re: draft-edn-for-tls (was: Rebooting the … Rohan Mahy
- [Cbor] Re: why TLS is bad | Was: "<other-binary-f… Rohan Mahy
- [Cbor] Re: draft-edn-for-tls (was: Rebooting the … Vadim Goncharov
- [Cbor] Re: why TLS is bad | Was: "<other-binary-f… Vadim Goncharov
- [Cbor] Re: why TLS is bad | Was: "<other-binary-f… Christopher Allen
- [Cbor] Re: why TLS is bad | Was: "<other-binary-f… Vadim Goncharov