[Last-Call] Re: Dnsdir telechat review of draft-ietf-httpbis-rfc6265bis-19

Petr Špaček <pspacek@isc.org> Tue, 18 February 2025 08:49 UTC

Return-Path: <pspacek@isc.org>
X-Original-To: last-call@ietfa.amsl.com
Delivered-To: last-call@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B820C18DBB9; Tue, 18 Feb 2025 00:49:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isc.org header.b="K+EtRmHL"; dkim=pass (1024-bit key) header.d=isc.org header.b="TivrnQrP"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HEHQmALiWPMD; Tue, 18 Feb 2025 00:48:55 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.2.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61C9CC151079; Tue, 18 Feb 2025 00:48:54 -0800 (PST)
Received: from zimbrang.isc.org (zimbrang.isc.org [149.20.2.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx.pao1.isc.org (Postfix) with ESMTPS id 171F33AB2E1; Tue, 18 Feb 2025 08:48:53 +0000 (UTC)
ARC-Filter: OpenARC Filter v1.0.0 mx.pao1.isc.org 171F33AB2E1
Authentication-Results: mx.pao1.isc.org; arc=none smtp.remote-ip=149.20.2.31
ARC-Seal: i=1; a=rsa-sha256; d=isc.org; s=ostpay; t=1739868533; cv=none; b=iunzu06wq7M1PyABKQRcBdefmzZLdnAjDcMhNxsRuGlGRvRbhD7bFLS1GbWKoeCcl65SQal5I6vzPdo04hKsVeEjXFmMCUemQ4nhFXpN2aFlKQyQq+/bsh9R/ezZNTiBrFj08EnO4aea7ZxEXqQXInvYXrLcd5DQULnwdnNHVEo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=isc.org; s=ostpay; t=1739868533; c=relaxed/relaxed; bh=unDRgFbGFcEy6j7hBx5hoh66yEVqGGGa0vgAj38r+AI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=KwkDvZy4XJvtaP+9C8yoQlewcMeOxMWdAT9/MtAgZTSepDrxeQLvQlQqU66lnh7uvtrZgDqRMCJngPS/FZW6RJChdOxZlH6/HOT3oxpp66zgeg0BVntcalaD1rn/hKXhTlImpwqcLa8+q49/guT0xH/UzpKq0hhJgk2s0JSgyX0=
ARC-Authentication-Results: i=1; mx.pao1.isc.org
DKIM-Filter: OpenDKIM Filter v2.10.3 mx.pao1.isc.org 171F33AB2E1
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=isc.org; s=ostpay; t=1739868533; bh=unDRgFbGFcEy6j7hBx5hoh66yEVqGGGa0vgAj38r+AI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=K+EtRmHLlOGUy0nLW2l38XdTYbxcWKx8wQNV+pRJEaljeRcwwQhrZ05CdLGjJIEjW ctkyeR9SU6J+UJppncIgdicAR8QzSwzkkoamJMGAv1Z5C5uvw3fCOIdS6HbRWLXi73 X4vd+n6Ls2ki5BTr4NO3JK/LLSkUoC/mrTinWbo4=
Received: from zimbrang.isc.org (localhost.localdomain [127.0.0.1]) by zimbrang.isc.org (Postfix) with ESMTPS id 10C89F28646; Tue, 18 Feb 2025 08:48:53 +0000 (UTC)
Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbrang.isc.org (Postfix) with ESMTP id E36BFF286BA; Tue, 18 Feb 2025 08:48:52 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.10.3 zimbrang.isc.org E36BFF286BA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isc.org; s=05DFB016-56A2-11EB-AEC0-15368D323330; t=1739868532; bh=unDRgFbGFcEy6j7hBx5hoh66yEVqGGGa0vgAj38r+AI=; h=Message-ID:Date:MIME-Version:To:From; b=TivrnQrPPS3cPNlfAGwDlwaHCIxMJJr7AXeBjQbPKmup2vtUv2FRqf92Am9fqX969 du0+WjaXzQNhKXB6WmVb/Oqu6CyFFrxWG2F+y8ZmKs6LRUjWC2eq1QMjNYatSieM9x tl2sHxZ/ljDPkxccjJ4nuMx4w7gy7v8D6yuBGRP0=
Received: from zimbrang.isc.org ([127.0.0.1]) by localhost (zimbrang.isc.org [127.0.0.1]) (amavis, port 10026) with ESMTP id saQZXgRBmbkB; Tue, 18 Feb 2025 08:48:52 +0000 (UTC)
Received: from [192.168.0.224] (ip-86-49-237-94.bb.vodafone.cz [86.49.237.94]) by zimbrang.isc.org (Postfix) with ESMTPSA id BDC72F28646; Tue, 18 Feb 2025 08:48:51 +0000 (UTC)
Message-ID: <7e73254b-a6cc-43c9-a678-390c52d9c528@isc.org>
Date: Tue, 18 Feb 2025 09:48:47 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: "Roy T. Fielding" <fielding@gbiv.com>
References: <173980877687.1530167.1520003813683583144@dt-datatracker-75c44cbbdf-pxnd6> <C5D87D17-4CC2-4AAE-B966-2F974D308CF9@gbiv.com>
From: Petr Špaček <pspacek@isc.org>
Content-Language: en-US
Autocrypt: addr=pspacek@isc.org; keydata= xsFNBF/OJ/4BEAC0jP/EShRZtcI9KmzVK4IoD/GEDtcaNEEQzPt05G8xtC0P4uteXUwW8jaB CdcKIKR4eUJw3wdXXScLNlyh0i+gm5mIvKPrBYNAMOGGnkbAmMQOt9Q+TyGeTSSGiAjfvd/N nYg7L/KjVbG0sp6pAWVORMpR0oChHflzKSjvJITCGdpwagxSffU2HeWrLN7ePES6gPbtZ8HY KHUqjWZQsXLkMFw4yj8ZXuGarLwdBMB7V/9YHVkatJPjTsP8ZE723rV18iLiMvBqh4XtReEP 0vGQgiHnLnKs+reDiFy0cSOG0lpUWVGI50znu/gBuZRtTAE0LfMa0oAYaq997Y4k+na6JvHK hhaZMy82cD4YUa/xNnUPMXJjkJOBV4ghz/58GiT32lj4rdccjQO4zlvtjltjp9MTOFbRNI+I FCf9bykANotR+2BzttYKuCcred+Q7+wSDp9FQDdpUOiGnzT8oQukOuqiEh3J8hinHPGhtovH V22D0cU6T/u9mzvYoULhExPvXZglCLEuM0dACtjVsoyDkFVnTTupaPVuORgoW7nyNl0wDrII ILBqUBwzCdhQpYnyARSjx0gWSG1AQBKkk5SHQBqi1RAYC38M59SkpH0IKj+SaZbUJnuqshXh UIbY1GMHbW/GDhz7pNQFFYm2S4OPUBcmh/0O0Osma151/HjF7wARAQABzR9QZXRyIMWgcGHE jWVrIDxwc3BhY2VrQGlzYy5vcmc+wsGXBBMBCABBAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4B AheAAhkBFiEEEVO2++xeDVoSYmDzq9WHzfBlga4FAmd7vqsFCQmG4S0ACgkQq9WHzfBlga5H dA//SNIJAXyYxpoIrQwtTSOded93J+CIYHd2ArxCsS+ZXzeaSkHcqp2QfneLY2yyiQwjeivu MfqEBIASNZ94T+4Ojh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>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: 7PVSRA65S7IF3ELIC55AOFP3QISKR3IY
X-Message-ID-Hash: 7PVSRA65S7IF3ELIC55AOFP3QISKR3IY
X-MailFrom: pspacek@isc.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: dnsdir@ietf.org, draft-ietf-httpbis-rfc6265bis.all@ietf.org, ietf-http-wg@w3.org, last-call@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Last-Call] Re: Dnsdir telechat review of draft-ietf-httpbis-rfc6265bis-19
List-Id: IETF Last Calls <last-call.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/last-call/bruydK32zq7pIep1VprdRwujcEo>
List-Archive: <https://mailarchive.ietf.org/arch/browse/last-call>
List-Help: <mailto:last-call-request@ietf.org?subject=help>
List-Owner: <mailto:last-call-owner@ietf.org>
List-Post: <mailto:last-call@ietf.org>
List-Subscribe: <mailto:last-call-join@ietf.org>
List-Unsubscribe: <mailto:last-call-leave@ietf.org>

On 18. 02. 25 2:02, Roy T. Fielding wrote:
>> On Feb 17, 2025, at 8:12 AM, Petr Špaček via Datatracker <noreply@ietf.org> wrote:
>>
>> Reviewer: Petr Špaček
>> Review result: Almost Ready
>>
>> I was assigned as the dnsdir reviewer for draft-ietf-httpbis-rfc6265bis-19.
>> For more information about the DNS Directorate, please see
>> https://wiki.ietf.org/en/group/dnsdir
>>
>> The primary problem of this draft is inconsistent handling of host/name
>> identifiers with implicit assumptions. Instructions for handling domain names
>> between the lines assume the underlying technology is DNS. Consequently, the
>> protocol as specified does not work for alternative naming systems like mDNS
>> (RFC 6762) for reasons described in RFC 8222. Please note: mDNS is just an
>> example. RFC 6055 page 7 gives more examples.
>>
>> The same underlying problem seems to be present in wider HTTP spec ecosystem:
>> - [FETCH] spec section 2.5 states DNS is only one example of a naming system
>> - ORIGIN] talks only about DNS
>> - [URL] hardcodes rules for DNS and IDNA "compatibility" as currently employed
>> by DNS (but not mDNS). A trivial test which demonstrates this problem in
>> practice with "curl" was already posted to
>> https://lists.w3.org/Archives/Public/ietf-http-wg/2025JanMar/0136.html
>>
>> Considering the prevalence of this problem in the HTTP specs, I'm not against
>> keeping the statut quo if authors decide to do so, but I think it should be
>> acknowledged at the beginning of the document.
>>
>> Suggested course of action: Remove most of name specifications and replacing it
>> with an established spec, e.g. [URL], to avoid yet another fracture in the
>> ecosystem.
> 
> Umm, no. You appear to be confusing the use of UTF-8 hostnames in
> documents and display elements with the use of hostnames in protocol
> elements that do not allow UTF-8. Browsers convert from one form to
> the other when using references as data for the protocols. curl, in contrast,
> expects a URL-specific parameter to be in URI format with the host already
> encoded as such (unless you tell it to expect something else). No big deal.
> 
> For HTTP, any reference to an origin is already in ASCII (or punycode) form.
> HTTP does not do any conversion to other label forms because that conversion
> has already been performed prior to using HTTP. Hence, Set-Cookie and Cookie

