Re: [Ohai] DoubleCheck and CONNECT-UDP

Tommy Pauly <tpauly@apple.com> Thu, 28 July 2022 11:13 UTC

Return-Path: <tpauly@apple.com>
X-Original-To: ohai@ietfa.amsl.com
Delivered-To: ohai@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 110C2C15A734; Thu, 28 Jul 2022 04:13:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.991
X-Spam-Level:
X-Spam-Status: No, score=-4.991 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.582, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.com
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 T4EbvaQlPmOG; Thu, 28 Jul 2022 04:12:59 -0700 (PDT)
Received: from ma1-aaemail-dr-lapp01.apple.com (ma1-aaemail-dr-lapp01.apple.com [17.171.2.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F2F29C136330; Thu, 28 Jul 2022 04:12:58 -0700 (PDT)
Received: from pps.filterd (ma1-aaemail-dr-lapp01.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp01.apple.com (8.16.0.42/8.16.0.42) with SMTP id 26SB8pdt017243; Thu, 28 Jul 2022 04:12:58 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=loXa8vVx9xmMwKqPLr1LjwULIxeJypeW49OJi0yAfxc=; b=Nlkm5zVzcKjA1Lvu+BZpR01cTt09N7bdOlKVTU39Iea9W/FLNHvsBmS/Wsx911nK5Da1 l3QPROOMLELZl6QUctvPclNeM+IQpwwQ+KLJ6+PqpsoQicWAzsXMFK1fvMlfq433aWUp tkrg1xridqAXWiRsqeIj3SvtlABhP1nzuvFB73nTHZj1BKdUwv4XM0/gct3wGJxV/xdm CN7mvLY0o0A3rjxRMcUp4U744tWlIyIJ7y/88TPIhyZI6Hylh8ee8inTxbuFKngN/nPZ 1crgTcf+Q+d3YzTegWlVQwuHnSyyS9zz2z5SlRYF+TWgphZ6CFcIcWthmVrlg+JGvYcg oA==
Received: from ma-mailsvcp-mta-lapp01.corp.apple.com (ma-mailsvcp-mta-lapp01.corp.apple.com [10.226.18.133]) by ma1-aaemail-dr-lapp01.apple.com with ESMTP id 3hgfn4n8em-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 28 Jul 2022 04:12:57 -0700
Received: from ma-mailsvcp-mmp-lapp02.apple.com (ma-mailsvcp-mmp-lapp02.apple.com [17.32.222.15]) by ma-mailsvcp-mta-lapp01.corp.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPS id <0RFQ00C6G9TLFI70@ma-mailsvcp-mta-lapp01.corp.apple.com>; Thu, 28 Jul 2022 04:12:57 -0700 (PDT)
Received: from process_milters-daemon.ma-mailsvcp-mmp-lapp02.apple.com by ma-mailsvcp-mmp-lapp02.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) id <0RFQ00R0096STV00@ma-mailsvcp-mmp-lapp02.apple.com>; Thu, 28 Jul 2022 04:12:57 -0700 (PDT)
X-Va-A:
X-Va-T-CD: e72da815dcb01dab2f988f94f1719970
X-Va-E-CD: 67a9621271b995c6f47e644e5f38935a
X-Va-R-CD: f47d7838e67971c473aab2975c0904fb
X-Va-CD: 0
X-Va-ID: e9f365d4-4a39-41b8-9781-682c9daa3c10
X-V-A:
X-V-T-CD: e72da815dcb01dab2f988f94f1719970
X-V-E-CD: 67a9621271b995c6f47e644e5f38935a
X-V-R-CD: f47d7838e67971c473aab2975c0904fb
X-V-CD: 0
X-V-ID: 92c9c582-9675-4c69-8c08-4653da3a6b35
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517, 18.0.883 definitions=2022-07-28_03:2022-07-28, 2022-07-28 signatures=0
Received: from smtpclient.apple (unknown [17.234.143.195]) by ma-mailsvcp-mmp-lapp02.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPSA id <0RFQ00A5C9TLUI00@ma-mailsvcp-mmp-lapp02.apple.com>; Thu, 28 Jul 2022 04:12:57 -0700 (PDT)
From: Tommy Pauly <tpauly@apple.com>
Message-id: <FB169FE9-EADB-40FB-A01B-B63B0ED159D8@apple.com>
Content-type: multipart/alternative; boundary="Apple-Mail=_7ED1E285-335A-4F04-AD61-6A96CD5ED2AB"
MIME-version: 1.0 (Mac OS X Mail 16.0 \(3729.0.22.1.1\))
Date: Thu, 28 Jul 2022 07:12:46 -0400
In-reply-to: <CAHbrMsAM-PRYW0_r_cfdLDBbfWtF1_TJYFnbBV2550K-aqq3Ow@mail.gmail.com>
Cc: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>, ohai@ietf.org
To: Ben Schwartz <bemasc=40google.com@dmarc.ietf.org>
References: <CAHbrMsATSEU0iqybh6vqH-Mv0egJiEhpxA8vEmJNehdE0i3adQ@mail.gmail.com> <D4A56610-9E62-4F5F-BD89-47C78E47EC34@apple.com> <CAHbrMsDVDWHsq4FZz5i+VesJ+1xRO1=uCHQt63N3bGUedt6aNA@mail.gmail.com> <6887563B-7F36-42AA-8FE0-97C5C96687B9@apple.com> <CAHbrMsAM-PRYW0_r_cfdLDBbfWtF1_TJYFnbBV2550K-aqq3Ow@mail.gmail.com>
X-Mailer: Apple Mail (2.3729.0.22.1.1)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517, 18.0.883 definitions=2022-07-28_03:2022-07-28, 2022-07-28 signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/ohai/ap72FoeCnj-ayDt5laBh8l223c8>
Subject: Re: [Ohai] DoubleCheck and CONNECT-UDP
X-BeenThere: ohai@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Oblivious HTTP Application Intermediation <ohai.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ohai>, <mailto:ohai-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ohai/>
List-Post: <mailto:ohai@ietf.org>
List-Help: <mailto:ohai-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ohai>, <mailto:ohai-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Jul 2022 11:13:03 -0000


> On Jul 27, 2022, at 7:00 PM, Ben Schwartz <bemasc=40google.com@dmarc.ietf.org> wrote:
> 
> 
> 
> On Wed, Jul 27, 2022 at 5:43 PM Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org <mailto:40apple.com@dmarc.ietf.org>> wrote:
>> 
>> 
>>> On Jul 27, 2022, at 3:07 PM, Ben Schwartz <bemasc=40google.com@dmarc.ietf.org <mailto:40google.com@dmarc.ietf.org>> wrote:
>>> 
>>> 
>>> 
>>> On Wed, Jul 27, 2022 at 2:25 PM Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org <mailto:40apple.com@dmarc.ietf.org>> wrote:
>>>> Trying to lock people into using CONNECT-UDP to an HTTP/3 server in order for key consistency to work seems to be a “not good” state to end in. Maybe better than locking in CONNECT, but locking in any particular protocol or version seems quite limiting.
>>> 
>>> As a formal matter, I think this is essentially unavoidable in any situation where proxies are in use.  For example, in OHAI, the Relay and Gateway must both support a common HTTP version.  In practice, this likely means that (general-purpose, open) Relays and Gateways will have to support HTTP/1.1 as a de facto baseline.
>> 
>> There needs to be at least one HTTP version that the relay can use to speak to the gateway, yes. However, I certainly don’t see any reason why these would need to use HTTP/1.1.
> 
> This is my prediction of how the ecosystem would evolve absent any recommendation in the spec.  Neither Gateway nor Relay operators would feel confident that they could disable HTTP/1.1 without breaking some counterparts, since nothing prohibits a compliant Gateway or Relay from being HTTP/1.1-only.  (This outcome is probably fine, since supporting HTTP/1.1 is mostly harmless.)

For a relay and gateway, HTTP/1.1 isn’t quite so harmless from a resource consumption aspect. If a relay is handling millions of requests, putting these onto HTTP/2 or HTTP/3 connections that can more efficiently multiplex is preferable to opening up tons of parallel sockets between the two boxes, or adding a lot of latency via head-of-line blocking.

This is the same reason that using HTTP/1.1 for DoH is a pretty bad idea compared to H2 or H3.

Gateways and Relays are all new things. I don’t see a reason either would ever need to support HTTP/1.1. I think the ones we are using are only ever using at least HTTP/2, and there would be no intention of going backwards.

>  
>> Relays can be picky about what gateways they allow
> 
> My focus here is on Relays that allow (authorized) users to reach any Gateway on the internet (and similarly, Gateways that are reachable from any Relay).  I think such "universal relays" are very natural, as a companion service to privacy proxies that similarly allow access to arbitrary destinations.

I’m not entirely sure — I think there will be relays that are not entirely special-purpose, but they likely will need some established relationship to verify the stance of a gateway. I.e., to be added to the ACLs, establish any mutual authentication that is needed, etc. That may be something that can be automated to a degree, or just audited.

> 
> Limited-purpose Gateways and Relays, which only support a fixed set of approved counterparts, are in a very different position.  If the client has to know which Gateways are usable with the Relay, the service that provides this information to the client might also be trusted to provide authentic, consistent KeyConfigs.
>  
>> — and I’d certainly advocate that any sensible implementation SHOULD NOT allow talking to any gateway that doesn’t at least support HTTP/2.
> 
> We can certainly put that in draft-ietf-ohai-ohttp, but it isn't there yet!

I don’t think this needs to be in that draft — I think we let implementations do what they need to, since there are ways to negotiate version. But the base OHTTP assumes you know what you’re doing and how you set up your relays and gateways. If we have new documents that talk about mixing and matching deployments, that deployment guide can give more advice.

>>>> I don’t think that it follows that if we don’t have CONNECT-UDP, the clients would directly fetch the key config from your proposed SDH resource.
>>>> 
>>>> To perform double checking, I think it just matters that we have one check that uses a TLS-authenticated connection to the authority for the key config, and one other check that uses a cached version on a TLS-authenticated connection to another entity that is not the authority for the key config; AND that these checks are done in such a way that the TLS-authenticated connection to the config authority does not get to track or identify the user.
>>> 
>>> I think that's an accurate description of the requirements, but I don't think documenting the requirements is sufficient.  If we don't standardize the proxy/relay protocols and their configuration, that essentially leaves the users locked into a single relay service implementation.  I don't believe that users should have to use the relay service operated by, say, their handset manufacturer or browser vendor.
>> 
>> I agree that users don’t need to be limited to the relay service provided by a specific manufacturer. But they do need to use protocols that their client implementation is willing to support.
> 
> If we don't standardize what those protocols are, an independent Relay operator can't be sure that they are compatible with DoubleCheck clients.
> 
> However, given the feedback so far, I think the most likely outcome is that the draft will mention CONNECT and CONNECT-UDP, without mandating either, and almost everyone will end up implementing both.  That seems like a suboptimal outcome, but it's tolerable.

I think the client should be able to use whatever proxying mechanism its relays/proxies support, and what the config lookup resource supports. The double-check mechanism shouldn’t need to rely on what the proxying landscape looks like, just that there is one.

> 
>> If the requirement is that a client needs to access the resource that is authoritative for the OHTTP key configuration, it should be free to access that using any secure proxy protocol over which it can run a TLS connection to the key configuration resource, and it can use normal ALPN selection to know which HTTP version to use to the key configuration resource.
> 
> ALPN doesn't cover TCP vs. UDP selection.

Doesn’t it? If I get ALPNs of both h2 and h3 in my SVCB records, don’t I know which to use?

> 
> In practice, if we don't offer any recommendations regarding HTTP versions, the ecosystem will converge on something that works.  It just might not be the most efficient outcome.

Yes, the ecosystem will converge and continue to evolve, and I expect that it will do the right thing for now, since no one should have an incentive to support old versions like HTTP/1.1 for these new services.

>>>> What method you use to proxy a connection is entirely up to the client’s favorite proxying method, I think. Let’s not try to drag specific transports into this.
>>> 
>>> We can let the market decide the HTTP version, but I do think we should specify how the transport proxy is configured.  Otherwise it becomes very difficult for there to be multiple interoperable implementations of the relay service.
>> 
>> For the reasons above, I strongly disagree. We have ALPN and other ways to know what version is supported. There’s a reason we use HTTP and TLS here — we can run secure HTTP connections and let the version evolve.
> 
> I'm not talking about the HTTP version; I'm talking about an Access Service Description (or an equivalent standardized configuration) for the Relay.  A standardized Relay configuration system is necessary if independent operators are going to reasonably be able to provide clients with an affiliated Relay/cache, transport proxy(s), and DoH server.  This standard can potentially support multiple transport proxy protocols (e.g. CONNECT and CONNECT-UDP), at the risk of partitioning the anonymity set due to varying client transport support.

This is a conversation that belongs to the larger scope of how we know configuration. I think there can be reasonable baselines — that we say a baseline CONNECT-like relay always supports both CONNECT and CONNECT-UDP to be able to access both TCP and QUIC upstream hosts that are allowed by the relay.

But, overall, I don’t think that the mechanism of double-check needs to care — it just says “you have some relay or proxy you’ve learned about, use it in this way”. That would allow us, for example, to update and have -bis relay/proxy documents without needing to rev or change the document that explains that you should double check key configs.

Tommy

> -- 
> Ohai mailing list
> Ohai@ietf.org <mailto:Ohai@ietf.org>
> https://www.ietf.org/mailman/listinfo/ohai