Re: [nfsv4] Roman Danyliw's Discuss on draft-ietf-nfsv4-rpc-tls-08: (with DISCUSS and COMMENT)

David Noveck <davenoveck@gmail.com> Mon, 24 August 2020 20:40 UTC

Return-Path: <davenoveck@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 6A0773A0C50; Mon, 24 Aug 2020 13:40:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.197
X-Spam-Level:
X-Spam-Status: No, score=-0.197 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, 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 gYpUYqLPWaN5; Mon, 24 Aug 2020 13:40:18 -0700 (PDT)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 EFC4F3A0C4E; Mon, 24 Aug 2020 13:40:17 -0700 (PDT)
Received: by mail-ej1-x62f.google.com with SMTP id u21so12955885ejz.0; Mon, 24 Aug 2020 13:40:17 -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=EqvUbv1hNPeAr0H3xHckAU1m4I90g66lPyvw6FrMmM4=; b=Wme4p4od9KE1b/HnEG8s/IxLVtIlekwHtOmuDhu+ahFBtjEQr+J6upzNcqizsMB67a GU8zLDi4VFVpPjgzrmhMvC4oi8MwxW7r3ymAoM2HW48D8Ixsi5wY8zNyDEuZ3kF/jHxl IxSpS+1WmpsVP6iJB68WklyWN6wvS3aPl5g5ZaiUAe6ymu03ExK64jR0Ds1wOb4E7kDu zBHHuletA1XveeVQRXmIhDS8usdLoboyRKCVCBiHnBw0jCQAINSs0daUSSESmnOLroc2 uz63EaClA/vv7liRhcj2t+Q9Cz22fgtMR3MfVRUZcqIjHuGWsx1Rs/JV99l1IeGKksyE t7cw==
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=EqvUbv1hNPeAr0H3xHckAU1m4I90g66lPyvw6FrMmM4=; b=mKkcEOdPyoRNAa+xGVUJGrqFH6i3JhesChd0I79vE/VUPXUOY2I824BWpqvtCGq2+n deQECKjF3pFnhTtfcmHS5l2SAqeKePfk3blO/ZdmtpVTNJNrvz00WgFHmV+51fAqgP/C 9j8g8yhY5LyItvXGU7gOI4ybIjIDPDhL8EgMUoVT3WYnkH9JilFqdCbKWJw80hORTnop WazO2411mCTuNzQ3TcL6+1GeUn/1y/BGlVRHDpBDLe1jD9NPPlMdcdse4et0X4SW1zmi jZqykB4NDKKzjuquOQywCDfbrZUNwK47D54KZPIbqLtWcBN37xZdxVj6C07eQuxaC5+O eI9g==
X-Gm-Message-State: AOAM531BMIwMJKElWohAeVckbC5Xv1UrkJpbzaAtwvnvkFSPokngmPvN 3Y+VEZIdQmBhGIWs3icSNAJrzZXuCJXFEOCx81UpgjW9vQo=
X-Google-Smtp-Source: ABdhPJzuipJinWynwLx6+/eTPHGKZKNQ6UrCi3ZT2yhzRUsV9OgAPZuNyOPZLtMHhOkYtT4v8vz+FdMIgK3lKacax2o=
X-Received: by 2002:a17:906:1707:: with SMTP id c7mr7370841eje.498.1598301616416; Mon, 24 Aug 2020 13:40:16 -0700 (PDT)
MIME-Version: 1.0
References: <159409225571.12966.1097397622994927028@ietfa.amsl.com> <9BEC1316-A219-408F-AB27-74B28D702148@oracle.com> <0B907D1D-5818-46F7-9ADE-091D945A2A32@oracle.com>
In-Reply-To: <0B907D1D-5818-46F7-9ADE-091D945A2A32@oracle.com>
From: David Noveck <davenoveck@gmail.com>
Date: Mon, 24 Aug 2020 16:40:04 -0400
Message-ID: <CADaq8jejNL3NRVRi7DSD6TOK_0e6UOWZt=gt+kzCZL8JUO8kzA@mail.gmail.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: NFSv4 <nfsv4@ietf.org>, draft-ietf-nfsv4-rpc-tls@ietf.org, nfsv4-chairs <nfsv4-chairs@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000172d6105ada598ed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/BgbHEFKtv76dEMuA9WXFKPLdrI4>
Subject: Re: [nfsv4] Roman Danyliw's Discuss on draft-ietf-nfsv4-rpc-tls-08: (with DISCUSS and COMMENT)
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: Mon, 24 Aug 2020 20:40:20 -0000

