Re: Proposal: a new WRAP UP capsule

Tommy Pauly <tpauly@apple.com> Wed, 10 July 2024 01:19 UTC

Received: by ietfa.amsl.com (Postfix) id 9F9F4C151097; Tue, 9 Jul 2024 18:19:41 -0700 (PDT)
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 9ED52C14CF15 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 9 Jul 2024 18:19:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.005
X-Spam-Level:
X-Spam-Status: No, score=-3.005 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, 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="WJnU4j8R"; dkim=pass (2048-bit key) header.d=w3.org header.b="C/B6Nm3N"; dkim=pass (2048-bit key) header.d=apple.com header.b="g597Work"
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 fGBBZ0WCbohH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 9 Jul 2024 18:19:37 -0700 (PDT)
Received: from mab.w3.org (mab.w3.org [IPv6:2600:1f18:7d7a:2700:d091:4b25:8566:8113]) (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 9190FC14F6BB for <httpbisa-archive-bis2Juki@ietf.org>; Tue, 9 Jul 2024 18:19:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:To:References:Message-id:Cc:Date:In-reply-to:From: MIME-version:Content-type:Reply-To; bh=PYm800wWhpNctModwVOxn0cbXvaUxqFxFZXepNq2wCo=; b=WJnU4j8R7msf5TS+Gpgy2hnyZv 9B127y2XJMYO6O0tOvA5LTqnhlsjFuv3fpAgonXdW9g1hfq4iGB2018dCgFxdl9d2WBUz45Xh8al/ 3gIH5cRSmFOZsk0HoT9Dgkz3qzubEjy4uJtcYSKU6Abp9rwdE9ZUqXf33xqnorywrMDYqRrqJymEN iuaxknnlczhmnIFOTxTMXX5l9uZg//dnTTuuTQDcblxCc7Hu1VrkGbjLMIqGLWEbZIrhxuAwGvKJO nj5Ify72WL0qe5RNGMjbwZq9J4i+Vr0uZchvz6eTXTZs6IKlns2UuNekkYl/dPkzfA0g0Ak60+pwc VRu1S3jw==;
Received: from lists by mab.w3.org with local (Exim 4.96) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1sRLyz-00EhC7-1e for ietf-http-wg-dist@listhub.w3.org; Wed, 10 Jul 2024 01:18:57 +0000
Resent-Date: Wed, 10 Jul 2024 01:18:57 +0000
Resent-Message-Id: <E1sRLyz-00EhC7-1e@mab.w3.org>
Received: from ip-10-0-0-144.ec2.internal ([10.0.0.144] helo=pan.w3.org) by mab.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <tpauly@apple.com>) id 1sRLyw-00EhBB-0P for ietf-http-wg@listhub.w3.internal; Wed, 10 Jul 2024 01:18:54 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=To:References:Message-id:Cc:Date:In-reply-to:From:Subject: MIME-version:Content-type:Reply-To; bh=PYm800wWhpNctModwVOxn0cbXvaUxqFxFZXepNq2wCo=; t=1720574334; x=1721438334; b=C/B6Nm3NNkGMfs9D7vAgtWx0Qh4ODA+ST6HPbZDWW9ZXYCmurG/kIPT5gAkbIivzBfj9TJUmkPh QvY2hDnNuj4hnD2lb0ybCsXnq8jaSNdaJHhMQSa7raMay4tV1IZ2cQOoEWzD0rX4WL6WU1iEvqRjc iGdE5IX68f7iO8CsjSO1gIIJm92VzWPBkfREpL5uxuZhpyUlz+G9yExnB6Zob7WhijYdoxK7pAR7R oBsrcwqyvomKtz/NrYPZSLbpThCedP32n25uQkXkbbvv28CwpJhm//R1DpX0579O9nCND29bTnMbQ kWEy8LOEwhGcF2wr48uHhIeOYEF76qdhLn3Q==;
Received-SPF: pass (pan.w3.org: domain of apple.com designates 17.32.222.22 as permitted sender) client-ip=17.32.222.22; envelope-from=tpauly@apple.com; helo=ma-mailsvcp-mx-lapp01.apple.com;
Received: from ma-mailsvcp-mx-lapp01.apple.com ([17.32.222.22]) by pan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <tpauly@apple.com>) id 1sRLyv-006mLg-1A for ietf-http-wg@w3.org; Wed, 10 Jul 2024 01:18:54 +0000
Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by ma-mailsvcp-mx-lapp01.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0SGD00IDDVN2M000@ma-mailsvcp-mx-lapp01.apple.com> for ietf-http-wg@w3.org; Tue, 09 Jul 2024 18:18:50 -0700 (PDT)
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-09_12,2024-07-09_01,2024-05-17_01
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=20180706; bh=PYm800wWhpNctModwVOxn0cbXvaUxqFxFZXepNq2wCo=; b=g597WorkIGcW9kNPNLRNo5wbMA5B3yB37KEkyX8/iigcAD0yhiDX96MtjSB/947+B15J wOkiEi2CwqhUuzI/S/Fa0dhW5ASPSBF3fJrjqxna9h8AHp4tSfVKHexsfzCo36W1mUtr 6/6Akt8vwhAwahm+e1ckgb+42Vrz3VOkT12Qn7j85+xJ0FsbOCNFmjJ1h0+IE9DlNqDl cm86aX8GKcyQp7i0Z6ERMZ8i7Dhkx4i8CukqB8Lm9DzQOakh9jL6q7X4DkwosKwTAs9Q c+/xN530RSyxC8k48fO7Pptv7LtfJe3pPoMZbJhHNJeD35IJJNB+s5esK00tjxpNHUEw +g==
Received: from mr55p01nt-mmpp06.apple.com (mr55p01nt-mmpp06.apple.com [10.170.185.198]) by rn-mailsvcp-mta-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0SGD00UMXVN7OM30@rn-mailsvcp-mta-lapp02.rno.apple.com>; Tue, 09 Jul 2024 18:18:43 -0700 (PDT)
Received: from process_milters-daemon.mr55p01nt-mmpp06.apple.com by mr55p01nt-mmpp06.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) id <0SGD0C100V8Q4H00@mr55p01nt-mmpp06.apple.com>; Wed, 10 Jul 2024 01:18:43 +0000 (GMT)
X-Va-A:
X-Va-T-CD: 01a37c4388be431533d60b3d58eeb299
X-Va-E-CD: 5cf39cb25ea55807a09ffe96584efa81
X-Va-R-CD: aba31ae5ac7e189f9027924b1c3a1f9f
X-Va-ID: e8c31fce-77db-4da7-b45e-de73d40462fb
X-Va-CD: 0
X-V-A:
X-V-T-CD: 01a37c4388be431533d60b3d58eeb299
X-V-E-CD: 5cf39cb25ea55807a09ffe96584efa81
X-V-R-CD: aba31ae5ac7e189f9027924b1c3a1f9f
X-V-ID: c75218c1-8ff9-4203-966b-f2cbc54300a6
X-V-CD: 0
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-09_12,2024-07-09_01,2024-05-17_01
Received: from smtpclient.apple ([17.234.87.238]) by mr55p01nt-mmpp06.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPSA id <0SGD0C23PVN6CU00@mr55p01nt-mmpp06.apple.com>; Wed, 10 Jul 2024 01:18:43 +0000 (GMT)
Content-type: text/plain; charset="utf-8"
MIME-version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
From: Tommy Pauly <tpauly@apple.com>
In-reply-to: <7e87de98-6b21-433f-a56f-456557c64a86@betaapp.fastmail.com>
Date: Tue, 09 Jul 2024 18:18:32 -0700
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-transfer-encoding: quoted-printable
Message-id: <EB88DA6B-0691-4A0D-93A4-8CE23472E9DC@apple.com>
References: <CAPDSy+5UU=GSFWTdrkHW7RXNL8pr5KWtLfp8zjExsZvvGczfEw@mail.gmail.com> <7e87de98-6b21-433f-a56f-456557c64a86@betaapp.fastmail.com>
To: Martin Thomson <mt@lowentropy.net>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-W3C-Hub-DKIM-Status: validation passed: (address=tpauly@apple.com domain=apple.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.144, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DMARC_PASS=-0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLACK=1.7, URIBL_DBL_BLOCKED_OPENDNS=0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: pan.w3.org 1sRLyv-006mLg-1A c3d3f5cf317878ca03620a1d845b980b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal: a new WRAP UP capsule
Archived-At: <https://www.w3.org/mid/EB88DA6B-0691-4A0D-93A4-8CE23472E9DC@apple.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/52067
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>


> On Jul 9, 2024, at 6:10 PM, Martin Thomson <mt@lowentropy.net> wrote:
> 
> Hi David,
> 
> I think that this is reasonable - if your goal is to suggest that clients terminate a single CONNECT flow, rather than the entire connection.  This could also be achieved with GOAWAY, but it will affect multiple flows.  The draft doesn't say this, so maybe I'm missing something important.
> 
> How common is it to establish multiple flows through a single proxy?  That might depend on use case (CONNECT-IP might be more profligate than CONNECT-UDP, say).

I think you'd generally see the most for CONNECT-TCP and CONNECT-UDP, when you’re proxying an application like a web browser. CONNECT-IP would generally be much more limited, and in some cases just be a big VPN tunnel.

Tommy

> 
> Cheers,
> Martin
> 
> On Sat, Jul 6, 2024, at 08:29, David Schinazi wrote:
>> Hi HTTP enthusiasts,
>> 
>> Over in MASQUE land, as we're deploying our two-hop proxies, we decided 
>> we needed to put a cap on how many bytes we'd allow per 
>> token-authenticated connect-udp tunnel. Enforcing a hard limit is easy, 
>> but the issue is that if the proxy aborts the tunnel halfway through, 
>> the web browser could be halfway through a proxied request. Since the 
>> browser doesn't know if the half-finished request was acted on or not, 
>> it can't retry it, so it has to surface the error to the user. Instead, 
>> we want the proxy to be able to warn the browser that this will happen 
>> soon, so that the browser can establish a new tunnel with a new token, 
>> and start sending new requests there. Conceptually this is a little 
>> like GOAWAY, but instead of "please wrap up this connection", it's 
>> "please wrap up this tunnel stream". It uses capsules, since this is a 
>> message from proxy to client. Here's a draft with diagrams:
>> 
>> https://datatracker.ietf.org/doc/draft-schinazi-httpbis-wrap-up/
>> https://davidschinazi.github.io/draft-schinazi-httpbis-wrap-up/draft-schinazi-httpbis-wrap-up.html
>> 
>> I'd love to hear your thoughts.
>> 
>> Thanks,
>> David
>