Re: [netmod] Eric Rescorla's Discuss on draft-ietf-netmod-schema-mount-11: (with DISCUSS)

Eric Rescorla <ekr@rtfm.com> Thu, 11 October 2018 12:37 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1DAE2130E64 for <netmod@ietfa.amsl.com>; Thu, 11 Oct 2018 05:37:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-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 qH4xKa69fHoY for <netmod@ietfa.amsl.com>; Thu, 11 Oct 2018 05:37:48 -0700 (PDT)
Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 143AA130E62 for <netmod@ietf.org>; Thu, 11 Oct 2018 05:37:45 -0700 (PDT)
Received: by mail-lf1-x134.google.com with SMTP id t22-v6so6557368lfb.7 for <netmod@ietf.org>; Thu, 11 Oct 2018 05:37:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IOc9ECJCNRc/XwS0f1JVN702AN1z1ccPJQVmokBDyqw=; b=zy+IMXXuAJJ+E7eHBSvk+sg19BW0wM0/9HbaJhBbzurJJHPkyQg2ZAD+g1ZVpdKPYV AEvVQHcuSwKAySkMj3ad0AmD/FuduslGRe787BL4f4AECir72DGmjTKBxs5qN1P2yycZ h7muAOJGBFWNMKX34Of3m4zqig2qJyC1see2ul9z13EXr68SHhSoa4XFVL+oktabOGNa etXm74/0aZ08gO4+gFnLyiV4TR3V3usD4GjzBb1TmBhPqxR0eOFKFi20Jh/ldH5WxGCw ezZI/khWclvOHckDfBokXycVvQldtFG1JlFYsnmlVdiTd+Os9oigdP3EJdc5JrLCvC3w zeVw==
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=IOc9ECJCNRc/XwS0f1JVN702AN1z1ccPJQVmokBDyqw=; b=cMGLxCaHYBDrwy21tHm9D0UQ25TmesL8v530ijhQ8NzONtFX5+eAmhjIye0v42lpCG NS0ieL0Tm9j9d2CJQMfuh441q4bqqWxbNbDdM0UBgl6SsM5eenlMjnIAGLQtPD2GUiEb 8RbPiJp1Q5M0fLdxMyGZ/O7dJBreNUhjdrpSI3P0FPYx6fhA56FkyiM6bpy4lpURTgSU xaUxl9QQ4U9KDov2NKDOJDSRDnfcSZ4RTIhNR6Fs/DNopZ+19SPfOlOLBBAFrRun6rv7 hvcY86XwKs3U3P3+ophO8/e0q5ZhQB6jKUtSo00Y8PG5EqgEbTJWzVP1GKcxbdKLizdd NUOA==
X-Gm-Message-State: ABuFfohWDczvMhtaEDqf4Ag9IBYMFTwRTvfEHZa/q+H1K54ZWFWux9FT MFqNdCGHjlkUbHMFlWeKv/0KH9GSCXfMPeREW8r98w==
X-Google-Smtp-Source: ACcGV6154nbDpjcoau0ipB0bS6735krYHHpcseWhrwzdDZjWGikNh0i8ym7b58zrf3Q0B8qqW1vUd9QS7fTJTDExo68=
X-Received: by 2002:a19:7391:: with SMTP id h17-v6mr1083146lfk.140.1539261462966; Thu, 11 Oct 2018 05:37:42 -0700 (PDT)
MIME-Version: 1.0
References: <CABcZeBMofmqzptj_w-CH+0TSMXj1jT0dE4KP4r2eJqijSsYQxg@mail.gmail.com> <20181010.153831.1958991667250114039.mbj@tail-f.com> <CABcZeBMJmM_NaRY3GzcV4HO+BB14ooqxJ9oGrrer6nx3ZAqMxw@mail.gmail.com> <20181011.091817.1727547509052700274.mbj@tail-f.com>
In-Reply-To: <20181011.091817.1727547509052700274.mbj@tail-f.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Thu, 11 Oct 2018 05:37:09 -0700
Message-ID: <CABcZeBNZ+AMXXNu7C5nvxie6NmJdJ_6FbHJXtdkxnMAN3rNGHQ@mail.gmail.com>
To: =?UTF-8?Q?martin_bj=C3=B6rklund?= <mbj@tail-f.com>
Cc: IESG <iesg@ietf.org>, NetMod WG Chairs <netmod-chairs@ietf.org>, NetMod WG <netmod@ietf.org>, joel jaeggli <joelja@gmail.com>, draft-ietf-netmod-schema-mount@ietf.org, Kent Watsen <kwatsen@juniper.net>, Lou Berger <lberger@labn.net>
Content-Type: multipart/alternative; boundary="000000000000b78bba0577f33c52"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/IbzK1m63zGNzYwldJnO5UfvtVHU>
Subject: Re: [netmod] Eric Rescorla's Discuss on draft-ietf-netmod-schema-mount-11: (with DISCUSS)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2018 12:37:52 -0000

