Re: [netconf] WGLC: draft-ietf-netconf-https-notif-06

Andy Bierman <andy@yumaworks.com> Thu, 18 February 2021 23:22 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1F55E3A19C5 for <netconf@ietfa.amsl.com>; Thu, 18 Feb 2021 15:22:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 qCas0IKw8uE0 for <netconf@ietfa.amsl.com>; Thu, 18 Feb 2021 15:22:18 -0800 (PST)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C43403A19C8 for <netconf@ietf.org>; Thu, 18 Feb 2021 15:22:17 -0800 (PST)
Received: by mail-lj1-x22a.google.com with SMTP id g1so3279552ljj.13 for <netconf@ietf.org>; Thu, 18 Feb 2021 15:22:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f5aTb2OhXKwUBu780LilRmB/NIKkqmefPDsp6b6afrs=; b=GRKHV/rx6KRsz8Joj0PdIe1bRfsS5W5SUuY7/5kTdWSwvQSG/iXZtqullc0ucpjOOz QQlJuZY7ueMfs9VdAAHuFOevbOAcfyXRoV/htX3zJVIxjsvC+pkLOpcslSg5xXwCV0rA qWkP1aHiO/WEn73uLOgN3Z4o/fCL36WxEjPloIDlTY+BbRgwoOpKZyN7k9DwEFJ4gxMN qkSq/pQ1teFJ2EdDc3xpX3TOVqEzmBFCK4DvMGQoEiXeyQovVBilGvMyeOa4CZSXH0bm hppR+MTyElzC16Ad9rVh9LnA7T9Kk2POD1k1K0RokHI/W+WM/4tU4+KLVDEGynT0DbTp XhIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f5aTb2OhXKwUBu780LilRmB/NIKkqmefPDsp6b6afrs=; b=EcyGDtJpFQjrh62w17vN2FPSzj3Mzb3R/Y6qNAbpiMJlKYG/gTRV7WOySXCmyd1/3E YVl5bxgMMMOh0YjSy5C2pFy4LpNoOkcycUCuGshH1WHCCE3QIdEiGT2yiV86rL6edPbS ctpR56DyURfl9kPQ+gf6h9NlY5bBTxFXc8IvzxYF2O2X9q52BPRKXdT3FlDPM+rqR9mY kgmevPaLsS0u+JKjUif2wwvh/Nu9T5tgjZ6WuxOgXBhF0c9Ukcu3M44tsgkjiqQJ6iuy 7E9WDtjOQXATBucyUVWVIviR0fJnBeNbm+zi5/bwkvgLHyraGUB0ULa0E/l9o4N+7mfb oZkg==
X-Gm-Message-State: AOAM532fjqwQJotaq14mdMlbcGFj4C4LBNn96UaLXPoKfATvG3I922kf y1NC47BvnOm9DtlSI+e63GGEdb0plGmqhv2RSz1L/Q==
X-Google-Smtp-Source: ABdhPJwnLyG3XT8AaE6bX2FCRX/XQv3TAKpTUDuOUh+gCwnn5YMCnHv03edbeNEqX2Y6UmbKMkQqlHTPwzLXW/g0cJM=
X-Received: by 2002:a19:f018:: with SMTP id p24mr771752lfc.568.1613690535418; Thu, 18 Feb 2021 15:22:15 -0800 (PST)
MIME-Version: 1.0
References: <MN2PR11MB43669EEF05655F07E39FE4BEB5A80@MN2PR11MB4366.namprd11.prod.outlook.com> <CABCOCHTqgk1D4=LvLJoA4BMpPYBrs5WvqLs60whBXK6EqAB3rA@mail.gmail.com> <01000177b754b3b3-87cb5eda-8f8b-4a27-be56-5dcc52a1e5c3-000000@email.amazonses.com>
In-Reply-To: <01000177b754b3b3-87cb5eda-8f8b-4a27-be56-5dcc52a1e5c3-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 18 Feb 2021 15:22:04 -0800
Message-ID: <CABCOCHQUW8H2pbykuQqZYOFPzJZZszd=D5wfbN+L8DvNAO2SYQ@mail.gmail.com>
To: Kent Watsen <kent@watsen.net>
Cc: "Rob Wilton (rwilton)" <rwilton=40cisco.com@dmarc.ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "draft-ietf-netconf-https-notif@ietf.org" <draft-ietf-netconf-https-notif@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000242edc05bba49b41"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/fbkhfuozhtymIDWg4GYQrXJkbUE>
Subject: Re: [netconf] WGLC: draft-ietf-netconf-https-notif-06
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Feb 2021 23:22:20 -0000

On Thu, Feb 18, 2021 at 2:48 PM Kent Watsen <kent@watsen.net> wrote:

> Hi Andy,
>
> > It seems too much of the language is limited to XML or JSON encoding.
> > The media type extensibility should be well-defined so this draft
> > does not have unintended limitations later on.
>
> We believe the defines an extensibility mechanism via the “capabilities”
> resource target, which we recently modified in our local copy in response
> to Martin’s comment enabling the capabilities to use any URI.   Please
> advise.
>
>
> > There is a significant architectural change made without any real
> mention (sec. 4)
> > In NETCONF and RESTCONF, a notification is a one-way message, meaning
> there
> > is no application layer response whatsoever.
> >
> > That is not the case here. Instead, the publisher sends an HTTPS POST
> for every notification
> > and expects a "204 No Content" response for each one.
> > The draft should explain the reasons for this change.
> > HTTP client implementations tend to wait for a response to a POST.
> > That is probably not what is intended here, but no text explains the
> details.
> >
> > Sec. 4 does not mention what the publisher is supposed to do if the
> receiver does not
> > send a response or sends something other than 204.  It seems like this
> redundant ACK
> > adds complexity and network traffic for no benefit.
>
>
> It is agreed that notifications have historically not entailed having any
> response from the receiver.  However, the HTTP protocol defines that there
> be a response, and since there is no content for a receiver to return, we
> suppose it to be 204 (No Content).
>
> That said, please note that HTTP is a sessionless/stateless protocol and
> authentication MAY be conveyed via HTTP headers, which might necessitate a
> 401 (No Authentication) response.  There may be other possible reasons to
> return other values too (though we don’t have any examples to share).
>
> To be clear, by no means are we suggesting that YANG “notification”
> statements introduce application-level responses.
>


I do not think anyone suggested redefinition of the YANG notification-stmt.
The notification delivery mechanisms are protocol-specific.
In this case the application is HTTPS and 204 No Content is a normal
response to a POST request.

IMO notification delivery is not a good use-case for HTTP POST.


> It is unclear how HTTP responses cannot be returned; the only options seem
> to be for the draft to explicitly enumerate all possible responses, or
> leave it open.  Thoughts on what text should added?
>
>
> Kent and Mahesh
>
>
>
Andy