Re: [OAUTH-WG] Alexey Melnikov's Discuss on draft-ietf-oauth-discovery-09: (with DISCUSS and COMMENT)

Alexey Melnikov <aamelnikov@fastmail.fm> Sun, 04 March 2018 13:54 UTC

Return-Path: <aamelnikov@fastmail.fm>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6EFD712D88C; Sun, 4 Mar 2018 05:54:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.fm header.b=0lA2WvXw; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=a0NyiOc/
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 krk91SFN4770; Sun, 4 Mar 2018 05:54:23 -0800 (PST)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C2707127419; Sun, 4 Mar 2018 05:54:23 -0800 (PST)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CE26120ACE; Sun, 4 Mar 2018 08:54:22 -0500 (EST)
Received: from web2 ([10.202.2.212]) by compute7.internal (MEProxy); Sun, 04 Mar 2018 08:54:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=5pLnbzGXOTmd+WDS85zBM0hdKFkR7 KpjwARlLQ53Y6U=; b=0lA2WvXw16odEHQSmmI6Pv1+rtGNXppYcmXPmjcTmuxMb NojsGNzCG0S5EafX+sb68Jd+XFp+GzphoCq0ywo2CP3KZLKfdPCvIoMVCZO9NFfE NUshcvR5WpRWuk2Gn2PrJ0ZyBaEJiUm37MyR6bBb+c/LcclW796edp4/mTe5OUFT raG/xngY+M45RJrc1t87KvNjjFlBf7oc1YnIA/bn8mQxgUoRaqfzq4ePDNkkYo4U Ea94BcwRs+6RdGfOVbCRSRyOUVim26q0Zh0ow8k1JmD+7OXNYNm/kPFK5vLeXYGH BXsX2zF1ntW/G//QmDFhHzNx1kQmrDHhIlSioU42A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5pLnbz GXOTmd+WDS85zBM0hdKFkR7KpjwARlLQ53Y6U=; b=a0NyiOc/ytkIfIPGaNBra3 Rz5MB6dB9cs16kTmkbtJlt7uTVtvdg7ERflXASo5Pbhojif8DwI3GuT0qrFogpQM cEZ/LSpRF2I3/Qeq+ORCGNeFvJNfDpWelI54TexhC5ayfUgBHuDlyDwU86G7nbXN u7ECdF+GJIAXiAWfFB/ABIrnngbMOTkdlQjkst3NzHnSsQxqPzkx0Yu7rZGrq+5p XH/V/AzXftyud8FSYODpfkSe/doXT3hVyQpRJkhzjQ9FOT5ZznYwa74W/maHwFBu lVZMeTs7fyGR8hDcGdEi+3SoOhDj+/oqC6tVf3H+s+jXR5OoQKQ2HZkaK5Vu4DGw ==
X-ME-Sender: <xms:jvqbWmgbm_z6vqdHDf1RttfRrlMTw1yvnmeFbTOwMoLrh0qKTyManQ>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id 9FAF1621BF; Sun, 4 Mar 2018 08:54:22 -0500 (EST)
Message-Id: <1520171662.1990144.1290896928.2DD0F37B@webmail.messagingengine.com>
From: Alexey Melnikov <aamelnikov@fastmail.fm>
To: Mike Jones <Michael.Jones@microsoft.com>, The IESG <iesg@ietf.org>
Cc: draft-ietf-oauth-discovery@ietf.org, oauth-chairs@ietf.org, oauth@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-b08ff009
In-Reply-To: <SN6PR2101MB09439981ED94AE59AC51B355F5C70@SN6PR2101MB0943.namprd21.prod.outlook.com>
References: <151982902113.5155.16065862366702262286.idtracker@ietfa.amsl.com> <SN6PR2101MB09439981ED94AE59AC51B355F5C70@SN6PR2101MB0943.namprd21.prod.outlook.com>
Date: Sun, 04 Mar 2018 13:54:22 +0000
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/MiQz1h0FXYG7RR5jJ0OIgyVEinc>
Subject: Re: [OAUTH-WG] Alexey Melnikov's Discuss on draft-ietf-oauth-discovery-09: (with DISCUSS and COMMENT)
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Mar 2018 13:54:27 -0000

Hi Mike,
Sorry for the slow response, I forgot (for a moment) about the Monday draft submission deadline.

