<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.32 (Ruby 2.6.4) -->
<?rfc-ext html-pretty-print="prettyprint https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"?>
<rfc xmlns:x="http://purl.org/net/xml2rfc/ext"
      category="std"
      consensus="true"
      docName="draft-ietf-httpbis-alias-proxy-status-00"
      ipr="trust200902"
      sortRefs="true"
      symRefs="true"
      tocInclude="true">
   <x:feedback template="mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22\&amp;amp;body=%3c{ref}%3e:"/>
   <front>
      <title abbrev="DNS Aliases Proxy-Status">HTTP Proxy-Status Parameter for Next-Hop Aliases</title>
      <author fullname="Tommy Pauly" initials="T." surname="Pauly">
         <organization>Apple, Inc.</organization>
         <address>
            <email>tpauly@apple.com</email>
         </address>
      </author>
      <date year="2023" month="January" day="4"/>
      <area>Applications and Real-Time</area>
      <workgroup>HTTP</workgroup>
      <keyword>proxy status</keyword>
      <abstract><?line 33?>
         <t>This document defines an HTTP Proxy-Status Parameter that contains a list of aliases received over DNS when establishing a connection to the next hop.</t>
      </abstract>
      <note removeInRFC="true" title="About This Document">
         <t>Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-ietf-httpbis-alias-proxy-status/"/>.</t>
         <t>Discussion of this document takes place on the HTTP Working Group mailing list (<eref target="mailto:ietf-http-wg@w3.org"/>), which is archived at <eref target="https://lists.w3.org/Archives/Public/ietf-http-wg/"/>. Working Group information can be found at <eref target="https://httpwg.org/"/>.</t>
         <t>Source for this draft and an issue tracker can be found at <eref target="https://github.com/httpwg/http-extensions/labels/alias-proxy-status"/>.</t>
      </note>
   </front>
   <middle><?line 38?>
      <section anchor="introduction">
         <name>Introduction</name>
         <t>The Proxy-Status HTTP response field <xref target="PROXY-STATUS"/> allows proxies to convey information about how a proxied request was handled in HTTP responses sent to clients. It defines a set of parameters that provide information, such as the name of the next hop.</t>
         <t>
            <xref target="PROXY-STATUS"/> defines a <spanx style="verb">next-hop</spanx> parameter, which can contain a hostname, IP address, or alias of the next hop. This parameter can contain only one such item, so it cannot be used to communicate a chain of aliases encountered during DNS resolution when connecting to the next hop.</t>
         <t>Knowing the full chain of aliases that were used during DNS resolution is particularly useful for clients of forward proxies, in which the client is requesting to connect to a specific target hostname using the CONNECT method <xref target="HTTP"/> or UDP proxying <xref target="CONNECT-UDP"/>. DNS aliases can be used to "cloak" hosts that perform tracking or malicious activity behind more innocuous hostnames, and clients such as web browsers use the chain of DNS aliases to influence behavior like cookie usage policies <xref target="COOKIES"/> or blocking of malicious hosts.</t>
         <t>This document allows clients to receive the chain of DNS aliases for the next hop by including the list of names in a new <spanx style="verb">next-hop-aliases</spanx> Proxy-Status parameter.</t>
         <section anchor="requirements">
            <name>Requirements</name>
            <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/>
               <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.<?line -6?></t>
         </section>
      </section>
      <section anchor="parameter">
         <name>next-hop-aliases Parameter</name>
         <t>The <spanx style="verb">next-hop-aliases</spanx> parameter's value is a String that contains one or more DNS names in a comma-separated list. The items in the list include all names received in CNAME records <xref target="DNS"/> during the course of resolving the next hop's hostname using DNS. Since DNS names can include comma (<spanx style="verb">,</spanx>) characters in them, any commas that appear in a DNS names MUST be represented using a percent-encoded <spanx style="verb">%2C</spanx> value instead. The aliases SHOULD appear in the order in which they were received in DNS; that is, if a name has a CNAME record with a first alias, which has a CNAME record for a second alias, the aliases should appear in that order.</t>
         <t>For example:</t>
         <figure>
            <sourcecode type="example">
Proxy-Status: proxy.example.net; next-hop=2001:db8::1;
    next-hop-aliases="tracker.example.com.,service1.example-cdn.com."
