Re: HTTP Proxy-Status Parameter for Next-Hop Aliases

Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com> Thu, 01 December 2022 05:52 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 B0466C13A076 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 30 Nov 2022 21:52:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.648
X-Spam-Level:
X-Spam-Status: No, score=-7.648 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 8EsxwbBbVzcf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 30 Nov 2022 21:52:13 -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 B52CDC13A069 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 30 Nov 2022 21:52:13 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1p0cSX-004V2a-0j for ietf-http-wg-dist@listhub.w3.org; Thu, 01 Dec 2022 05:50:09 +0000
Resent-Date: Thu, 01 Dec 2022 05:50:09 +0000
Resent-Message-Id: <E1p0cSX-004V2a-0j@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <gs-lists-ietf-http-wg@gluelogic.com>) id 1p0cSV-004V1q-KW for ietf-http-wg@listhub.w3.org; Thu, 01 Dec 2022 05:50:07 +0000
Received: from smtp1.atof.net ([52.86.233.228]) by titan.w3.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from <gs-lists-ietf-http-wg@gluelogic.com>) id 1p0cST-003434-UK for ietf-http-wg@w3.org; Thu, 01 Dec 2022 05:50:07 +0000
X-Spam-Language: en
X-Spam-Relay-Country:
X-Spam-DCC: B=; R=smtp1.atof.net 1102; Body=1 Fuz1=1 Fuz2=1
X-Spam-RBL:
X-Spam-PYZOR: Reported 0 times.
Date: Thu, 01 Dec 2022 00:49:44 -0500
From: Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com>
To: Tommy Pauly <tpauly@apple.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <Y4hAeOHnxIIV4zGd@xps13>
References: <4D32628F-B514-4B9E-9F50-9FDA652A59B6@apple.com> <B18ACDAA-3B4C-48C7-B759-749EDF3FAA4E@apple.com> <C91FC9A7-661D-4E8B-BE09-AD96EE7E3C4C@mnot.net> <BC9076D0-8F74-4D2D-B933-81BE5D1ED52B@apple.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <BC9076D0-8F74-4D2D-B933-81BE5D1ED52B@apple.com>
Received-SPF: pass client-ip=52.86.233.228; envelope-from=gs-lists-ietf-http-wg@gluelogic.com; helo=smtp1.atof.net
X-W3C-Hub-Spam-Status: No, score=-6.2
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1p0cST-003434-UK eb1fc4ff982b71f51a1b23113384323b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP Proxy-Status Parameter for Next-Hop Aliases
Archived-At: <https://www.w3.org/mid/Y4hAeOHnxIIV4zGd@xps13>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40587
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/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 30, 2022 at 02:13:12PM -0800, Tommy Pauly wrote:
> Hello HTTP,
> 
> Following up on this discussion, I presented this at Masque at IETF 115, and got the feedback that this would be fit more in HTTP, and also that it should just be a simpler proxy-status parameter to include only the alias name chain (generally, the CNAME chain).
> 
> I’ve revised the document, and it’s super short — just defining a “next-hop-aliases” parameter, which is a list of names.
> 
> https://www.ietf.org/archive/id/draft-pauly-httpbis-alias-proxy-status-00.html
> https://datatracker.ietf.org/doc/draft-pauly-httpbis-alias-proxy-status/
> 
> There was also discussion in the meeting about having more work on broader solutions to get rich and complex DNS information back from proxies, but I’d like to get this simple proxy-status parameter registered separately. I’d appreciate people’s reviews and thoughts.


My first impression is that this is similar to RFC 7239 Forwarded,
but in the reverse direction and more limited to a single hop.  Also,
RFC 9110 "Via" does not seem extensible enough for the proposed use.

Should Proxy-Status syntax be similar to Forwarded?
Should Proxy-Status permit more than one (forward) hop?

I like that Forwarded has extensible params per hop.
However, Forwarded is not permitted in response headers,
and is not recommended for use when TRACE is enabled.

https://datatracker.ietf.org/doc/html/rfc7239#section-4
RFC 7239 Forwarded
Section 4
"Forwarded" is only for use in HTTP requests and is not to be used in HTTP responses.

Cheers, Glenn


