Re: [nfsv4] Fwd: I-D Action: draft-ietf-nfsv4-rpc-tls-01.txt

Trond Myklebust <trondmy@gmail.com> Wed, 17 April 2019 21:34 UTC

Return-Path: <trondmy@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 A5643120160 for <nfsv4@ietfa.amsl.com>; Wed, 17 Apr 2019 14:34:43 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 GJGVsKa9awH5 for <nfsv4@ietfa.amsl.com>; Wed, 17 Apr 2019 14:34:41 -0700 (PDT)
Received: from mail-it1-x143.google.com (mail-it1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (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 99D4E12002F for <nfsv4@ietf.org>; Wed, 17 Apr 2019 14:34:41 -0700 (PDT)
Received: by mail-it1-x143.google.com with SMTP id 139so158700ita.4 for <nfsv4@ietf.org>; Wed, 17 Apr 2019 14:34:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SdVov4xOa8IELTTNFDc7vPszoHqd6uJqHo2A+JR+A8I=; b=B1uzO0vVKtYuzernKgfC/FfMPW0TSgdYZLx/hTqJn/KryOyFGtZqahV5ljCaCjCWRp 6ppCXlVJ6EN+zd9Ey2HGczOK1I52kDq19vXvfPG7cgusOze9gZQAU8d4urNgyuLz+TPl tnw9GXmlIhnSDHopHOaeSAoX5+zsFgCzrWMyGNHtgIH+CBp/8uTT7A0Qb+XIUa35bqKT P0zzxd8pyT5B96GJpLxw8HFpWFmlB34ttSpXon/BmnRz3wsM+1yUgoen52LfsAMLd89q ldJicEfXUfsxOsmccpdkiQjwcY7pyf988grjc4ZYIaFZznIgO/dsFOZiGA7GFGVjpeF7 5qHw==
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=SdVov4xOa8IELTTNFDc7vPszoHqd6uJqHo2A+JR+A8I=; b=mFFznJBAZ8sHsEfLAZg9deekOqMpdUwrR4oltWt4xPp+FDyVUKdX56tP2Y0o3AVVk9 qlR/g7txoNMYDxYtNloZ2wLKi8L8IuKPq+FWQtaFFTNjlPm0t8qMd3mepn2Rhn9VLV5D phN5Z7kv9ethJyA7fjSK6zXg4Cc/Ff+4LQV5PuzwkwrrUP8t7m6l24UnRsC3IVwrhnc4 6RcPUxlER7wpB/dNJUkc7fX7nDoaJlPPsDpPixvmK6PqW7pgqEPgKthCyNWX7ZQOgbZs 80zuB2AI6hrDXm4kN1PFd1ed0m45+eZ7AhanM46NhUJerGCcBoTOFXxtPckAiYQ1uV9J Y/qg==
X-Gm-Message-State: APjAAAXIdjtXQBPv2QZv+WTpvuVUiGG4bEj8rnKq+yq1K+rtHpYZGHK2 bCgzcUVBGsPx/93b0d2gTvAcqh4fPmytOapIAw==
X-Google-Smtp-Source: APXvYqy8iiecwuzf931KL56+iFvGTR5li7QWSecHK+eIARg9SQ1Rk/Hi9sXiPlqcl0ZGpJygo2ljIA07zVEX5qVAJhk=
X-Received: by 2002:a24:3602:: with SMTP id l2mr726000itl.68.1555536880452; Wed, 17 Apr 2019 14:34:40 -0700 (PDT)
MIME-Version: 1.0
References: <155535049832.10773.1565621811584007627@ietfa.amsl.com> <E72181B0-6F38-4A02-8C65-ECF30581CBD5@oracle.com> <CAABAsM4_812FbhLZHcT6YxuAczbumR6s+cZ+ZcV+-zR_o7FbyQ@mail.gmail.com> <1338340997.1150847.1555533424364.JavaMail.zimbra@desy.de>
In-Reply-To: <1338340997.1150847.1555533424364.JavaMail.zimbra@desy.de>
From: Trond Myklebust <trondmy@gmail.com>
Date: Wed, 17 Apr 2019 17:34:29 -0400
Message-ID: <CAABAsM5awwBBQNU728kefUaSnVgDEH6J8LOXa_1Oz8FWQdcpuQ@mail.gmail.com>
To: "Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de>
Cc: Chuck Lever <chuck.lever@oracle.com>, NFSv4 <nfsv4@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/dQK3GBRBjBQN2jibPL32uLLW738>
Subject: Re: [nfsv4] Fwd: I-D Action: draft-ietf-nfsv4-rpc-tls-01.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.29
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, 17 Apr 2019 21:34:43 -0000

On Wed, 17 Apr 2019 at 16:37, Mkrtchyan, Tigran
<tigran.mkrtchyan@desy.de> wrote:
>
>
>
> ----- Original Message -----
> > From: "Trond Myklebust" <trondmy@gmail.com>
> > To: "Chuck Lever" <chuck.lever@oracle.com>
> > Cc: "NFSv4" <nfsv4@ietf.org>
> > Sent: Tuesday, April 16, 2019 2:37:54 PM
> > Subject: Re: [nfsv4] Fwd: I-D Action: draft-ietf-nfsv4-rpc-tls-01.txt
>
> > A more general question that this raises is: Do we consider TLS as
> > part of the authentication mechanism, and if so, what is its role?
> > IOW: if the client does present a certificate when it sets up the TLS
> > channel, then should that suffice to prevent an attacker from setting
> > up a new TCP connection to the same server, and spoofing the identity
> > of that client without possessing the original client certificate?
> > If we do want that ability, then we should also look at consequences
> > for the NFSv4 state model and perhaps add a SP4_TLS mode to the state
> > protection negotiation in EXCHANGE_ID (as we already do for SSV).
>
> The same way as rfc1831 enforces unix security - up to service specific doc.
> Even RPCSEC_GSS doesn't require gss context per user. TLS session per user
> might be a challenging task.

Agreed, but I wasn't considering per user certificates. In the above
discussion I'm only talking about the client identifying itself, and
what consequences that may have.

In essence, the argument boils down to: I think we might be able to
use TLS as a substitute for SSV if the clients identify themselves via
a (per client) certificate.

Dave suggested that might require a new version of the EXCHANGE_ID op,
but I'm less sure. It seems to me that extending the type 'enum
state_protect_how4' by adding a value for SP4_TLS should allow us to
extend the existing EXCHANGE_ID type. Legacy servers would presumably
respond with a NFS4ERR_INVAL  or possibly NFS4ERR_BADXDR, since they
won't recognise that value for the state_protect4_a union, allowing
the client to negotiate down to a supported type.

> >
> > There is also the issue of trunking. Do we want to allow NFS clients
> > to use TLS authentication as a way to identify multi-homed servers?
>
> This is an interesting one. What about migration? Require 'Subject
> Alternative Name'?  Is this different from kerberos based trunking?
>

You presumably do not want to look exclusively at the alternative
names, since that would imply that the servers are presenting
different certificates, and identify as different services. I agree
though that you might be able to do the same with RPCSEC_GSS.

Cheers
  Trond