</sourcecode>
         </figure>
         <t>indicates that proxy.example.net, which used the IP address "2001:db8::1" as the next hop for this request, encountered the CNAMEs "tracker.example.com." and "service1.example-cdn.com" in the DNS resolution chain. Note that while this example includes both the <spanx style="verb">next-hop</spanx> and <spanx style="verb">next-hop-aliases</spanx> parameters, <spanx style="verb">next-hop-aliases</spanx> can be included without including <spanx style="verb">next-hop</spanx>.</t>
         <t>The <spanx style="verb">next-hop-aliases</spanx> parameter only applies when DNS was used to resolve the next hop's name, and does not apply in all situations. Clients can use the information in this parameter to determine how to use the connection established through the proxy, but need to gracefully handle situations in which this parameter is not present.</t>
      </section>
      <section anchor="sec-considerations">
         <name>Security Considerations</name>
         <t>The <spanx style="verb">next-hop-aliases</spanx> parameter does not include any DNSSEC information or imply that DNSSEC was used. The information included in the parameter can only be trusted to be valid insofar as the client trusts its proxy to provide accurate information. This information is intended to be used as a hint, and SHOULD NOT be used for making security decisions about the identity of a resource accessed through the proxy.</t>
      </section>
      <section anchor="iana-considerations">
         <name>IANA Considerations</name>
         <t>This document registers the "next-hop-aliases" parameter in the "HTTP Proxy-Status Parameters" registry &lt;<eref target="https://www.iana.org/assignments/http-proxy-status"/>&gt;.</t>
         <dl>
            <dt>Name:</dt>
            <dd>
               <t>next-hop-aliases</t>
            </dd>
            <dt>Description:</dt>
            <dd>
               <t>A string containing one or more DNS alises used to establish a proxied connection to the next hop.</t>
            </dd>
            <dt>Reference:</dt>
            <dd>
               <t>This document</t>
            </dd>
         </dl>
      </section>
   </middle>
   <back>
      <references title="Normative References">
         <reference anchor="PROXY-STATUS">
            <front>
               <title>The Proxy-Status HTTP Response Header Field</title>
               <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
               <author fullname="P. Sikora" initials="P." surname="Sikora"/>
               <date month="June" year="2022"/>
            </front>
            <seriesInfo name="RFC" value="9209"/>
            <seriesInfo name="DOI" value="10.17487/RFC9209"/>
         </reference>
         <reference anchor="HTTP">
            <front>
               <title>HTTP Semantics</title>
               <author fullname="R. Fielding"
                        initials="R."
                        role="editor"
                        surname="Fielding"/>
               <author fullname="M. Nottingham"
                        initials="M."
                        role="editor"
                        surname="Nottingham"/>
               <author fullname="J. Reschke"
                        initials="J."
                        role="editor"
                        surname="Reschke"/>
               <date month="June" year="2022"/>
            </front>
            <seriesInfo name="STD" value="97"/>
            <seriesInfo name="RFC" value="9110"/>
            <seriesInfo name="DOI" value="10.17487/RFC9110"/>
         </reference>
         <reference anchor="CONNECT-UDP">
            <front>
               <title>Proxying UDP in HTTP</title>
               <author fullname="D. Schinazi" initials="D." surname="Schinazi"/>
               <date month="August" year="2022"/>
            </front>
            <seriesInfo name="RFC" value="9298"/>
            <seriesInfo name="DOI" value="10.17487/RFC9298"/>
         </reference>
         <reference anchor="RFC2119">
            <front>
               <title>Key words for use in RFCs to Indicate Requirement Levels</title>
               <author fullname="S. Bradner" initials="S." surname="Bradner"/>
               <date month="March" year="1997"/>
            </front>
            <seriesInfo name="BCP" value="14"/>
            <seriesInfo name="RFC" value="2119"/>
            <seriesInfo name="DOI" value="10.17487/RFC2119"/>
         </reference>
         <reference anchor="RFC8174">
            <front>
               <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
               <author fullname="B. Leiba" initials="B." surname="Leiba"/>
               <date month="May" year="2017"/>
            </front>
            <seriesInfo name="BCP" value="14"/>
            <seriesInfo name="RFC" value="8174"/>
            <seriesInfo name="DOI" value="10.17487/RFC8174"/>
         </reference>
         <reference anchor="DNS">
            <front>
               <title>Common DNS Operational and Configuration Errors</title>
               <author fullname="D. Barr" initials="D." surname="Barr"/>
               <date month="February" year="1996"/>
            </front>
            <seriesInfo name="RFC" value="1912"/>
            <seriesInfo name="DOI" value="10.17487/RFC1912"/>
         </reference>
      </references>
      <references title="Informative References">
         <reference anchor="COOKIES">
            <front>
               <title>HTTP State Management Mechanism</title>
               <author fullname="A. Barth" initials="A." surname="Barth"/>
               <date month="April" year="2011"/>
            </front>
            <seriesInfo name="RFC" value="6265"/>
            <seriesInfo name="DOI" value="10.17487/RFC6265"/>
         </reference>
      </references>
   </back>
</rfc>
