Re: [netconf] Zaheduzzaman Sarker's Discuss on draft-ietf-netconf-sztp-csr-12: (with DISCUSS and COMMENT)

Benjamin Kaduk <kaduk@mit.edu> Tue, 21 December 2021 03:09 UTC

Return-Path: <kaduk@mit.edu>
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 5C70A3A108E; Mon, 20 Dec 2021 19:09:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.496
X-Spam-Level:
X-Spam-Status: No, score=-1.496 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 I6Cjl07w9hQ8; Mon, 20 Dec 2021 19:09:53 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 57A163A108B; Mon, 20 Dec 2021 19:09:52 -0800 (PST)
Received: from mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1BL39VBL007898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Dec 2021 22:09:38 -0500
Date: Mon, 20 Dec 2021 19:09:31 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Kent Watsen <kent@watsen.net>
Cc: Zaheduzzaman Sarker <Zaheduzzaman.Sarker@ericsson.com>, "netconf@ietf.org" <netconf@ietf.org>, draft-ietf-netconf-sztp-csr@ietf.org, The IESG <iesg@ietf.org>, "netconf-chairs@ietf.org" <netconf-chairs@ietf.org>
Message-ID: <20211221030931.GM11486@mit.edu>
References: <163948820661.12873.16286675430659744022@ietfa.amsl.com> <0100017dbb6de6a8-503b8aaa-031f-4c2c-bca4-79eaec0fbff7-000000@email.amazonses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <0100017dbb6de6a8-503b8aaa-031f-4c2c-bca4-79eaec0fbff7-000000@email.amazonses.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/RjfpM4_XrpWDvxITLLlQqdh3cTs>
Subject: Re: [netconf] Zaheduzzaman Sarker's Discuss on draft-ietf-netconf-sztp-csr-12: (with DISCUSS and COMMENT)
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: Tue, 21 Dec 2021 03:09:58 -0000

Hi Kent,

On Wed, Dec 15, 2021 at 12:11:21AM +0000, Kent Watsen wrote:
> Hi Zaheduzzaman,
> 
> Thank you for your review!  Responses to your comments are below.
> 
> Kent // as a co-author
> 
> 
> > On Dec 14, 2021, at 8:23 AM, Zaheduzzaman Sarker via Datatracker <noreply@ietf.org> wrote:
> > 
> > ----------------------------------------------------------------------
> > DISCUSS:
> > ----------------------------------------------------------------------
> > 
> > I would like to discuss two points -
> > 
> >  - as this specification add more detailed response for HTTP 400 Bad Request
> >  error code. I would like to know if RFC7807 has been considered for such
> >  usage.
> 
> 
> The authors did not know about RFC 7807.  Thank you for bringing it to our attention.
> 
> Looking at RFC 7807, we do not believe that we should use it because:
>   - an SZTP-server (RFC 8572) is a RESTCONF-server (RFC 8040)
>   - RESTCONF defines it’s own mechanism for structure responses
>     https://datatracker.ietf.org/doc/html/rfc8040#section-7.1.
> 
> This comment would have been good when RFC 8040 was being published, but
> now it is water over the bridge, so to speak.  Agreed?

I agree that RFC 8040 would have been the place to use the RFC 7807
structured error responses, and trying to shoehorn it in here is not a
great fit.  However, I also think that using 400 Bad Request as part of the
expected flow of operations is also not a good fit.  That is, what seems to
be happening in this workflow is not so much that the client sent a "bad
request" as that it sent a request for something logically different than
"get-bootstrapping-data": it seems more like a "negotiate CSR parameters"
operation than "get boostrapping data", at least in the flow as described.

In particular this seems rather dicey in the context of Section 4.6 of
draft-ietf-httpbis-bcp56bis.  It feels like this RPC exchange is
essentially redefining the HTTP status code and expecting this specific
application to execute a specific behavior in response to that status code,
specifically, a specific behavior that is not the normal HTTP semantics for
that status code.  BCP56bis goes so far as to state that "Applications
using HTTP MUST NOT re-specify the semantics of HTTP status codes, even if
it is only by copying their definition."

I would like to get a better understanding of why it was deemed necessary
to introduce this behavior into the get-bootstrapping-data RPC, rather than
defining a new RPC for the new functionality.

Thanks,

Ben