On Mon, Aug 24, 2020 at 12:49 PM Chuck Lever <chuck.lever@oracle.com> wrote:

> Hi nfsv4-
>
> The latest updates to address Roman Danyliw's ballot comments have
> been pushed to:
>
> https://chucklever.github.io/i-d-rpc-tls/draft-ietf-nfsv4-rpc-tls.html
>
> Before I can reach closure on these comments, I'm still in need of
> guidance for resolving the following issues with Section 5.2.2 of
> rpc-tls.
>
> (Ben's DISCUSS still remains. I plan to address those when closure
> on Roman's comments has been reached).
>
>
> > On Jul 8, 2020, at 11:43 AM, Chuck Lever <chuck.lever@oracle.com> wrote:
> >
> > Hi Roman-
> >
> > Here are my responses to your COMMENTs in Section 5.
> >
> >
> >> On Jul 6, 2020, at 11:24 PM, Roman Danyliw via Datatracker <
> noreply@ietf.org> wrote:
> >>
> >> ----------------------------------------------------------------------
> >> COMMENT:
> >> ----------------------------------------------------------------------
> >
> >> ** Section 5.2.2 and 5.2.4.  Both 5.2.1 and 5.2.3 described what
> information
> >> should be exposed by implementations.  These sections omit that
> information.
> >> For example, I would have expected Section 5.2.4 to discuss Token
> Binding IDs
> >
> > PSK and Token Binding were added on request, and no further details were
> provided
> > by the requesters.
>
> Token Binding (Section 5.2.4) has been removed. However, Roman's
> comment still stands for Certificate Fingerprints (Section 5.2.2).
>
> Can anyone help?
>

I'll try to help.


>
>
> >> ** Section 5.2.2.  Is there any MTI guidance on the kinds of digests to
> support
> >> for these fingerprints?
> >
> > I've had some difficulty with this.


That's putting it mildly.   The whole thing is kind of Sisyphean :-(


> Originally the document required SHA-1, as
> > it is the de facto standard algorithm for certificate fingerprinting.


That doesn't count for much.   After all, the de facto  standard for NFS
authentication is AUTH_SYS.


> However,
> > subsequent security review pointed out that SHA-1 is deprecated.
>

 I can see that it would be hard to get this  accepted without the ability
to the ability to argue cogently that SHA-1 weaknesses are not relevant in
this case.

>
> > I changed the requirement to SHA-256, but this is problematic: most
> fingerprint
> > implementations I'm aware of use SHA-1.


It appears it is too insecure to get through the IESG but not so insecure
that people have stopped using it.


> I have found no published document that
> > suggests that SHA-1 is a problem for certificate fingerprinting, and no
> standard
> > that specifically discusses certificate fingerprinting algorithms.
> >
> > During Gen-ART review, the reviewer complained about the comparative:
> >
> >  Implementations MUST support SHA-256
> >  [FIPS.180-4] or stronger as the hash algorithm for the fingerprint.
>

I can see the "or stronger" being an issue.  It is often the case that it
is not completely clear whether A is stronger than B.

>
> > Suggesting that the document would need to provide a fixed list of
> particular
> > algorithms here, rather than an open-ended requirement.


The only issue  I see if you can get a list including SHA-1 accepted.   It
is easier than SHA-1 alone but not a sure bet.   you might be able to sell
it as a stop-gap, if there are ways to upgrade it later, especially if this
is part of pushing AUTH-SYS towards the scrapheap of history.

SHA-1 + SHA-256 is one possible list.  The other is to include everything
within the secure hash standard.

I'm think of rpc-tls allowing other layers in the stack to impose
further restrictions on the algorithm to be used, e.g.

   - Allowing ULPs to require specific hash algorithms.    This would allow
   us to get rpc-tls out now and upgrade it when draft-ietf-nfsv4-security is
   out.
   - Allowing RPC to require specific hash algorithms when used for
   particular purposes such as verifying the identity of a client host using
   AUTH_SYS.     This would allow us to get rpc-tls out now and upgrade it
   when an update to RFC5531 dealing with AUTH_SYS is out.

I punted and removed
> the sentence.
>

I think going for a field goal would have been better.  Then again, I'm not
trying to do that while a seven-footer is running toward me is waving his
huge arms and screaming "DEPRECATED"  :-(

> >
> > I'm not sure how to proceed.
>
> Any advice is welcome. I'd like to keep the discussion of the use of
> Certificate Fingerprints, if possible.
>
>
> --
> Chuck Lever
>
>
>
>