> > On Oct 12, 2022, at 4:02 PM, Mark Nottingham <mnot@mnot.net> wrote:
> > 
> > Speaking personally -- I don't have any strong feelings either way, as long as appropriate communication happens. If the use cases are for non-MASQUE proxying too (and it seems like they are), that might tilt it slightly towards HTTP.
> > 
> > Cheers,
> > 
> > 
> >> On 11 Oct 2022, at 2:46 am, Tommy Pauly <tpauly@apple.com> wrote:
> >> 
> >> Hi HTTP,
> >> 
> >> I wanted to share this draft with this group, which I’ve initially started discussion on in MASQUE.
> >> 
> >> It’s a simple parameter addition to proxy-status, to let the proxy send back the IP and CNAME/alias chain it used to reach the next hop. This is useful for clients of CONNECT/CONNECT-UDP proxies that want to apply policies to specific IPs and CNAMEs (for tracker detection, cookie rules, etc).
> >> 
> >> In addition to any reviews and feedback on the technical content, we’d like to know if this is something that the HTTPbis WG would like to own, or if it is fine letting the work happen in MASQUE and get review from HTTP.
> >> 
> >> Best,
> >> Tommy
> >> 
> >>> Begin forwarded message:
> >>> 
> >>> From: Tommy Pauly <tpauly=40apple.com@dmarc.ietf.org>
> >>> Subject: [Masque] HTTP Proxy-Status Parameter for DNS Information
> >>> Date: October 4, 2022 at 12:29:33 PM PDT
> >>> To: masque@ietf.org
> >>> 
> >>> Hello MASQUErs,
> >>> 
> >>> I wanted to share this document with this group, since it is mainly applicable to MASQUE-style (CONNECT/CONNECT-UDP) proxies.
> >>> 
> >>> Right now, when a client connects to a TCP or UDP server via the proxy using a hostname in the request, it doesn’t perform its own DNS, and thus doesn’t learn about the IP address of the server it ultimately is connected to, or the CNAME / AliasMode chain that was used to get to the IP address of the server. That’s generally fine, but there are use cases where clients may want to know the IP address or CNAMEs to detect cases where trackers are performing CNAME cloaking, etc.
> >>> 
> >>> So, this is a very simple proposal to define a new, optional proxy-status parameter that can let MASQUE-style proxies tell clients about the IP address and CNAME chain from DNS.
> >>> 
> >>> https://www.ietf.org/archive/id/draft-pauly-masque-dns-proxy-status-00.html
> >>> 
> >>> This certainly does not solve all of the use cases where clients may want to know more DNS details (SVCB/HTTPS records for ECH, alpn support, etc), and I expect more work to be needed for those use cases. However, I believe this extra bit of information is something that is incrementally useful, easy to implement, and simple to define.
> >>> 
> >>> Thoughts and feedback welcome!
> >>> 
> >>> Thanks,
> >>> Tommy
> >>> 
> >>>> Begin forwarded message:
> >>>> 
> >>>> From: internet-drafts@ietf.org
> >>>> Subject: New Version Notification for draft-pauly-masque-dns-proxy-status-00.txt
> >>>> Date: October 4, 2022 at 11:01:29 AM PDT
> >>>> To: Tommy Pauly <tpauly@apple.com>
> >>>> 
> >>>> 
> >>>> A new version of I-D, draft-pauly-masque-dns-proxy-status-00.txt
> >>>> has been successfully submitted by Tommy Pauly and posted to the
> >>>> IETF repository.
> >>>> 
> >>>> Name:		draft-pauly-masque-dns-proxy-status
> >>>> Revision:	00
> >>>> Title:		HTTP Proxy-Status Parameter for DNS Information
> >>>> Document date:	2022-10-04
> >>>> Group:		Individual Submission
> >>>> Pages:		5
> >>>> URL:            https://www.ietf.org/archive/id/draft-pauly-masque-dns-proxy-status-00.txt
> >>>> Status:         https://datatracker.ietf.org/doc/draft-pauly-masque-dns-proxy-status/
> >>>> Html:           https://www.ietf.org/archive/id/draft-pauly-masque-dns-proxy-status-00.html
> >>>> Htmlized:       https://datatracker.ietf.org/doc/html/draft-pauly-masque-dns-proxy-status
> >>>> 
> >>>> 
> >>>> Abstract:
> >>>>  This document defines an HTTP Proxy-Status Parameter that contains
> >>>>  the IP address and CNAME chain received over DNS that was used to
> >>>>  establish the connection to the next hop.
> >>>> 
> >>>> Discussion Venues
> >>>> 
> >>>>  This note is to be removed before publishing as an RFC.
> >>>> 
> >>>>  Source for this draft and an issue tracker can be found at
> >>>>  https://github.com/tfpauly/privacy-proxy.
> >>>> 
> >>>> 
> >>>> 
> >>>> 
> >>>> The IETF Secretariat
> >>>> 
> >>>> 
> >>> 
> >>> -- 
> >>> Masque mailing list
> >>> Masque@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/masque
> >> 
> > 
> > --
> > Mark Nottingham   https://www.mnot.net/
> > 
>