Re: [nfsv4] IDNA choices for servers for replicas/migration/referral

Nicolas Williams <Nicolas.Williams@oracle.com> Mon, 14 June 2010 19:39 UTC

Return-Path: <Nicolas.Williams@oracle.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E6A783A699A for <nfsv4@core3.amsl.com>; Mon, 14 Jun 2010 12:39:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.692
X-Spam-Level:
X-Spam-Status: No, score=-5.692 tagged_above=-999 required=5 tests=[AWL=-0.088, BAYES_00=-2.599, FS_REPLICA=0.994, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iSrRYBgC7SH2 for <nfsv4@core3.amsl.com>; Mon, 14 Jun 2010 12:39:16 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id EEB243A6934 for <nfsv4@ietf.org>; Mon, 14 Jun 2010 12:39:15 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5EJdE3O001036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Jun 2010 19:39:15 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5EJdART024055; Mon, 14 Jun 2010 19:39:11 GMT
Received: from abhmt002.oracle.com by acsmt353.oracle.com with ESMTP id 324183561276544280; Mon, 14 Jun 2010 12:38:00 -0700
Received: from oracle.com (/129.153.128.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 14 Jun 2010 12:37:59 -0700
Date: Mon, 14 Jun 2010 14:37:54 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Noveck_David@emc.com
Message-ID: <20100614193754.GU9605@oracle.com>
References: <BF3BB6D12298F54B89C8DCC1E4073D8001487E5E@CORPUSMX50A.corp.emc.com> <20100614170645.GO9605@oracle.com> <BF3BB6D12298F54B89C8DCC1E4073D80014880A5@CORPUSMX50A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <BF3BB6D12298F54B89C8DCC1E4073D80014880A5@CORPUSMX50A.corp.emc.com>
User-Agent: Mutt/1.5.20 (2010-03-02)
X-Auth-Type: Internal IP
X-Source-IP: rcsinet15.oracle.com [148.87.113.117]
X-CT-RefId: str=0001.0A090207.4C168564.00EC:SCFMA4539811,ss=1,fgs=0
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] IDNA choices for servers for replicas/migration/referral
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 14 Jun 2010 19:39:19 -0000

On Mon, Jun 14, 2010 at 03:31:04PM -0400, Noveck_David@emc.com wrote:
> > Are we aiming for server implementation simplicity?  
> 
> Are you?  The degree of importance you assign it will govern your
> ordering of the list. 

As I stated elsewhere in that message: no, I'm not.  By "we" I meant:
the WG (we might need to seek consensus on that matter).

> > If so, A-labels all
> > the way is the simplest solution (servers wouldn't have to implement
> > IDNA, but they would have to check labels sent by clients to see that
> > they are valid-looking A-labels). 
> 
> I have to make sure that the underlying string is normalized.  I have to
> normalize the corresponding UTF-8 string and see if that winds up with
> the same value.  There may be a slightly optimized (n-i/n-p)-like that
> checks this in line which is faster but it isn't going to be much
> simpler.  There may other prep-like stuff to check.  Also, before I do
> that I have to un-Punycode (steroidi-code? :) it.

I thought I saw an option for very low-level validation of A-labels.
I'll look again and post a reference.  If not, then you're right and
there's no simplifying the server.  At which point I'd say: allow
un-pre-processed Unicode on the wire for domainname slots, which,
incidentally, David Thaler, an author of draft-iab-idn-encoding, just
blessed on the idna-update list:

Thaler> In my view, yes you're on the right track in having NFSv4 not
Thaler> want to do encoding conversion itself for name resolution but in
Thaler> expecting it to be done under getaddrinfo/getnameinfo.

Nico
--