Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt

Nico Schottelius <nico.schottelius@ungleich.ch> Tue, 06 July 2021 07:32 UTC

Return-Path: <nico@schottelius.org>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C884A3A19F6 for <ipv6@ietfa.amsl.com>; Tue, 6 Jul 2021 00:32:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.751
X-Spam-Level:
X-Spam-Status: No, score=-1.751 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ungleich.ch
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 Jwwf8dmGQ_Gx for <ipv6@ietfa.amsl.com>; Tue, 6 Jul 2021 00:32:44 -0700 (PDT)
Received: from smtp.ungleich.ch (smtp.ungleich.ch [IPv6:2a0a:e5c0:0:2:400:b3ff:fe39:7956]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9B4BE3A19F0 for <ipv6@ietf.org>; Tue, 6 Jul 2021 00:32:42 -0700 (PDT)
Received: from nb3.localdomain (localhost [IPv6:::1]) by smtp.ungleich.ch (Postfix) with ESMTP id 016A61FE49; Tue, 6 Jul 2021 09:32:26 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ungleich.ch; s=mail; t=1625556747; bh=J74dx9bGtaTGBpHQSYyaG3tR0TF5hBz/NK0UBKFNFgE=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=gs+B+hed2xOb9wstV5JyMCyKSJShCNMUY2fcBweQuy9b6p8bT0JSEvPNFOySTArUD k4t+aaWBCY79C2rGd2karr4mQgGadvtXX2WKrkCpePu7j7ElYWn9I5To2tXaiTB+XD RmjoNQJwP4XxesOm88pHk77yfmriTQM/R0TdX0zT+DeTGpTKqsOBWVsPJbp/djw5WP RcPU3YM7ZFuWBtsUcxny52Ni2A3VfGaccf6kFnpq0+GFAIMsel8E+zShqBe0Nxde3z 41f+2vKCZ/Iqg7WDWrw83sQWbEqsYHtTe0KK5FweBF1mXzMdSO2JZ4wGq8eZwcfwhr uOPkAFi8LKMpg==
Received: by nb3.localdomain (Postfix, from userid 1000) id C082714CC251; Tue, 6 Jul 2021 09:33:11 +0200 (CEST)
References: <162545101341.19246.8566193740265797873@ietfa.amsl.com> <95a7dbe5-e0a3-4676-9dcc-005ff53725e0@gmail.com> <CA+9kkMD3iSgo-KMM5Ed8bVnVCu_G3f2kB6zHKoOx2ta=x8QucA@mail.gmail.com> <CANMZLAbmdWHDRBPpHgy_e4_0-WUVW2gjnbXWwu2pF_xi-S0vWQ@mail.gmail.com> <87a6n13y0j.fsf@ungleich.ch> <CA+9kkMBx4F0FGZasdk11ogyCOwQZecAEkO4JbECDr4osySN-4w@mail.gmail.com> <01289d8c-a470-1867-448f-3d616647ba5f@gmail.com>
User-agent: mu4e 1.4.15; emacs 27.2
From: Nico Schottelius <nico.schottelius@ungleich.ch>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: Ted Hardie <ted.ietf@gmail.com>, Nico Schottelius <nico.schottelius@ungleich.ch>, Bob Hinden <bob.hinden@gmail.com>, 6MAN WG <ipv6@ietf.org>
Subject: Re: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt
In-reply-to: <01289d8c-a470-1867-448f-3d616647ba5f@gmail.com>
Date: Tue, 06 Jul 2021 09:33:11 +0200
Message-ID: <87bl7flww8.fsf@ungleich.ch>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/dMhCCi67V91I-9GNM3-42Fd7njU>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jul 2021 07:32:49 -0000

While copy & paste won't work with this proposal, I believe the %25
escape should be "good enough" for most daily usage.

I think we don't need to aim for a "perfect solution", which we will not
be able to achieve anyway, but a solution for reality.

In this regard, as a network operator, I can support this direction to
better have a, rather than no solution.

In a perfect world, the [...%] syntax would have been introduced (and
accepted) prior to % escape in URLs.

Another direction, which is probably also very unlikely to achieve,
would be to change the delimiter on OS basis and harmonise it with the
browser.

Best regards,

Nico

Brian E Carpenter <brian.e.carpenter@gmail.com> writes:

> Ted,
>
> On 05-Jul-21 22:08, Ted Hardie wrote:
>> Hi Nico,
>>
>> Essentially, the % symbol in a URI is an indicator that what follows is
> percent encoded; see RFC 3986, section 2.1.  Section 2.4 also says:
>>
>>    Because the percent ("%") character serves as the indicator for
>>    percent-encoded octets, it must be percent-encoded as "%25" for that
>>    octet to be used as data within a URI.
>>
>>  This proposal treats the % which starts a scope identifier as "data within a URI" and so it percent-encodes the percent symbol.  Other approaches, such as a bare percent symbol within the square brackets have been rejected (see the long Mozilla bug thread Brian posted).
>>
>> I think that taking this approach is worth trying, but I believe that consistency is needed.  Making this the valid form but accepting the bare % in some circumstances seems likely to me result in lack of interoperability.  If I can paste when going into browser 1 but not browser
> 2, the result is confusing for the user.
>
> Yes, that is a fairly persuasive argument.
>
> Just to play devil's advocate for a moment, once consequence of the % escape is that
> the user could execute
>    ping6  fe80::80b2:5c79:2266:e431%eth0
> but in a browser window would have to type
>    https://[fe80::80b2:5c79:2266:e431%25eth0]
> so a simple cut-and-paste won't do it.
>
> Appendix A of the draft, which is unchanged from RFC6874, summarizes the options considered the previous time round.
>
> Regards
>    Brian
>
>>
>> Just my two cents, of course,
>>
>> Ted
>>
>> On Mon, Jul 5, 2021 at 10:33 AM Nico Schottelius <nico.schottelius@ungleich.ch <mailto:nico.schottelius@ungleich.ch>> wrote:
>>
>>
>>     I am bit puzzled about the interface ID discussion. While I understand
>>     that % inside square brackets is treated differently than outside, the
>>     overall complexity still seems to be low, isn't it?
>>
>>             On encountering "[ + valid IPv6 address" browsers should (must?)
>>             accept an interface identifier of the form of "%string]".
>>
>>     This covers automatically the integer case as well as the named network
>>     interfaces. Or am I missing something?
>>
>>
>>
>>     Brian Carpenter <brian.e.carpenter@gmail.com <mailto:brian.e.carpenter@gmail.com>> writes:
>>
>>     > Ted, I agree about the complexity. otoh I believe that at least one browser
>>     > used to do this. How about saying that such a mechanism is not forbidden?
>>     >
>>     > Regards,
>>     >     Brian Carpenter
>>     >     (via tiny screen & keyboard)
>>     >
>>     > On Mon, 5 Jul 2021, 20:06 Ted Hardie, <ted.ietf@gmail.com <mailto:ted.ietf@gmail.com>> wrote:
>>     >
>>     >> Hi Brian, Bob,
>>     >>
>>     >> Your draft says:
>>     >>
>>     >>    In the spirit of "be liberal with what you
>>     >>    accept", we also suggest that URI parsers accept bare "%" signs when
>>     >>    possible (i.e., a "%" not followed by two valid and
> meaningful
>>     >>    hexadecimal characters).  This would make it possible for a user to
>>     >>    copy and paste a string such as "fe80::a%en1" from the output of a
>>     >>    "ping" command and have it work.  On the other
> hand, "%ee1" would
>>     >>    need to be manually rewritten to "fe80::a%25ee1" to
> avoid any risk of
>>     >>    misinterpretation.
>>     >>
>>     >> I would prefer the document without this suggestion, as I think the
>>     >> resulting logic for a uri parser is a good bit harder than the "
> %s are
>>     >> handled differently within IPv6 literals" approach.  This requires the
>>     >> parser to treat %s  differently within IPv6 literals except
> when the result
>>     >> would be a "valid and meaningful" pair of hexadecimal characters.  If I
>>     >> follow your logic correctly, that would mean not simply checking
> to be sure
>>     >> that these are hex but also checking to be sure that the resulting
>>     >> characters are within the syntax for the ZoneID production.
>>     >>
>>     >> I think the proposal is much cleaner without this, and I encourage you to
>>     >> reconsider including it.
>>     >>
>>     >> regards,
>>     >>
>>     >> Ted Hardie
>>     >>
>>     >>
>>     >> On Mon, Jul 5, 2021 at 3:41 AM Brian E Carpenter <
>>     >> brian.e.carpenter@gmail.com <mailto:brian.e.carpenter@gmail.com>> wrote:
>>     >>
>>     >>> Hi,
>>     >>>
>>     >>> In case people aren't aware, no web browser that we know of supports
>>     >>> RFC6874, i.e. the extension to URI/URL syntax for a link-local
>>     >>> zone index in literal IPv6 addresses. This is annoying in several
>>     >>> use cases.
>>     >>>
>>     >>> This new draft tackles what seems to be the main objection from
>>     >>> the browser community, namely that RFC6874 requires browsers to
>>     >>> remove the zone index before sending the URL out in a standard
>>     >>> HTTP message. That's a coding annoyance and it also breaks HTTP/1.1
>>     >>> rules for the "Host" header according to RFC7230.
>>     >>>
>>     >>> There's background to this issue at:
>>     >>> https://bugzilla.mozilla.org/show_bug.cgi?id=700999 <https://bugzilla.mozilla.org/show_bug.cgi?id=700999> (still live but
>>     >>> officially closed WONTFIX) and
>>     >>> https://github.com/whatwg/url/issues/392 <https://github.com/whatwg/url/issues/392>
>>     >>>
>>     >>> The new draft proposes to update the RFC accordingly. The changes
>>     >>> are relatively small but significant. There's a diff between the
>>     >>> RFC and this draft at:
>>     >>>
>>     >>> https://www.cs.auckland.ac.nz/~brian/Diff-rfc6874-draft-carpenter-6man-rfc6874bis-00.html <https://www.cs.auckland.ac.nz/~brian/Diff-rfc6874-draft-carpenter-6man-rfc6874bis-00.html>
>>     >>>
>>     >>> Comments welcome. If we want to go ahead with this fix, we will
> need to
>>     >>> reach out to the URI specialists and the browser community, to be sure
>>     >>> it isn't a waste of time.
>>     >>>
>>     >>> Regards
>>     >>>      Brian & Bob
>>     >>>
>>     >>>
>>     >>> -------- Forwarded Message --------
>>     >>> Subject: I-D Action: draft-carpenter-6man-rfc6874bis-00.txt
>>     >>> Date: Sun, 04 Jul 2021 19:10:13 -0700
>>     >>> From: internet-drafts@ietf.org <mailto:internet-drafts@ietf.org>
>>     >>> Reply-To: internet-drafts@ietf.org <mailto:internet-drafts@ietf.org>
>>     >>> To: i-d-announce@ietf.org <mailto:i-d-announce@ietf.org>
>>     >>>
>>     >>>
>>     >>> A New Internet-Draft is available from the on-line Internet-Drafts
>>     >>> directories.
>>     >>>
>>     >>>
>>     >>>         Title
>    : Representing IPv6 Zone Identifiers in Address
>>     >>> Literals and Uniform Resource Identifiers
>>     >>>         Authors         : Brian Carpenter
>>     >>>                           Robert M. Hinden
>>     >>>         Filename        : draft-carpenter-6man-rfc6874bis-00.txt
>>     >>>         Pages
>    : 10
>>     >>>         Date
>     : 2021-07-04
>>     >>>
>>     >>> Abstract:
>>     >>>    This document describes how the zone identifier of
> an IPv6 scoped
>>     >>>    address, defined as <zone_id> in the IPv6 Scoped Address Architecture
>>     >>>    (RFC 4007), can be represented in a literal IPv6 address and in a
>>     >>>    Uniform Resource Identifier that includes such a literal address.  It
>>     >>>    updates the URI Generic Syntax specification (RFC 3986) accordingly,
>>     >>>    and obsoletes RFC 6874.
>>     >>>
>>     >>>
>>     >>> The IETF datatracker status page for this draft is:
>>     >>> https://datatracker.ietf.org/doc/draft-carpenter-6man-rfc6874bis/ <https://datatracker.ietf.org/doc/draft-carpenter-6man-rfc6874bis/>
>>     >>>
>>     >>> There is also an HTML version available at:
>>     >>> https://www.ietf.org/archive/id/draft-carpenter-6man-rfc6874bis-00.html <https://www.ietf.org/archive/id/draft-carpenter-6man-rfc6874bis-00.html>
>>     >>>
>>     >>>
>>     >>> Internet-Drafts are also available by anonymous FTP at:
>>     >>> ftp://ftp.ietf.org/internet-drafts/ <ftp://ftp.ietf.org/internet-drafts/>
>>     >>>
>>     >>>
>>     >>> _______________________________________________
>>     >>> I-D-Announce mailing list
>>     >>> I-D-Announce@ietf.org <mailto:I-D-Announce@ietf.org>
>>     >>> https://www.ietf.org/mailman/listinfo/i-d-announce <https://www.ietf.org/mailman/listinfo/i-d-announce>
>>     >>> Internet-Draft directories: http://www.ietf.org/shadow.html <http://www.ietf.org/shadow.html>
>>     >>> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt <ftp://ftp.ietf.org/ietf/1shadow-sites.txt>
>>     >>>
>>     >>> --------------------------------------------------------------------
>>     >>> IETF IPv6 working group mailing list
>>     >>> ipv6@ietf.org <mailto:ipv6@ietf.org>
>>     >>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6 <https://www.ietf.org/mailman/listinfo/ipv6>
>>     >>> --------------------------------------------------------------------
>>     >>>
>>     >>
>>     > --------------------------------------------------------------------
>>     > IETF IPv6 working group mailing list
>>     > ipv6@ietf.org <mailto:ipv6@ietf.org>
>>     > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6 <https://www.ietf.org/mailman/listinfo/ipv6>
>>     > --------------------------------------------------------------------
>>
>>
>>     --
>>     Sustainable and modern Infrastructures by ungleich.ch <http://ungleich.ch>
>>


--
Sustainable and modern Infrastructures by ungleich.ch