[netconf] Re: draft-ietf-netconf-https-notif-cbor-00: Update and request for further review and clarification
Kent Watsen <kent+ietf@watsen.net> Mon, 11 May 2026 13:58 UTC
Return-Path: <0100019e17549fb3-9497e54f-2b59-4a62-9d62-bfe1bd0a826e-000000@amazonses.watsen.net>
X-Original-To: netconf@mail2.ietf.org
Delivered-To: netconf@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 08BC4EC8518E; Mon, 11 May 2026 06:58:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1778507893; bh=GjFWjrKLWw2fejzhHwi7iAx8LmOMQ79h1NeaD2xpexY=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=MiDW0lVR/6Szgx6gyWXeKWoS+1E1OJBfGIyfk7pfXHyKC8SAPrDKA8lvFpsEAsu75 /emxoxH5x0t5qdWLSZnyU1M+ndzO8I6hQFnPpPlEiCbgKSDhahW0N6r8isLonGLlbL ozX2mBt4WuDBweg7h/47gNa22Z4SuOBD5JmZpG9M=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 FXJEHdifrj8x; Mon, 11 May 2026 06:58:09 -0700 (PDT)
Received: from a48-90.smtp-out.amazonses.com (a48-90.smtp-out.amazonses.com [54.240.48.90]) (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 0C292EC85182; Mon, 11 May 2026 06:58:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1778507882; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=GjFWjrKLWw2fejzhHwi7iAx8LmOMQ79h1NeaD2xpexY=; b=fYtpl5T0nRakoWTGaU3EeiWSRGYXLMk96OPWzc9cmxQCS0ScvFXf4nyR7qJaku0h CT7sOA+GHGSD+digb+KHl+ibkUs3Rc4qTNmFiES8UGKX+KFuD1teaBESt9FaTqQavDB jzuCU0DssNwtLevYDCpqi9s5S0WQPUSpzC7xrKt4=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100019e17549fb3-9497e54f-2b59-4a62-9d62-bfe1bd0a826e-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_B8796C61-CBAD-420C-974D-9670DDA51330"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.6\))
Date: Mon, 11 May 2026 13:58:02 +0000
In-Reply-To: <2A40360D-C622-41F8-A18F-A776AE96C643@insa-lyon.fr>
To: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
References: <CAN_7zTm3rwDTx=sVmHM5zNYf+054O62P3qD-ewPrFPuVgu8qgQ@mail.gmail.com> <2A40360D-C622-41F8-A18F-A776AE96C643@insa-lyon.fr>
X-Mailer: Apple Mail (2.3826.700.81.1.6)
Feedback-ID: ::1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2026.05.11-54.240.48.90
Message-ID-Hash: XC5F4QDTCWDCPUWTS6ICQH6RAH3IO65W
X-Message-ID-Hash: XC5F4QDTCWDCPUWTS6ICQH6RAH3IO65W
X-MailFrom: 0100019e17549fb3-9497e54f-2b59-4a62-9d62-bfe1bd0a826e-000000@amazonses.watsen.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Meher Rushi <meherrushi2@gmail.com>, "netconf@ietf.org" <netconf@ietf.org>, draft-ietf-netconf-https-notif.shepherd@ietf.org, draft-ietf-netconf-https-notif.ad@ietf.org, draft-ietf-netconf-https-notif.authors@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [netconf] Re: draft-ietf-netconf-https-notif-cbor-00: Update and request for further review and clarification
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/kL84Ts8ZZET6AlMqbTDWt7PEcek>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>
Alex, Meher, all, The https-notif authors are in the process of making this change, but please help me confirm that the new media-type is accurate for legacy notifications, which are technically not modeled by YANG. I think that calling it "yang-data" anyways makes sense, for all of the benefits mentioned. Perhaps the "https-notif" draft needs to explicitly mention it? Kent // https-notif contributor > On May 10, 2026, at 6:45 AM, Alex Huang Feng <alex.huang-feng@insa-lyon.fr> wrote: > > Dear Meher, > > [Adding HTTPS-Notif authors, AD and shepherd as the https-notif document is currently at the IESG] > > I already went to the mic in IETF 125 (https://datatracker.ietf.org/doc/minutes-125-netconf-202603160100/) to comment this, but forgot to send my mail to the ML. > > I strongly suggest going option 1. > Any data that is YANG-modelled needs to use application/yang-data+[xml/json/cbor] rather than the generic application/[xml/json/cbor]. > The reason is because they follow different specifications. CBOR follows RFC8948 and YANG-CBOR follows RFC9254. Thus, I would strongly suggest the community to keep consistency here. > > Additionally, as Meher noted below, if we use application/yang-data-cbor, identifying name-encoded messages and SID-encoded messages becomes automatic (by using the id parameter). > > As per the approach to solve this I would let the chairs and WG decide. > I know https-notif draft is currently at the IESG, but Kent suggested at IETF125 to bring https-notif back to the WG to quickly change the two encodings: > - application/xml —> application/yang-data+xml [RFC8040] > - application/json —> application/yang-data-json [RFC8040] > > I would prefer this option, so that we can keep the documents consistent. > If the document cannot be brought back to the WG, the second option would be to use draft-ietf-netconf-https-notif-cbor to ‘update' draft-ietf-netconf-https-notif. > > Regarding the capabilities exchange using YANG, it may be worth to have a look at https://datatracker.ietf.org/doc/draft-ietf-netconf-yp-transport-capabilities/ > This YANG module uses the encodings from subscribed-notifications, so any identify coming from “sn:encoding” can be exchanged between the server and the client. > > Regards, > Alex > >> On 10 Mar 2026, at 07:18, Meher Rushi <meherrushi2@gmail.com> wrote: >> >> Hi all, >> >> Thank you to everyone who participated in the adoption call and IPR poll. Our document is now available as a WG item: >> >> draft-ietf-netconf-https-notif-cbor-00 >> https://datatracker.ietf.org/doc/draft-ietf-netconf-https-notif-cbor/ >> >> As a brief reminder, this document extends draft-ietf-netconf-https-notif by adding CBOR encoding support for YANG notifications over HTTPS transport, complementing the existing JSON and XML encodings. >> >> Based on the previous discussions and comments, we would like to bring the following question to the list to decide on the appropriate modification to make to the draft. >> >> As we continued working through the implementation, we realized we need to explicitly signal whether a CBOR payload uses name-based or SID-based encoding. Without this, a receiver has no reliable way to distinguish the two from inspection alone, and misidentification causes decoding failures. >> >> The media type application/yang-data+cbor (RFC 9254) is designed for exactly this: it supports an optional "id" parameter (id=name or id=sid) for unambiguous signaling. However, RFC 9254 also specifies that this media type is intended only for YANG-modeled data, which introduces a constraint described below. >> >> This leads to two candidate approaches: >> >> Option 1 — Use application/yang-data+cbor with the id parameter >> Provides standardized, unambiguous signaling aligned with RFC 9254. >> The constraint is that applying it to the capability exchange requires >> a corresponding YANG module — which the current https-notif draft does >> not define. However, draft-ietf-netconf-notif-envelope >> (https://datatracker.ietf.org/doc/draft-ietf-netconf-notif-envelope/) >> is already introducing an extensible YANG model for notification >> envelopes in this space, which suggests that defining a YANG module >> for the capability exchange may be a natural and reasonable step. >> If taken, it may also be worth updating the parent https-notif draft >> to use application/yang-data+json and application/yang-data+xml for >> consistency, though that would be a separate and non-trivial change. >> >> Option 2 — Keep application/cbor; signal encoding via capability URIs >> Retain application/cbor for both capability exchange and notifications. >> Signal the SID vs. name distinction through dedicated capability URIs >> in the capability exchange response, e.g.: >> urn:ietf:capability:https-notif-receiver:encoding:cbor:sid >> urn:ietf:capability:https-notif-receiver:encoding:cbor:named_identifier >> The draft already permits custom capability URIs, and publishers are >> required to ignore unrecognised ones, so this requires no structural >> changes to either draft. The tradeoff is relying on URI convention >> rather than the standardized media-type mechanism — though it fully >> resolves the ambiguity. Given that the capability exchange is a >> one-time event per session, the performance difference between the >> two options is negligible. >> >> We would appreciate WG input on both options, particularly from those >> familiar with SIDs and CBOR. We welcome further review and feedback from the WG. If you have comments, please send them to this list or open an issue on our GitHub tracker: >> https://github.com/MeherRushi/draft-ietf-netconf-https-notif-cbor >> <https://github.com/MeherRushi/draft-ietf-netconf-https-notif-cbor> >> Best regards, >> Bharadwaja Meherrushi Chittapragada, Siddharth Bhat, Vartika T Rao, >> Hayyan Arshad, Mohit P. Tahiliani >> (Authors, draft-ietf-netconf-https-notif-cbor) >> _______________________________________________ >> netconf mailing list -- netconf@ietf.org >> To unsubscribe send an email to netconf-leave@ietf.org >
- [netconf] draft-ietf-netconf-https-notif-cbor-00:… Meher Rushi
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Alex Huang Feng
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Kent Watsen
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Alex Huang Feng
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Kent Watsen
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Mahesh Jethanandani
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Alex Huang Feng
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Mahesh Jethanandani
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Meher Rushi
- [netconf] Re: draft-ietf-netconf-https-notif-cbor… Siddharth Bhat