That seems like it's going to have some pretty surprising consequences and
at minimum needs more information in the Security Considerations.

On Thu, Oct 11, 2018 at 12:18 AM Martin Bjorklund <mbj@tail-f.com> wrote:

> Eric Rescorla <ekr@rtfm.com> wrote:
> > I'm sorry but I don't understand this.
> >
> > Does the externally visible behavior of any mounted module depend in any
> > way on these XPATH references
>
> Yes, but note that these XPath expressions ("parent-reference") are
> read-only (config false in the YANG model).  Thus they are set by the
> implementation, and used to inform the operator about the environment
> in which other XPath expressions are evaluated.
>
>
> /martin
>
>
> >
> > -Ekr
> >
> >
> >
> >
> > On Wed, Oct 10, 2018 at 6:38 AM Martin Bjorklund <mbj@tail-f.com> wrote:
> >
> > > Eric Rescorla <ekr@rtfm.com> wrote:
> > > > On Wed, Oct 10, 2018 at 5:32 AM Martin Bjorklund <mbj@tail-f.com>
> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Eric Rescorla <ekr@rtfm.com> wrote:
> > > > > > Eric Rescorla has entered the following ballot position for
> > > > > > draft-ietf-netmod-schema-mount-11: Discuss
> > > > > >
> > > > > > When responding, please keep the subject line intact and reply
> to all
> > > > > > email addresses included in the To and CC lines. (Feel free to
> cut
> > > this
> > > > > > introductory paragraph, however.)
> > > > > >
> > > > > >
> > > > > > Please refer to
> > > > > https://www.ietf.org/iesg/statement/discuss-criteria.html
> > > > > > for more information about IESG DISCUSS and COMMENT positions.
> > > > > >
> > > > > >
> > > > > > The document, along with other ballot positions, can be found
> here:
> > > > > > https://datatracker.ietf.org/doc/draft-ietf-netmod-schema-mount/
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > ----------------------------------------------------------------------
> > > > > > DISCUSS:
> > > > > >
> > > ----------------------------------------------------------------------
> > > > > >
> > > > > > Rich version of this review at:
> > > > > > https://mozphab-ietf.devsvcdev.mozaws.net/D3506
> > > > > >
> > > > > >
> > > > > >
> > > > > > DETAIL
> > > > > > S 4.
> > > > > > >
> > > > > > >      It is worth emphasizing that the nodes specified in
> > > > > > >      "parent-reference" leaf-list are available in the mounted
> > > schema
> > > > > only
> > > > > > >      for XPath evaluations.  In particular, they cannot be
> accessed
> > > > > there
> > > > > > >      via network management protocols such as NETCONF
> [RFC6241] or
> > > > > > >      RESTCONF [RFC8040].
> > > > > >
> > > > > > What are the security implications of this XPath reference
> outside
> > > the
> > > > > > mount jail? Specifically, how does it interact with the access
> > > control
> > > > > > for the enclosing module.
> > > > >
> > > > > There is no such interaction, since access control comes into play
> > > > > when some external entity accesses the data through some management
> > > > > protocol, and the nodes from the "parent-reference" expressions
> cannot
> > > > > be accessed via management protocols.
> > > > >
> > > > > The last sentence of the quoted paragraph was supposed to make this
> > > > > clear, but it seems we might need some additional explanation?
> > > > >
> > > >
> > > > Yes, I think so. I guess I'm not clear on what the XPath expressions
> are
> > > > for if they
> > > > can't be accessed via the management protocols. How can they be used?
> > >
> > > These are XPath expressions defined in the YANG models themselves,
> > > such as "must" expressions or "leafrefs".   The description of
> > > "parent-reference" refer to them as:
> > >
> > >                [...] XPath
> > >                expressions whose context nodes are defined in the
> > >                mounted schema
> > >
> > >
> > >
> > > /martin
> > >
>