I'm indeed confused! I still don't understand what you are saying...

Please, can you give me examples how to encode these two domains into 
URLs (or Host or Set-Cookie headers)?

1. DNS with IDNA2008 seems clear:
http://háčkyčárky.cz/ -> http://xn--hkyrky-ptac70bc.cz/

2. mDNS (bare UTF-8):
http://háčkyčárky.local/ -> ???


I've naively tried 'http://h%C3%A1%C4%8Dky%C4%8D%C3%A1rky.local/' but 
curl (understandably) converts this into Unicode and _then_ does 
punycode, which is incorrect for this particular case with mDNS:

$ curl http://h%C3%A1%C4%8Dky%C4%8D%C3%A1rky.local/
curl: (6) Could not resolve host: xn--hkyrky-ptac70bc.local


Can you set me straight, please? How "háčkyčárky.local" gets converted 
into the ASCII form you mentioned in your response?

Thank you for your time.
Petr Špaček



> are entirely based on "normal" ASCII DNS-looking domains, with name handling
> that has a lot of hand-wavy algorithmic stuff loosely based on DNS due to the
> Cookie-specific history of subdomain authority rules (which have no basis in
> IETF standards, yet exist anyway because that's how they implemented it).
> 
> Referencing some other "established spec" doesn't work because Cookies
> are not, and never have been, implemented in a way that sensible people
> would add to a standard. Therefore, rfc6265bis has to define its own version,
> even if that means it would be wrong in the general case.
> 
> Of course, this doesn't mean the current text is right. If it can be improved
> within the scope of an HTTP field handler, please do identify those problems
> so that they can be fixed.
> 
> ....Roy