On Wed, Feb 28, 2018, at 7:44 PM, Mike Jones wrote:
> Hi Alexey,
> 
> FYI, the only place in the spec that case-insensitive comparisons exist 
> are comparisons done by the Designated Experts when considering IANA 
> registrations.  If implementations had to do case-insensitive 
> comparisons, then yes, recommending toLowerCase() would absolutely make 
> sense, but it's human beings doing the case folding when evaluating 
> proposed registrations.

I was thinking more about this and came to conclusions that this distinction doesn't make a difference in practice. The problem is that Unicode case insensitive comparison means that Designated Experts need to be experts in Unicode or they have to use tools that will do comparision for them. I can show several examples of strings that are case insensitive according to toLowerCase(), but people not knowing corresponding scripts (or having more general idea about Unicode) wouldn't be able to evaluate for case insensitivity just by looking at them.

>  I'll also note that this is exactly the same 
> language used in the instructions to Designated Experts in related 
> registries.  For instance, you can see it in use at these (and many 
> other) locations:
> 	https://tools.ietf.org/html/rfc7515#section-9.1.1
> 	https://tools.ietf.org/html/rfc7517#section-8.1.1
> 	https://tools.ietf.org/html/rfc7518#section-7.1.1
> 	https://tools.ietf.org/html/rfc7519#section-10.1.1
> 	https://tools.ietf.org/html/rfc7800#section-6.2.1
> 
> Whereas the use of toLowerCase() in 
> https://tools.ietf.org/html/rfc8265#section-3.3.1 makes perfect sense, 
> because it's a transformation performed by computer programs.
> 
> That said, I'll leave it up to you.  If you still want me to make a 
> change, I'd propose making this one:  Change "Names may not match other 
> registered names in a case-insensitive manner unless the Designated 
> Experts state that there is a compelling reason to allow an exception" 
> to "Names may not match other registered names in a case-insensitive 
> manner (one that would cause a match if the Unicode toLowerCase() 
> operation were applied to both strings) unless the Designated Experts 
> state that there is a compelling reason to allow an exception".

I still prefer the above version.

Thank you,
Alexey

> If you still want a change, I'll add this parenthetical remark during 
> the next set of edits.  (However, I'll wait for Adam to weigh in on his 
> DISCUSS before republishing.)
> 
> Let me know.
> 
> 				Thanks again,
> 				-- Mike
> 
> -----Original Message-----
> From: OAuth <oauth-bounces@ietf.org> On Behalf Of Alexey Melnikov
> Sent: Wednesday, February 28, 2018 6:44 AM
> To: The IESG <iesg@ietf.org>
> Cc: draft-ietf-oauth-discovery@ietf.org; oauth-chairs@ietf.org; 
> oauth@ietf.org
> Subject: [OAUTH-WG] Alexey Melnikov's Discuss on draft-ietf-oauth-
> discovery-09: (with DISCUSS and COMMENT)
> 
> Alexey Melnikov has entered the following ballot position for
> draft-ietf-oauth-discovery-09: Discuss
> 
> When responding, please keep the subject line intact and reply to all 
> email addresses included in the To and CC lines. (Feel free to cut this 
> introductory paragraph, however.)
> 
> 
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about IESG DISCUSS and COMMENT positions.
> 
> 
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-oauth-discovery/
> 
> 
> 
> ----------------------------------------------------------------------
> DISCUSS:
> ----------------------------------------------------------------------
> 
> Thank you for the well written IANA Considerations section. I have one 
> comment on it which should be easy to resolve:
> 
> The document doesn't seem to say anything about allowed characters in 
> Metadata names. When the document talks about "case-insensitive 
> matching", it is not clear how to implement the matching, because it is 
> not clear whether or not Metadata names are ASCII only. If they are not, 
> then you need to better define what "case insensitive" means.
> 
> You've made a change in section 7.1, which looks good. However there is 
> still the following text in 7.1.1:
> 
>    Metadata Name:
>       The name requested (e.g., "issuer").  This name is case-sensitive.
>       Names may not match other registered names in a case-insensitive
> 
> I suggest replacing "in a case-insensitive manner" with something like 
> "if when applying Unicode toLowerCase() to both, they compare equal".
> 
> Or maybe keep "case-insensitive" and just add a sentence explaining what 
> it is.
> I think you should use toLowerCase(), as it is already recommended in 
> other IETF specs, like RFC 8265.
> 
>       manner unless the Designated Experts state that there is a
>       compelling reason to allow an exception.
> 
> 
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
> 
> I am agreeing with Adam's DISCUSS. I believe it was addressed in the 
> latest version.
> 
> 
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth