Re: [nfsv4] Eric Rescorla's Discuss on draft-ietf-nfsv4-flex-files-15: (with DISCUSS and COMMENT)

Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com> Wed, 11 April 2018 18:08 UTC

Return-Path: <spencerdawkins.ietf@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B922128959; Wed, 11 Apr 2018 11:08:12 -0700 (PDT)
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 kYoqiYNdXurZ; Wed, 11 Apr 2018 11:08:10 -0700 (PDT)
Received: from mail-yb0-x231.google.com (mail-yb0-x231.google.com [IPv6:2607:f8b0:4002:c09::231]) (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 2008B126D3F; Wed, 11 Apr 2018 11:08:10 -0700 (PDT)
Received: by mail-yb0-x231.google.com with SMTP id g197-v6so935952ybf.6; Wed, 11 Apr 2018 11:08:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BBY1pGnXYwwbaHySMLoRkYEnUeeQdTsIWd6cn7anaXo=; b=JJVIIi9x8FkbS4/r0PW2GRTtWAYEnEiZQBrCwWAlcsnIXUok2x7slnrnyzN9pRYwCD y6IaydswJMGxkCmAp9QEFPL6NAFR53gYYyelzqNSO+F2vlHFyTLxhK3BNPTllEVBqcYZ slUcTVHWaU/F7/tHYD+CcSpZQTQKi7yyGqbvjS4G3f9x9dPzTOEVKU3GVhHMKjWfw//o 8LG63XB5FLMqDY+mhdAGmfpoUtMI0gVHuqqCkNu0HABqwTwVgAkaf8vL3E1H0OXzH8FF /qnKPoETJMlEOvNHV6rqP9jkDneyY9AFPVW6jc8PbyspmeRNm+2dpTWJT0oHuCEGyx1N lu6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BBY1pGnXYwwbaHySMLoRkYEnUeeQdTsIWd6cn7anaXo=; b=XcX4lbmOg5E2L6exLbKKjrKXpCMvTp5Oi/BjdgXNaoxoVgHuzNqUjVb95ytnZtGii8 YR54Wjw++rh2gbks1DijnF3wya1CFfljX7Zeyo/zhSsnQEw0/owLM2hieRDhwP5vggwE lr1upt6V2nn6V+A8OA2uwPYVTOpTHpd0fQfo2UYCastR6v8OcMsw1N5wruPfYAt++Elo 2OZhomtfbspbimklK+pXZZgIhsICI+yM5fAKC/IbDu4Zjz9DTEw0B2J5TKbg1bpI1dws +qZbI0/5jT8uFa6puE8iKt3d1a1CP7z+hNY/c1b82dxFyQXPqJSg1rBE36/5XkOysP6k V8tQ==
X-Gm-Message-State: ALQs6tAFbWPMNMCGsIqP1YrqbvDliZopqQ+eK/DBMNifg13ohfkcx2s5 9bAZmUnBaKwezEs3/mIar6PYHtCivrCu0GKORCs=
X-Google-Smtp-Source: AIpwx4+nQEjeJnYbK/o3c1wGH3CNHKPxZAHsNeArOteMSMgU71H00jIrccqzAWzpkQJJscw2i79ZKxBP0yanBVXQDIM=
X-Received: by 2002:a25:a049:: with SMTP id x67-v6mr2802408ybh.286.1523470089102; Wed, 11 Apr 2018 11:08:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a25:7cc1:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 11:08:08 -0700 (PDT)
In-Reply-To: <3670A5DF-4E11-4848-AE28-354F45F50D2B@gmail.com>
References: <151683050192.22597.10931170494891133045.idtracker@ietfa.amsl.com> <9FD918F5-D08C-45FC-B6BB-30CBB3D4EC51@gmail.com> <CABcZeBPE5gV3KPpRpRxAtYRSSCZh8+3-fcf-1VsxF3AxmomnwQ@mail.gmail.com> <F2ADAD73-6AB3-45EF-B6FE-033E01F58D8E@gmail.com> <CAKKJt-e=81qyR3YXNb9imu8kzk6+nCYgMjeZqHNwt3xi4CfNxQ@mail.gmail.com> <CABcZeBPM_Rnb0QZvbvBpUCNd6yurtz0ipexUQscmnG_samb2RA@mail.gmail.com> <FD8AF7AF-632A-461C-A82A-BC0711B2F8D0@gmail.com> <CABcZeBMhEHhV1ie=TNqrj_arupO=kd27houBpZgdqZw1pPMfww@mail.gmail.com> <5C013DFE-96E3-4B74-B597-5F3FE1D314C6@gmail.com> <CAKKJt-deRBop1n8sv6dNaqUL_RUWxWMELutWubRdTOovKXEHwg@mail.gmail.com> <3670A5DF-4E11-4848-AE28-354F45F50D2B@gmail.com>
From: Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com>
Date: Wed, 11 Apr 2018 13:08:08 -0500
Message-ID: <CAKKJt-dmcqLULhe_92wwOqVTcxKweB4YqiPKxoePRZAiQfv-Mg@mail.gmail.com>
To: Tom Haynes <loghyr@gmail.com>
Cc: draft-ietf-nfsv4-flex-files@ietf.org, Eric Rescorla <ekr@rtfm.com>, The IESG <iesg@ietf.org>, NFSv4 <nfsv4@ietf.org>, nfsv4-chairs@ietf.org
Content-Type: multipart/alternative; boundary="0000000000007cabca056996859d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/okcaJNjKHm2xSPGQCaHJ459GhOk>
Subject: Re: [nfsv4] Eric Rescorla's Discuss on draft-ietf-nfsv4-flex-files-15: (with DISCUSS and COMMENT)
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Apr 2018 18:08:12 -0000

Hi, Tom,

On Wed, Apr 11, 2018 at 12:38 PM, Tom Haynes <loghyr@gmail.com> wrote:

> So actually, after thinking about, the discussion about securing the
> namespace on
> the storage device is wrong.
>
> The current text is:
>
>
>    The combination of file handle, synthetic uid, and gid in the layout
>    are the way that the metadata server enforces access control to the
>    data server.  The directory namespace on the storage device SHOULD
>    only be accessible to the metadata server and not the clients.  In
>    that case, the client only has access to file handles of file objects
>    and not directory objects.  Thus, given a file handle in a layout, it
>    is not possible to guess the parent directory file handle.  Further,
>    as the data file permissions only allow the given synthetic uid read/
>    write permission and the given synthetic gid read permission, knowing
>    the synthetic ids of one file does not necessarily allow access to
>    any other data file on the storage device.
>
>    The metadata server can also deny access at any time by fencing the
>    data file, which means changing the synthetic ids.  In turn, that
>    forces the client to return its current layout and get a new layout
>    if it wants to continue IO to the data file.
>
>    If the configuration of the storage device is such that clients can
>    access the directory namespace, then the access control degrades to
>    that of a typical NFS server with exports with a security flavor of
>    AUTH_SYS.  Any client which is allowed access can forge credentials
>    to access any data file.  The caveat is that the rogue client might
>    have no knowledge of the data file's type or position in the metadata
>    directory namespace.
>
> My replacement would be:
>
>    The combination of file handle, synthetic uid, and gid in the layout
>    are the way that the metadata server enforces access control to the
>    data server.  The client only has access to file handles of file
>    objects and not directory objects.  Thus, given a file handle in a
>    layout, it is not possible to guess the parent directory file handle.
>    Further, as the data file permissions only allow the given synthetic
>    uid read/write permission and the given synthetic gid read
>    permission, knowing the synthetic ids of one file does not
>    necessarily allow access to any other data file on the storage
>    device.
>
>    The metadata server can also deny access at any time by fencing the
>    data file, which means changing the synthetic ids.  In turn, that
>    forces the client to return its current layout and get a new layout
>    if it wants to continue IO to the data file.
>

Thanks for proposing new text here.

Spencer (S) as shepherd and WG co-chair, does this look like something that
would come as a surprise to the working group?

Spencer (D) as AD