Re: [nfsv4] questions w.r.t RPC-over-TLS draft

"Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de> Mon, 20 January 2020 12:18 UTC

Return-Path: <tigran.mkrtchyan@desy.de>
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 BCF3812011A for <nfsv4@ietfa.amsl.com>; Mon, 20 Jan 2020 04:18:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.999
X-Spam-Level:
X-Spam-Status: No, score=-5.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=desy.de
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 970eVGbPp8qO for <nfsv4@ietfa.amsl.com>; Mon, 20 Jan 2020 04:18:38 -0800 (PST)
Received: from smtp-o-1.desy.de (smtp-o-1.desy.de [131.169.56.154]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B28BF120114 for <nfsv4@ietf.org>; Mon, 20 Jan 2020 04:18:37 -0800 (PST)
Received: from smtp-buf-1.desy.de (smtp-buf-1.desy.de [131.169.56.164]) by smtp-o-1.desy.de (Postfix) with ESMTP id C9378E00F8 for <nfsv4@ietf.org>; Mon, 20 Jan 2020 13:18:35 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-o-1.desy.de C9378E00F8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=desy.de; s=default; t=1579522715; bh=glXhGKZdYBHDIP/P+tqj04B3qlzKYaqQmcN1UwYnp64=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=wIXvZisVtVKeDSNHt3oS4LmbDU833GpLp+dUXGk4vmoClGKxbHRHyX9bDnQLjXqcY HvLKX4SLW5cKxCB1EcGuSppx+fBwonokd/dQTUL1WLsXmZtnqAVW3Os9APxIEg6E6Y luy/1HOSKJwbuAiqo9UStALpvIC0ougdS8oTKkDA=
Received: from smtp-m-1.desy.de (smtp-m-1.desy.de [IPv6:2001:638:700:1038::1:81]) by smtp-buf-1.desy.de (Postfix) with ESMTP id C403B1201D6; Mon, 20 Jan 2020 13:18:35 +0100 (CET)
X-Virus-Scanned: amavisd-new at desy.de
Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by smtp-intra-1.desy.de (Postfix) with ESMTP id 9A817C0037; Mon, 20 Jan 2020 13:18:35 +0100 (CET)
Date: Mon, 20 Jan 2020 13:18:35 +0100
From: "Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de>
To: Rick Macklem <rmacklem@uoguelph.ca>
Cc: NFSv4 <nfsv4@ietf.org>
Message-ID: <620721975.1100055.1579522715218.JavaMail.zimbra@desy.de>
In-Reply-To: <YQBPR0101MB14276B35663CFEE540988EB1DD320@YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM>
References: <YQBPR0101MB142761C64D6A842CB99EADC0DD320@YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM> <YQBPR0101MB14276B35663CFEE540988EB1DD320@YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Zimbra 8.8.15_GA_3888 (ZimbraWebClient - FF72 (Linux)/8.8.15_GA_3890)
Thread-Topic: questions w.r.t RPC-over-TLS draft
Thread-Index: AQHVzye+eTXe64dubES650eWV4dxj6fy0ZSPydB8VLw=
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/_wd1Y5cL3ZyBODbouyioVd48BCI>
Subject: Re: [nfsv4] questions w.r.t RPC-over-TLS draft
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, 20 Jan 2020 12:18:44 -0000

Hi Rick


----- Original Message -----
> From: "Rick Macklem" <rmacklem@uoguelph.ca>
> To: "NFSv4" <nfsv4@ietf.org>
> Sent: Monday, January 20, 2020 3:26:09 AM
> Subject: Re: [nfsv4] questions w.r.t RPC-over-TLS draft

> I wrote:
>>Hi,
>>
>>I've started implementing RPC-over-TLS for NFS and have run into a couple
>>of questions related to the draft (#4, I haven't downloaded #5).
>>
>>1 - Given this description...
>>   The flavor value of the verifier received in the reply message from
>>   the server MUST be AUTH_NONE.  The bytes of the verifier's string
>>   encode the fixed ASCII characters "STARTTLS".
>>
>>Is the verifier coded as:
>>A:   verifier length: 8
>>      bytes STARTTLS
>>OR
>>B:   verifier length: 12
>>      string length: 8
>>      bytes STARTTLS
>>
>>ie. Is there supposed to be a string length as coded by xdr_string() in the
>>verifier? (It is the words "verifier string" the above that I find confusing.)
>>
>>Then there is this sentence...
>>   AUTH_ERROR.  If the client sends a STARTTLS after it has sent other
>>   non-encrypted RPC traffic or after a TLS session has already been
>>   negotiated, the server MUST silently discard it.
>>
>>Does "other non-encrypted RPC traffic" refer specifically to traffic between
>>the NULL RPC with AUTH_TLS and the STARTTLS or does it refer to non-NULL RPC
>>>traffic or??
> I am also confused about what "sends a STARTTLS" actually means?
> (I'll admit I know nothing about TLS and can only find STARTTLS mentioned w.r.t.
> an SMTP email command.)


STARTTLS is a protocol specific signal that a client send to the server to start
TLS handshake. If I read spec correctly, then for RPC it's an operation NULL
with auth flavor AUTH_TLS and empty verifier. Server responds with verifier
that has body "STARTTLS" encoded as opaque bytes.

This is at least what our implementation does.

Regards,
   Tigran. 

> 
> Does this mean that the 8 bytes STARTTLS goes on the wire immediately after
> a NULL RPC with AUTH_TLS or does it mean the 8 bytes STARTTLS goes in a
> TCP RPC message (an 8byte message as indicated by the RPC over TCP record
> mark, which would normally be too small) or does "sends a STARTTLS" just saying
> that the TLS handshake should come immediately after the NULL RPC with AUTH_TLS?
> 
> Thanks for any clarification of this, rick
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4