Re: WGLC for draft-ietf-httpbis-connect-tcp

David Schinazi <dschinazi.ietf@gmail.com> Wed, 06 March 2024 23:14 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=ietf.org@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13C4FC14F617 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 6 Mar 2024 15:14:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.855
X-Spam-Level:
X-Spam-Status: No, score=-2.855 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, 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 (2048-bit key) header.d=w3.org header.b="hA7oXtIg"; dkim=pass (2048-bit key) header.d=w3.org header.b="db83kAuO"; dkim=pass (2048-bit key) header.d=gmail.com header.b="IA1iyhZz"
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 rPqin5P3GUwa for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 6 Mar 2024 15:14:14 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C760C14F5EB for <httpbisa-archive-bis2Juki@ietf.org>; Wed, 6 Mar 2024 15:14:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:Content-Type:Cc:To:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=yS5EU08NbFjHNvwetv10/pvGg+yet96gGt999FbVCCk=; b=hA7oXtIg1srpe/R6RJLsP1G5k1 ZKpQ0+jG3W0OKaVcQA5f+MA0V98+7yMYPj1anDMKgEWYpMMLY/7hsOFpxP8yJC9QDkoSlgJQ4h68+ KgiqfeMI4lTcpK8TxPDpjuFuvMv9B894PK7FfKXIT8E3NE1ZSMgJBa8xeABi4DhTIsRLzOkUmcDUg akjH+MkmmjehjBlibXeoytghpTa8rEudzx1hu89XY4gN3wllkZkzzqYxlvAkOEhLC02me9WKTLkFO ZvGBtIh6RinrHQoCPIJ0o5pxVae8RaPUZ7/rjfjmbVDLRzi8uzStyuu839mnq8a4idmbeZZmykbIr ewcNyhNQ==;
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ri0SV-006oP4-SA for ietf-http-wg-dist@listhub.w3.org; Wed, 06 Mar 2024 23:13:59 +0000
Resent-Date: Wed, 06 Mar 2024 23:13:59 +0000
Resent-Message-Id: <E1ri0SV-006oP4-SA@lyra.w3.org>
Received: from pan.w3.org ([3.222.182.102]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <dschinazi.ietf@gmail.com>) id 1ri0SU-006oNz-1o for ietf-http-wg@listhub.w3.org; Wed, 06 Mar 2024 23:13:58 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=yS5EU08NbFjHNvwetv10/pvGg+yet96gGt999FbVCCk=; t=1709766838; x=1710630838; b=db83kAuON02MpRfrJkp80nhRrcuLFSHert2QCKfGIkjN0Zyu8AGBvvso6580LY8ov3QtyVkTGXB FbtpT+XoKKDxakCTzrXjjolBNgqpskSj2aAR/8tK5d6DZswHox+V6nPO6KUr4bm1spOs7P6BU449m eJw6/nhNuvmqzjHR97vNRiltYjr/j1mH+68bekz8AqgeBi194JPBQKDE0UD8XCRrskCmVnYX27ueU lJ8Q8wmI1ZHNmcszsK2grzsBgimvfBkkF+KuCLf+1ffDKaf2YM5R4vUMfKN+rcZI9RbMv59M79uHs /MzTcNCCReZcGM0issIMd8KZ2wSNmzHHrI2w==;
Received-SPF: pass (pan.w3.org: domain of gmail.com designates 2a00:1450:4864:20::133 as permitted sender) client-ip=2a00:1450:4864:20::133; envelope-from=dschinazi.ietf@gmail.com; helo=mail-lf1-x133.google.com;
Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by pan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <dschinazi.ietf@gmail.com>) id 1ri0SS-008AP7-0G for ietf-http-wg@w3.org; Wed, 06 Mar 2024 23:13:57 +0000
Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-512f892500cso205960e87.3 for <ietf-http-wg@w3.org>; Wed, 06 Mar 2024 15:13:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709766832; x=1710371632; darn=w3.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yS5EU08NbFjHNvwetv10/pvGg+yet96gGt999FbVCCk=; b=IA1iyhZzQsMRPzWcqb13is5GCt7D9DIt1pHH61x04Ai/9vi02tx+kbbN4oIxExnDiL Vi9/yehGcuRyug/2CDb/J2cKB8lNTv+cFAghb3UHiNT9JmfiFJB4helH5y1+SrS9RBNZ 0dSH1BWZ8g34UuF4/9BT49T30G8UoXuufnlXat8I5jGLVXae7LtCObTHdqwz1n3+qEVg VShPn8tpC1LwPDMhhE7fX5uGVDBPzVdi/Oh1cPAr1duqPbpn24Jat+aiLHWVpaIgjary R9F+SMFnwfR4Pa08QTyX1fTqquaGGMW2u1fgRqKlFkO2PAPGUStYv1b33oMNOOqCcxSm 6aHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709766832; x=1710371632; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yS5EU08NbFjHNvwetv10/pvGg+yet96gGt999FbVCCk=; b=Q3iv/0NVCsGVNPgcCtrFc3HxRd5LyJPzwh8l91lf+9VSb+tOOJabD5Fhl0+0vZxtmV XhQqHrbtODlh8QC7VIQNVQDsJkIwUK/i8Lz3mPhqX/jc/MHgM1JV7pIinTQpC+ogiLgb WLiFG7zUApQTgh40yG1UH9r6s45vdAOQpC93TOTBeHlv6zoeY6wIGX7A8VYuBjAgkjTU 9Ewgn/ilPvDHXXd8dE6MRen3ZFYUX8jCfYv0NC56EXWo5odhxNIPBx0vPGKia+hFrUV2 atQUvELrBX5sL9LafotYEM74O1G8CuI7Oe/UA3BbRe9jFcw8noMYlQHFbv2NGjI7k4Xt cWww==
X-Forwarded-Encrypted: i=1; AJvYcCUJOHr7WW+dAfVK7J3+oMmFIQ6sUinoh7Un1792atbfbSffzy0EOjDgGoA8Yzl2EcGYu9cfNqO8h8ooJEH5ncl7zp2X
X-Gm-Message-State: AOJu0Yyoi8aOfazPuqAhxZXMnJ7HBGiorPl05lw33TNCHJCunM7lhNE0 SWXlXSayIZNozCW/6uLZdepCgStJPPCsf8wd4rUyTBlI6EGl6GKuHQq+IP5w7KduMuGMoySL+zV 6/kljA5NSXp0o0TvMNmbYC+ynqz0=
X-Google-Smtp-Source: AGHT+IE/bnmiy/val/+bIN14UetmyyefdDemnEtWLp22vIbhYLQH2gAHK73/x8aLLl6em/2l3I9ckU4YG3zIWgdcMmE=
X-Received: by 2002:ac2:4d87:0:b0:512:d061:a1b with SMTP id g7-20020ac24d87000000b00512d0610a1bmr282994lfe.0.1709766831379; Wed, 06 Mar 2024 15:13:51 -0800 (PST)
MIME-Version: 1.0
References: <7228A073-F867-4007-BB44-0AA547455539@apple.com> <CAPDSy+5ETu3BeA-0defYYKhLhMZ9f6UE=boxAp7aFwh-RTi9xw@mail.gmail.com> <SA1PR15MB437034E91B1959A206D82482B3792@SA1PR15MB4370.namprd15.prod.outlook.com> <0489428B-16E4-42AF-8224-9054122DD41A@apple.com> <662ECDC0-3B90-443F-BD0F-AF340FD7FEED@meta.com> <CAPDSy+7TEseyJv5TO0BLrdRBpGvjGLOeEqSbZW4JN8xir5c1tg@mail.gmail.com> <8A616C9D-496D-4730-938D-A9BDB1CEBC48@meta.com> <CAPDSy+7Lo0KkeYNsUdbsjoaoN3Dc_pCGabHSuXGXtt31a_Ungg@mail.gmail.com> <4CFF195E-5D02-414D-9C08-A7647CD7A2D0@apple.com>
In-Reply-To: <4CFF195E-5D02-414D-9C08-A7647CD7A2D0@apple.com>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Wed, 06 Mar 2024 15:13:40 -0800
Message-ID: <CAPDSy+6FZ2VDy0AbfMEHOYNmn9oLix2LfGYkKmcLRQTPiskccg@mail.gmail.com>
To: Tommy Pauly <tpauly@apple.com>
Cc: Ben Schwartz <bemasc@meta.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="000000000000a21fed0613061c84"
X-W3C-Hub-DKIM-Status: validation passed: (address=dschinazi.ietf@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-9.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS=-0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: pan.w3.org 1ri0SS-008AP7-0G 4b480e59ad94a04722a0d4a7e7f19bd8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC for draft-ietf-httpbis-connect-tcp
Archived-At: <https://www.w3.org/mid/CAPDSy+6FZ2VDy0AbfMEHOYNmn9oLix2LfGYkKmcLRQTPiskccg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/51865
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

First, to respond to Tommy's chair comment about WGLC: I absolutely agree
this needs more review. Additionally, I think we should wait for
implementation experience before sending it to the IESG.

Now, to respond to Tommy's technical points as individual:

When we originally developed the capsule protocol, I was worried about the
consequences of taking over the data stream. Luckily, there's a
straightforward solution: we define a DATA capsule - the semantics of all
DATA capsules is that they are concatenated to create the DATA stream. That
would allow us to have message content ("body") with methods that rely on
the capsule protocol.

I hadn't really thought about it in the context of connect-tcp, but I like
that idea. We could say that connect-tcp always uses the capsule protocol,
and then uses DATA capsules to encode the CONNECT/TCP bytestream. It's a
little bit more code on the receiver, and pretty much none on the sender
(just send a DATA capsule with length=2^61).

David

On Wed, Mar 6, 2024 at 3:03 PM Tommy Pauly <tpauly@apple.com> wrote:

> (As an individual)
>
> I agree with David regarding the list of IP addresses — at the very least,
> it could be done in a similar way for connect-udp, etc.
>
> I did have one additional question about the design here. The related
> connect-udp and connect-ip protocols do have a nice feature inherent to
> using datagrams that they can use capsules to provide control messages
> between the client and the proxy at the start or during the middle of a
> transaction. Since connect-tcp consumes the stream, it doesn’t do that (and
> that makes sense for the sake of simplicity). However, I can imagine some
> cases where a client and proxy could want to have some generic capsules
> that describe proxy behavior that *could* be interesting for a
> connect-tcp proxy; for example, if a client and proxy wanted to communicate
> about different sending patterns to use for obfuscating traffic with
> padding and chaff, that could be negotiated using capsules.
>
> So my question is: do we think we’ll have any extension features that
> would want to use a capsule-like mechanism with connect-tcp, and if so how
> would that work? For example, if the client and proxy negotiate using the
> Capsule-Protocol header, do the stream data chunks end up going into
> capsules instead of directly into DATA frames?
>
> Thanks,
> Tommy
>
> On Feb 16, 2024, at 2:04 PM, David Schinazi <dschinazi.ietf@gmail.com>
> wrote:
>
> Thanks for clarifying. At this point the list-of-IP-addresses
> feature seems unneeded to me, and it adds complexity to server
> implementations. I would personally recommend removing it from this
> document. It can always be added back if we need it later in an extension.
> David
>
> On Thu, Feb 15, 2024 at 1:01 PM Ben Schwartz <bemasc@meta.com> wrote:
>
>>
>>
>> > On Feb 15, 2024, at 2:34 PM, David Schinazi <dschinazi.ietf@gmail.com>
>> wrote:
>> >
>> > Hi Ben, thanks for the PR - it looks good to me.
>> >
>> > Regarding your point about client implementers, can you share more
>> about them? Who's implemented this so far? Who's depending on the address
>> list feature?
>>
>> I’m referring to prior conversations where some people seemed to prefer
>> leaving DNS resolution entirely in the client’s hands, e.g. [1].
>>
>> In most cases, I think target_host should simply be a hostname.  However,
>> I do think there are some cases where passing an IP address is appropriate,
>> and in those cases passing a list of N IPs is much more efficient than
>> sending N requests with one IP each:
>>
>> * When the client feels that it is necessary to enforce DNSSEC validation
>> of the A/AAAA responses.  (This is an unusual threat model, but it is
>> supported by platforms like iOS [2]).
>> * When the client attempts to reduce connection setup latency by using an
>> HTTPS record’s ipv4hint and ipv6hint SvcParams.
>> * When the IP addresses were not delivered through DNS at all (e.g., ICE
>> TCP in SDP [3])
>>
>> —Ben
>>
>> [1]
>> https://datatracker.ietf.org/doc/chatlog-115-masque-202211090930/#:~:text=In%20general%2C%20it%27s%20better%20for%20the%20proxy%20to%20do%20the%20final%20name%2D%3EIP%20resolution%2C%20whereas%20it%27s%20better%20for%20the%20client%20to%20do%20the%20HTTPS/SVCB%20lookup
>> .
>>
>> [2]
>> https://developer.apple.com/documentation/network/nwparameters/3952717-requiresdnssecvalidation
>>
>> [3] https://datatracker.ietf.org/doc/html/rfc6544#appendix-C
>>
>> >
>> > Thanks,
>> > David
>> >
>> > On Wed, Feb 14, 2024 at 1:59 PM Ben Schwartz <bemasc@meta.com> wrote:
>> >
>> >> On Feb 13, 2024, at 10:48 PM, Tommy Pauly <tpauly@apple.com> wrote:
>> >>
>> >>> On Jan 26, 2024, at 11:19 AM, Ben Schwartz <bemasc@meta.com> wrote:
>> > ...
>> >>>     • "target_port" or "tcp_port":
>> https://github.com/httpwg/http-extensions/pull/2720
>> >
>> >
>> > …
>> >
>> >> As I’ve mentioned just now on the issue, the direction for
>> configuration might be to be more explicit on the supported protocol, so
>> that we don’t try to infer the protocol from the template. Based on that,
>> I’d lean right now towards just having a target_port, instead of tcp_port.
>> >
>> >
>> > OK it sounds like the consensus favors this change, so I’ve opened
>> https://github.com/httpwg/http-extensions/pull/2736.
>> >
>> >>>
>> >>>     • Support for "target_host=192.0.2.1&target_host=2001:db8::1":
>> https://github.com/httpwg/http-extensions/pull/2719
>> >>>
>> >>> To improve Happy Eyeballs and related behaviors, "connect-tcp" allows
>> the client to provide a list of IP addresses.  URI Templates have a
>> built-in notion of lists.  In URI Template Level 3 and below, list elements
>> are always joined by commas ("192.0.2.1,2001:db8::1").  However, in Level
>> 4, templates can use the "explode modifier" to generate repeated key=value
>> assignments (as above), which are more idiomatic in some web frameworks.
>> Should we require clients to support Level 4 templates, or restrict proxies
>> to publishing Level 3 templates?
>> >>
>> >>
>> >> In what I’ve seen, it’s usually best to have happy eyeballs be done by
>> the proxy based on the DNS resolution the proxy itself has performed, not
>> necessarily the addresses provided by the client. Before we make this too
>> complex, I'd like to hear about who would exercise this capability.
>> >
>> > I agree that this is best practice.  (It’s even documented at
>> https://datatracker.ietf.org/doc/html/rfc9460#section-3.2-2.)  However,
>> I’ve heard a number of arguments from client implementors who felt that the
>> client should be able to use its own DNS resolver, independent of the
>> proxy, in which case this functionality seems valuable for Happy Eyeballs
>> to work as intended.
>> >
>> > In the above pull request, I’ve simplified the syntax for this
>> (reducing the URI Template requirement to Level 3) to minimize the burden
>> on clients that don’t use the feature.
>> >
>> > —Ben
>>
>>
>>
>