Re: [Netconf] draft-ietf-netconf-rfc6536bis: one week review of a specific change

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 16 November 2017 11:40 UTC

Return-Path: <mjethanandani@gmail.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 E26A8129465; Thu, 16 Nov 2017 03:40:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 aWnDr-SJSVMi; Thu, 16 Nov 2017 03:40:12 -0800 (PST)
Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) (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 88F57126DFB; Thu, 16 Nov 2017 03:40:12 -0800 (PST)
Received: by mail-pf0-x234.google.com with SMTP id i15so9103601pfa.3; Thu, 16 Nov 2017 03:40:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=iYaGZnAu9T+KXEHr2GfOaUubFMqSNUIJPeHwylCkOwY=; b=rRHhPQxg9yERrRkmPOFsgiK4f1+vFjfMvQ4F7iJjk5akbt/OCP14lINscOU5lQCafX j7zoioQ4gOqk/eyhDc9iyWC9BCMJIDbxL6F2syMTBebBIs+Va5VciwwLjxNXV+BPvTcQ pFNedaWphom6IspQizJ+wkfSjx/FcHfZAAd7HXPhXTbfuqyaMv3YGSq3SxJs6GBIIL56 uXmMwNS7XGenY5ewfqIbGcF7wRAW4BtH78qsJSIFe6LuZ6WjVCcnzkVr9w2VtmLRN2Hz a25lIfDVJdRu0zB6up0YodYW7i1B7sb8/sAlNXuG9BM3oU/J1UGIh24113jpiqLkiDtw kvpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=iYaGZnAu9T+KXEHr2GfOaUubFMqSNUIJPeHwylCkOwY=; b=eGbv+uhSyjoUL4gWi95SgzVxhJngCR+WVX/7/sMBJA0+SClbjteV0L2umsego55+yD G3X+h/bYLTyQq3mQWZ9uWvhfEGjo71ctgGFKg2xjTbV4UpsqyNO3Xjm4+P/JpA417uN0 wC3f+sGvW3BeNxCDGNXfCUBvT+63xdqVMjAiEsOLOpVk0plxUh5wHW5dA8d2DlIHIVLb w740BNLP2STRDQPAskGMd9GzSQEK/cYPc1BlVqhBhNNUya1fNxRD2jsLbC4yQYvaTUb1 UvsRUpzlYjdyyLRT67f+DOG1vsQe2GhytnfTdFb1QZoUA5QeG0TGCFipZDb4SKEWAItP g/hw==
X-Gm-Message-State: AJaThX7necobscK2NNCobj6rb2nVbpzVaM+rzL2gNboiKnyPG7T4++KM qHXRHQbjlAIO0xk5fEdwXI4=
X-Google-Smtp-Source: AGs4zMbedwhhpITrO+ehf8aUyFvwwFiOq4mpfmbTieuvmrTKMk9rq1SFQs8zK7PexwjAxL/FvM9OfA==
X-Received: by 10.84.216.81 with SMTP id f17mr1419999plj.330.1510832412063; Thu, 16 Nov 2017 03:40:12 -0800 (PST)
Received: from [192.168.1.31] (bb219-75-122-125.singnet.com.sg. [219.75.122.125]) by smtp.gmail.com with ESMTPSA id t84sm2690403pfe.160.2017.11.16.03.40.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Nov 2017 03:40:11 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_903CED32-4885-41FC-8736-9F6655085F7C"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Mahesh Jethanandani <mjethanandani@gmail.com>
In-Reply-To: <0cd2df0d-08cb-2f8b-2c66-906c699f4d83@cisco.com>
Date: Thu, 16 Nov 2017 19:40:06 +0800
Cc: Andy Bierman <andy@yumaworks.com>, sec-ads@ietf.org, netconf <netconf@ietf.org>, Eric Rescorla <ekr@rtfm.com>
Message-Id: <91F5996E-16B2-443D-B826-3A3116E8FA48@gmail.com>
References: <CABCOCHSYYFrZxC11v_++adG2uCP7urxR=VOKX-+8zXA-qiBCTA@mail.gmail.com> <60763bcf-47d9-d538-f1b3-6d71e3c80d1d@cisco.com> <CABCOCHTEXwhAq6NzoAGHcC-EE19bXJ0kbqPS0hwJB5_+RtOfyg@mail.gmail.com> <20171113.162810.1853130535954821831.mbj@tail-f.com> <272FF52B-B843-46DA-A502-0080B66FA8E7@gmail.com> <CABCOCHR2OYsN9LLcEZ9AuGQ-_9mYp788CzsEPcbfxHKeAquNpg@mail.gmail.com> <c15ea143-071d-c06b-7f75-e0f461f1b3db@cisco.com> <A766BBC2-8A02-4C70-8A65-1BC8936B0A3D@gmail.com> <0cd2df0d-08cb-2f8b-2c66-906c699f4d83@cisco.com>
To: Robert Wilton <rwilton@cisco.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/A4lCJjZJOrpj-BHLZ5rKv-dSVEM>
Subject: Re: [Netconf] draft-ietf-netconf-rfc6536bis: one week review of a specific change
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Network Configuration WG mailing 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, 16 Nov 2017 11:40:16 -0000

I have verified that the proposed changes have been incorporated in -09 version of the draft in GitHub.

Based on my discussion with Eric, there is a little more tweak that we need to provide to Security Considerations section in the third paragraph.

OLD:
   There is a risk related to the lack of access control enforcement for
   the RESTCONF OPTIONS method.  The risk here is that the response to
   OPTIONS may vary based on the presence or absence of a resource
   corresponding to the URL's path.  If this is the case, then it can be
   used to trivially probe for the presence or absence of values within
   a tree.  Therefore, a server MUST NOT vary their OPTIONS responses
   based on the existence of the underlying resource, which would
   indicate the presence or absence of resource instances.

NEW:
   There is a risk related to the lack of access control enforcement for
   the RESTCONF OPTIONS and PATCH methods.  The risk here is that the response to
   OPTIONS and PATCH may vary based on the presence or absence of a resource
   corresponding to the URL's path.  If this is the case, then it can be
   used to trivially probe for the presence or absence of values within
   a tree.  Therefore, a server MUST NOT vary its responses
   based on the existence of the underlying resource, which would
   indicate the presence or absence of resource instances. In particular
   servers should not expose any instance information before ensuring
   that the client has the necessary access permissions to obtain that
   information. In such cases, servers are expected to always return the “access-
   denied” error response.


> On Nov 16, 2017, at 1:56 PM, Robert Wilton <rwilton@cisco.com> wrote:
> 
> I'm not sure I understand exactly what point the previous text was stating so I'm not sure whether my proposed text is stating the same thing (or whether this has already been stated elsewhere in the draft):
> 
> OLD:
> Therefore, a server MUST NOT vary their OPTIONS responses
> based on the existence of the underlying resource, which would
> indicate the presence or absence of resource instances. In particular
> servers should not expose instance information before validating field
> information.
> 
> NEW:
> Therefore, a server MUST NOT vary their OPTIONS responses
> based on the existence of the underlying resource, which would
> indicate the presence or absence of resource instances.  In particular
> servers should not expose any instance information before ensuring
> that the client has the necessary access permissions to obtain that
> information.
> 
> 
> Is that any more clear?  Or have I missed the point?
> 
> Thanks,
> Rob
> 
> 
> On 16/11/2017 12:55, Mahesh Jethanandani wrote:
>> Can you provide text?
>> 
>>> On Nov 16, 2017, at 12:29 PM, Robert Wilton <rwilton@cisco.com <mailto:rwilton@cisco.com>> wrote:
>>> 
>>> "validating field information" is slightly unclear to me, can this be reworded slightly?
>>> 
>>> Thanks,
>>> Rob
>>> 
>>> On 16/11/2017 03:12, Andy Bierman wrote:
>>>> Hi,
>>>> 
>>>> I updated the draft with these changes on github.
>>>> There is a draft-pre-09.txt file now for you to review.
>>>> 
>>>> 
>>>> Andy
>>>> 
>>>> 
>>>> On Tue, Nov 14, 2017 at 5:05 PM, Mahesh Jethanandani <mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>> wrote:
>>>> Andy,
>>>> 
>>>> I assume you will incorporate these changes in the -09 version of the draft.
>>>> 
>>>> However, I am unable to review the changes in github. Can you post the diffs of the draft w.r.t. -08 version.
>>>> 
>>>> That still leaves us with one issue, and that has to do with the what permission to give edit-operation. I am assuming the WG agrees that making the change from ‘none’ to ‘read’ for edit operations makes maintenance more difficult and makes the operation more vulnerable, unless all the deny rules are in place.
>>>> 
>>>> We will need to update the security considerations section to address Eric’s concerns. How about this update?
>>>> 
>>>> OLD:
>>>> Therefore, a server MUST NOT vary their OPTIONS responses
>>>> based on the existence of the underlying resource, which would
>>>> indicate the presence or absence of resource instances.
>>>> 
>>>> NEW:
>>>> Therefore, a server MUST NOT vary their OPTIONS responses
>>>> based on the existence of the underlying resource, which would
>>>> indicate the presence or absence of resource instances. In particular
>>>> servers should not expose instance information before validating field
>>>> information.
>>>> 
>>>> Cheers.
>>>> 
>>>>> On Nov 13, 2017, at 11:28 PM, Martin Bjorklund <mbj@tail-f.com <mailto:mbj@tail-f.com>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I just read this thread, and I agree with the changes, but see below
>>>>> for a comment.
>>>>> 
>>>>> 
>>>>> Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com>> wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> Here are some proposed edits to make the data rule consistent with the
>>>>>> examples.
>>>>>> Note that this issue is not related to the edit in the original 1-week
>>>>>> change.
>>>>>> 
>>>>>> 
>>>>>> sec. 3.3.5:
>>>>>> 
>>>>>> OLD:
>>>>>> 
>>>>>> 
>>>>>>      data node rule:  controls access for a specific data node, identified
>>>>>>      by its path location within the conceptual XML document for the
>>>>>>      data node.
>>>>>> 
>>>>>> 
>>>>>> NEW:
>>>>>> 
>>>>>>      data node rule:  controls access for a specific data node and its
>>>>>> descendants,
>>>>>>      identified by its path location within the conceptual XML document
>>>>>> for the
>>>>>>      data node.
>>>>>> 
>>>>>> 
>>>>>> sec 3.4.5, step 6, bullet 2:
>>>>>> 
>>>>>> 
>>>>>> OLD:
>>>>>> 
>>>>>>        *  The rule does not have a "rule-type" defined or the "rule-
>>>>>>           type" is "data-node" and the "path" matches the requested
>>>>>>           data node, action node, or notification node.
>>>>>> 
>>>>>> 
>>>>>> NEW:
>>>>>> 
>>>>>> 
>>>>>>        *  The rule does not have a "rule-type" defined or the "rule-
>>>>>>           type" is "data-node" and the "path" matches the requested
>>>>>>           data node, action node, or notification node. A path is
>>>>>>           considered to match if the current data node is the data node
>>>>>>           specified by the path, or is a descendant data node of this
>>>>>>           data node.
>>>>> 
>>>>> I propose:
>>>>> 
>>>>>             The rule does not have a "rule-type" defined or the
>>>>>             "rule-type" is "data-node" and the "path" matches the
>>>>>             requested data node, action node, or notification node.
>>>>>             A path is considered to match if the requested node
>>>>>             is the node specified by the path, or is a
>>>>>             descendant node of the path.
>>>>> 
>>>>> Note:  s/current node/requested node/ which is the term used in the
>>>>> first sentence.  And then s/data node/node/ since the first sentence
>>>>> refer to data-, action-, and notification node.
>>>>> 
>>>>> I have checked in this fix in the repo.
>>>>> 
>>>>> 
>>>>> /martin
>>>>> 
>>>>> _______________________________________________
>>>>> Netconf mailing list
>>>>> Netconf@ietf.org <mailto:Netconf@ietf.org>
>>>>> https://www.ietf.org/mailman/listinfo/netconf <https://www.ietf.org/mailman/listinfo/netconf>
>>>> Mahesh Jethanandani
>>>> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Netconf mailing list
>>>> Netconf@ietf.org <mailto:Netconf@ietf.org>
>>>> https://www.ietf.org/mailman/listinfo/netconf <https://www.ietf.org/mailman/listinfo/netconf>
>>> 
>> 
>> Mahesh Jethanandani
>> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>
> 

Mahesh Jethanandani
mjethanandani@gmail.com