<?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.7.19 (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-unprompted-auth-12"
      ipr="trust200902"
      sortRefs="true"
      submissionType="IETF"
      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>The Concealed HTTP Authentication Scheme</title>
      <author fullname="David Schinazi" initials="D." surname="Schinazi">
         <organization>Google LLC</organization>
         <address>
            <postal>
               <street>1600 Amphitheatre Parkway</street>
               <city>Mountain View</city>
               <region>CA</region>
               <code>94043</code>
               <country>United States of America</country>
            </postal>
            <email>dschinazi.ietf@gmail.com</email>
         </address>
      </author>
      <author fullname="David M. Oliver" initials="D." surname="Oliver">
         <organization>Guardian Project</organization>
         <address>
            <email>david@guardianproject.info</email>
            <uri>https://guardianproject.info</uri>
         </address>
      </author>
      <author fullname="Jonathan Hoyland" initials="J." surname="Hoyland">
         <organization>Cloudflare Inc.</organization>
         <address>
            <email>jonathan.hoyland@gmail.com</email>
         </address>
      </author>
      <date day="19" month="September" year="2024"/>
      <area>Web and Internet Transport</area>
      <workgroup>HTTPBIS</workgroup>
      <keyword>secure</keyword>
      <keyword>tunnels</keyword>
      <keyword>masque</keyword>
      <keyword>http-ng</keyword>
      <abstract><?line 93?>
         <t>Most HTTP authentication schemes are probeable in the sense that it is possible for an unauthenticated client to probe whether an origin serves resources that require authentication. It is possible for an origin to hide the fact that it requires authentication by not generating Unauthorized status codes, however that only works with non-cryptographic authentication schemes: cryptographic signatures require a fresh nonce to be signed. Prior to this document, there was no existing way for the origin to share such a nonce without exposing the fact that it serves resources that require authentication. This document defines a new non-probeable cryptographic authentication scheme.</t>
      </abstract>
      <note removeInRFC="true" title="About This Document">
         <t>The latest revision of this draft can be found at <eref target="https://httpwg.org/http-extensions/draft-ietf-httpbis-unprompted-auth.html"/>. Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-ietf-httpbis-unprompted-auth/"/>.</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/unprompted-auth"/>.</t>
      </note>
   </front>
   <middle><?line 105?>
      <section anchor="introduction">
         <name>Introduction</name>
         <t>HTTP authentication schemes (see <xref section="11" sectionFormat="of" target="HTTP"/>) allow origins to restrict access for some resources to only authenticated requests. While these schemes commonly involve a challenge where the origin asks the client to provide authentication information, it is possible for clients to send such information unprompted. This is particularly useful in cases where an origin wants to offer a service or capability only to "those who know" while all others are given no indication the service or capability exists. Such designs rely on an externally-defined mechanism by which keys are distributed. For example, a company might offer remote employee access to company services directly via its website using their employee credentials, or offer access to limited special capabilities for specific employees, while making discovering (or probing for) such capabilities difficult. As another example, members of less well-defined communities might use more ephemeral keys to acquire access to geography- or capability-specific resources, as issued by an entity whose user base is larger than the available resources can support (by having that entity metering the availability of keys temporally or geographically).</t>
         <t>While digital-signature-based HTTP authentication schemes already exist (e.g., <xref target="HOBA"/>), they rely on the origin explicitly sending a fresh challenge to the client, to ensure that the signature input is fresh. That makes the origin probeable as it sends the challenge to unauthenticated clients. This document defines a new signature-based authentication scheme that is not probeable.</t>
         <section anchor="conventions">
            <name>Conventions and Definitions</name>
            <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" 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.</t>
            <?line -18?>
            <t>This document uses the notation from <xref section="1.3" sectionFormat="of" target="QUIC"/>.</t>
         </section>
      </section>
      <section anchor="the-concealed-authentication-scheme">
         <name>The Concealed Authentication Scheme</name>
         <t>This document defines the "Concealed" HTTP authentication scheme. It uses asymmetric cryptography. Clients possess a key ID and a public/private key pair, and origin servers maintain a mapping of authorized key IDs to associated public keys.</t>
         <t>The client uses a TLS keying material exporter to generate data to be signed (see <xref target="client"/>) then sends the signature using the Authorization (or Proxy-Authorization) header field (see <xref section="11" sectionFormat="of" target="HTTP"/>). The signature and additional information are exchanged using authentication parameters (see <xref target="auth-params"/>). Once the server receives these, it can check whether the signature validates against an entry in its database of known keys. The server can then use the validation result to influence its response to the client, for example by restricting access to certain resources.</t>
      </section>
      <section anchor="client">
         <name>Client Handling</name>
         <t>When a client wishes to use the Concealed HTTP authentication scheme with a request, it <bcp14>SHALL</bcp14> compute the authentication proof using a TLS keying material exporter with the following parameters:</t>
         <t>
            <list style="symbols">
               <t>the label is set to "EXPORTER-HTTP-Concealed-Authentication"</t>
               <t>the context is set to the structure described in <xref target="context"/>
               </t>
               <t>the exporter output length is set to 48 bytes (see <xref target="output"/>)</t>
            </list>
         </t>
         <t>Note that TLS 1.3 keying material exporters are defined in <xref section="7.5" sectionFormat="of" target="TLS"/>, while TLS 1.2 keying material exporters are defined in <xref target="KEY-EXPORT"/>.</t>
         <section anchor="context">
            <name>Key Exporter Context</name>
            <t>The TLS key exporter context is described in <xref target="fig-context"/>, using the notation from <xref section="1.3" sectionFormat="of" target="QUIC"/>:</t>
            <figure anchor="fig-context" title="Key Exporter Context Format">
               <artwork>
  Signature Algorithm (16),
  Key ID Length (i),
  Key ID (..),
  Public Key Length (i),
  Public Key (..),
  Scheme Length (i),
  Scheme (..),
  Host Length (i),
  Host (..),
  Port (16),
  Realm Length (i),
  Realm (..),
</artwork>
            </figure>
            <t>The key exporter context contains the following fields:</t>
            <dl>
               <dt>Signature Algorithm:</dt>
               <dd>
                  <t>The signature scheme sent in the <spanx style="verb">s</spanx> Parameter (see <xref target="parameter-s"/>).</t>
               </dd>
               <dt>Key ID:</dt>
               <dd>
                  <t>The key ID sent in the <spanx style="verb">k</spanx> Parameter (see <xref target="parameter-k"/>).</t>
               </dd>
               <dt>Public Key:</dt>
               <dd>
                  <t>The public key used by the server to validate the signature provided by the client. Its encoding is described in <xref target="public-key-encoding"/>.</t>
               </dd>
               <dt>Scheme:</dt>
               <dd>
                  <t>The scheme for this request, encoded using the format of the scheme portion of a URI as defined in <xref section="3.1" sectionFormat="of" target="URI"/>.</t>
               </dd>
               <dt>Host:</dt>
               <dd>
                  <t>The host for this request, encoded using the format of the host portion of a URI as defined in <xref section="3.2.2" sectionFormat="of" target="URI"/>.</t>
               </dd>
               <dt>Port:</dt>
               <dd>
                  <t>The port for this request, encoded in network byte order. Note that the port is either included in the URI, or is the default port for the scheme in use; see <xref section="3.2.3" sectionFormat="of" target="URI"/>.</t>
               </dd>
               <dt>Realm:</dt>
               <dd>
                  <t>The realm of authentication that is sent in the realm authentication parameter (<xref section="11.5" sectionFormat="of" target="HTTP"/>). If the realm authentication parameter is not present, this <bcp14>SHALL</bcp14> be empty. This document does not define a means for the origin to communicate a realm to the client. If a client is not configured to use a specific realm, it <bcp14>SHALL</bcp14> use an empty realm and <bcp14>SHALL NOT</bcp14> send the realm authentication parameter.</t>
               </dd>
            </dl>
            <t>The Signature Algorithm and Port fields are encoded as unsigned 16-bit integers in network byte order. The Key ID, Public Key, Scheme, Host, and Realm fields are length prefixed strings; they are preceded by a Length field that represents their length in bytes. These length fields are encoded using the variable-length integer encoding from <xref section="16" sectionFormat="of" target="QUIC"/> and <bcp14>MUST</bcp14> be encoded in the minimum number of bytes necessary.</t>
            <section anchor="public-key-encoding">
               <name>Public Key Encoding</name>
               <t>Both the "Public Key" field of the TLS key exporter context (see above) and the <spanx style="verb">a</spanx> Parameter (see <xref target="parameter-a"/>) carry the same public key. The encoding of the public key is determined by the Signature Algorithm in use as follows:</t>
               <dl>
                  <dt>RSASSA-PSS algorithms:</dt>
                  <dd>
                     <t>The public key is an RSAPublicKey structure <xref target="PKCS1"/> encoded in DER <xref target="X.690"/>. BER encodings which are not DER <bcp14>MUST</bcp14> be rejected.</t>
                  </dd>
                  <dt>ECDSA algorithms:</dt>
                  <dd>
                     <t>The public key is a UncompressedPointRepresentation structure defined in <xref section="4.2.8.2" sectionFormat="of" target="TLS"/>, using the curve specified by the SignatureScheme.</t>
                  </dd>
                  <dt>EdDSA algorithms:</dt>
                  <dd>
                     <t>The public key is the byte string encoding defined in <xref target="EdDSA"/>.</t>
                  </dd>
               </dl>
               <t>This document does not define the public key encodings for other algorithms. In order for a SignatureScheme to be usable with the Concealed HTTP authentication scheme, its public key encoding needs to be defined in a corresponding document.</t>
            </section>
         </section>
         <section anchor="output">
            <name>Key Exporter Output</name>
            <t>The key exporter output is 48 bytes long. Of those, the first 32 bytes are part of the input to the signature and the next 16 bytes are sent alongside the signature. This allows the recipient to confirm that the exporter produces the right values. This is described in <xref target="fig-output"/>, using the notation from <xref section="1.3" sectionFormat="of" target="QUIC"/>:</t>
            <figure anchor="fig-output" title="Key Exporter Output Format">
               <artwork>
  Signature Input (256),
  Verification (128),
</artwork>
            </figure>
            <t>The key exporter output contains the following fields:</t>
            <dl>
               <dt>Signature Input:</dt>
               <dd>
                  <t>This is part of the data signed using the client's chosen asymmetric private key (see <xref target="computation"/>).</t>
               </dd>
               <dt>Verification:</dt>
               <dd>
                  <t>The verification is transmitted to the server using the <spanx style="verb">v</spanx> Parameter (see <xref target="parameter-v"/>).</t>
               </dd>
            </dl>
         </section>
         <section anchor="computation">
            <name>Signature Computation</name>
            <t>Once the Signature Input has been extracted from the key exporter output (see <xref target="output"/>), it is prefixed with static data before being signed. The signature is computed over the concatenation of:</t>
            <t>
               <list style="symbols">
                  <t>A string that consists of octet 32 (0x20) repeated 64 times</t>
                  <t>The context string "HTTP Concealed Authentication"</t>
                  <t>A single 0 byte which serves as a separator</t>
                  <t>The Signature Input extracted from the key exporter output (see <xref target="output"/>)</t>
               </list>
            </t>
            <t>For example, if the Signature Input has all its 32 bytes set to 01, the content covered by the signature (in hexadecimal format) would be:</t>
            <figure anchor="fig-sig-example" title="Example Content Covered by Signature">
               <artwork>
2020202020202020202020202020202020202020202020202020202020202020
2020202020202020202020202020202020202020202020202020202020202020
48545450205369676E61747572652041757468656E7469636174696F6E
00
0101010101010101010101010101010101010101010101010101010101010101
</artwork>
            </figure>
            <t>The purpose of this static prefix is to mitigate issues that could arise if authentication asymmetric keys were accidentally reused across protocols (even though this is forbidden, see <xref target="security"/>). This construction mirrors that of the TLS 1.3 CertificateVerify message defined in <xref section="4.4.3" sectionFormat="of" target="TLS"/>.</t>
            <t>The resulting signature is then transmitted to the server using the <spanx style="verb">p</spanx> Parameter (see <xref target="parameter-p"/>).</t>
         </section>
      </section>
      <section anchor="auth-params">
         <name>Authentication Parameters</name>
         <t>This specification defines the following authentication parameters.</t>
         <t>All of the byte sequences below are encoded using base64url (see <xref section="5" sectionFormat="of" target="BASE64"/>) without quotes and without padding. In other words, the values of these byte-sequence authentication parameters <bcp14>MUST NOT</bcp14> include any characters other than ASCII letters, digits, dash and underscore.</t>
         <t>The integer below is encoded without a minus and without leading zeroes. In other words, the value of this integer authentication parameter <bcp14>MUST NOT</bcp14> include any characters other than digits, and <bcp14>MUST NOT</bcp14> start with a zero unless the full value is "0".</t>
         <t>Using the syntax from <xref target="ABNF"/>:</t>
         <figure anchor="fig-param" title="Authentication Parameter Value ABNF">
            <artwork>
concealed-byte-sequence-param-value = *( ALPHA / DIGIT / "-" / "_" )
concealed-integer-param-value =  %x31-39 1*4( DIGIT ) / "0"
</artwork>
         </figure>
         <section anchor="parameter-k">
            <name>The k Parameter</name>
            <t>The <bcp14>REQUIRED</bcp14> "k" (key ID) Parameter is a byte sequence that identifies which key the client wishes to use to authenticate. This is used by the backend to point to an entry in a server-side database of known keys, see <xref target="backend"/>.</t>
         </section>
         <section anchor="parameter-a">
            <name>The a Parameter</name>
            <t>The <bcp14>REQUIRED</bcp14> "a" (public key) Parameter is a byte sequence that specifies the public key used by the server to validate the signature provided by the client. This avoids key confusion issues (see <xref target="SEEMS-LEGIT"/>). The encoding of the public key is described in <xref target="public-key-encoding"/>.</t>
         </section>
         <section anchor="parameter-p">
            <name>The p Parameter</name>
            <t>The <bcp14>REQUIRED</bcp14> "p" (proof) Parameter is a byte sequence that specifies the proof that the client provides to attest to possessing the credential that matches its key ID.</t>
         </section>
         <section anchor="parameter-s">
            <name>The s Parameter</name>
            <t>The <bcp14>REQUIRED</bcp14> "s" (signature) Parameter is an integer that specifies the signature scheme used to compute the proof transmitted in the <spanx style="verb">p</spanx> Parameter. Its value is an integer between 0 and 65535 inclusive from the IANA "TLS SignatureScheme" registry maintained at &lt;<eref target="https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-signaturescheme"/>&gt;.</t>
         </section>
         <section anchor="parameter-v">
            <name>The v Parameter</name>
            <t>The <bcp14>REQUIRED</bcp14> "v" (verification) Parameter is a byte sequence that specifies the verification that the client provides to attest to possessing the key exporter output (see <xref target="output"/> for details). This avoids issues with signature schemes where certain keys can generate signatures that are valid for multiple inputs (see <xref target="SEEMS-LEGIT"/>).</t>
         </section>
      </section>
      <section anchor="example">
         <name>Example</name>
         <t>For example, the key ID "basement" authenticating using Ed25519 <xref target="ED25519"/> could produce the following header field:</t>
         <figure anchor="fig-hdr-example" title="Example Header Field">
            <sourcecode type="http-message" x:line-folding="\">
Authorization: Concealed \
  k=YmFzZW1lbnQ, \
  a=VGhpcyBpcyBh-HB1YmxpYyBrZXkgaW4gdXNl_GhlcmU, \
  s=2055, \
  v=dmVyaWZpY2F0aW9u_zE2Qg, \
  p=QzpcV2luZG93c_xTeXN0ZW0zMlxkcml2ZXJz-ENyb3dkU\
    3RyaWtlXEMtMDAwMDAwMDAyOTEtMD-wMC0w_DAwLnN5cw
</sourcecode>
         </figure>
      </section>
      <section anchor="server-handling">
         <name>Server Handling</name>
         <t>In this section, we subdivide the server role in two:</t>
         <t>
            <list style="symbols">
               <t>the "frontend" runs in the HTTP server that terminates the TLS or QUIC connection created by the client.</t>
               <t>the "backend" runs in the HTTP server that has access to the database of accepted key identifiers and public keys.</t>
            </list>
         </t>
         <t>In most deployments, we expect the frontend and backend roles to both be implemented in a single HTTP origin server (as defined in <xref section="3.6" sectionFormat="of" target="HTTP"/>). However, these roles can be split such that the frontend is an HTTP gateway (as defined in <xref section="3.7" sectionFormat="of" target="HTTP"/>) and the backend is an HTTP origin server.</t>
         <section anchor="frontend-handling">
            <name>Frontend Handling</name>
            <t>If a frontend is configured to check the Concealed authentication scheme, it will parse the Authorization (or Proxy-Authorization) header field. If the authentication scheme is set to "Concealed", the frontend <bcp14>MUST</bcp14> validate that all the required authentication parameters are present and can be parsed correctly as defined in <xref target="auth-params"/>. If any parameter is missing or fails to parse, the frontend <bcp14>MUST</bcp14> ignore the entire Authorization (or Proxy-Authorization) header field.</t>
            <t>The frontend then uses the data from these authentication parameters to compute the key exporter output, as defined in <xref target="output"/>. The frontend then shares the header field and the key exporter output with the backend.</t>
         </section>
         <section anchor="communication-between-frontend-and-backend">
            <name>Communication between Frontend and Backend</name>
            <t>If the frontend and backend roles are implemented in the same machine, this can be handled by a simple function call.</t>
            <t>If the roles are split between two separate HTTP servers, then the backend won't be able to directly access the TLS keying material exporter from the TLS connection between the client and frontend, so the frontend needs to explictly send it. This document defines the "Concealed-Auth-Export" request header field for this purpose. The Concealed-Auth-Export header field's value is a Structured Field Byte Sequence (see <xref section="3.3.5" sectionFormat="of" target="STRUCTURED-FIELDS"/>) that contains the 48-byte key exporter output (see <xref target="output"/>), without any parameters. Note that Structured Field Byte Sequences are encoded using the non-URL-safe variant of base64. For example:</t>
            <figure anchor="fig-int-hdr-example"
                     title="Example Concealed-Auth-Export Header Field">
               <sourcecode type="http-message" x:line-folding="\">
Concealed-Auth-Export: :VGhpc+BleGFtcGxlIFRMU/BleHBvcn\
  Rlc+BvdXRwdXQ/aXMgNDggYnl0ZXMgI/+h:
</sourcecode>
            </figure>
            <t>The frontend <bcp14>SHALL</bcp14> forward the HTTP request to the backend, including the original unmodified Authorization (or Proxy-Authorization) header field and the newly added Concealed-Auth-Export header field.</t>
            <t>Note that, since the security of this mechanism requires the key exporter output to be correct, backends need to trust frontends to send it truthfully. This trust relationship is common because the frontend already needs access to the TLS certificate private key in order to respond to requests. HTTP servers that parse the Concealed-Auth-Export header field <bcp14>MUST</bcp14> ignore it unless they have already established that they trust the sender. Similarly, frontends that send the Concealed-Auth-Export header field <bcp14>MUST</bcp14> ensure that they do not forward any Concealed-Auth-Export header field received from the client.</t>
         </section>
         <section anchor="backend">
            <name>Backend Handling</name>
            <t>Once the backend receives the Authorization (or Proxy-Authorization) header field and the key exporter output, it looks up the key ID in its database of public keys. The backend <bcp14>SHALL</bcp14> then perform the following checks:</t>
            <t>
               <list style="symbols">
                  <t>validate that all the required authentication parameters are present and can be parsed correctly as defined in <xref target="auth-params"/>
                  </t>
                  <t>ensure the key ID is present in the backend's database and maps to a corresponding public key</t>
                  <t>validate that the public key from the database is equal to the one in the Authorization (or Proxy-Authorization) header field</t>
                  <t>validate that the verification field from the Authorization (or Proxy-Authorization) header field matches the one extracted from the key exporter output</t>
                  <t>verify the cryptographic signature as defined in <xref target="computation"/>
                  </t>
               </list>
            </t>
            <t>If all of these checks succeed, the backend can consider the request to be properly authenticated, and can reply accordingly (the backend can also forward the request to another HTTP server).</t>
            <t>If any of the above checks fail, the backend <bcp14>MUST</bcp14> treat it as if the Authorization (or Proxy-Authorization) header field was missing.</t>
         </section>
         <section anchor="non-probeable-server-handling">
            <name>Non-Probeable Server Handling</name>
            <t>Servers that wish to introduce resources whose existence cannot be probed need to ensure that they do not reveal any information about those resources to unauthenticated clients. In particular, such servers <bcp14>MUST</bcp14> respond to authentication failures with the exact same response that they would have used for non-existent resources. For example, this can mean using HTTP status code 404 (Not Found) instead of 401 (Unauthorized).</t>
            <t>The authentication checks described above can take time to compute, and an attacker could detect use of this mechanism if that time is observable by comparing the timing of a request for a known non-existent resource to the timing of a request for a potentially authenticated resource. Servers can mitigate this observability by slightly delaying responses to some non-existent resources such that the timing of the authentication verification is not observable. This delay needs to be carefully considered to avoid having the delay itself leak the fact that this origin uses this mechanism at all.</t>
            <t>Non-probeable resources also need to be non-discoverable for unauthenticated users. For example, if a server operator wishes to hide an authenticated resource by pretending it does not exist to unauthenticated users, then the server operator needs to ensure there are no unauthenticated pages with links to that resource, and no other out-of-band ways for unauthenticated users to discover this resource.</t>
         </section>
      </section>
      <section anchor="requirements-on-tls-usage">
         <name>Requirements on TLS Usage</name>
         <t>This authentication scheme is only defined for uses of HTTP with TLS <xref target="TLS"/>. This includes any use of HTTP over TLS as typically used for HTTP/2 <xref target="H2"/>, or HTTP/3 <xref target="H3"/> where the transport protocol uses TLS as its authentication and key exchange mechanism <xref target="QUIC-TLS"/>.</t>
         <t>Because the TLS keying material exporter is only secure for authentication when it is uniquely bound to the TLS session <xref target="RFC7627"/>, the Concealed authentication scheme requires either one of the following properties:</t>
         <t>
            <list style="symbols">
               <t>The TLS version in use is greater or equal to 1.3 <xref target="TLS"/>.</t>
               <t>The TLS version in use is 1.2 and the Extended Master Secret extension <xref target="RFC7627"/> has been negotiated.</t>
            </list>
         </t>
         <t>Clients <bcp14>MUST NOT</bcp14> use the Concealed authentication scheme on connections that do not meet one of the two properties above. If a server receives a request that uses this authentication scheme on a connection that meets neither of the above properties, the server <bcp14>MUST</bcp14> treat the request as if the authentication were not present.</t>
      </section>
      <section anchor="security">
         <name>Security Considerations</name>
         <t>The Concealed HTTP authentication scheme allows a client to authenticate to an origin server while guaranteeing freshness and without the need for the server to transmit a nonce to the client. This allows the server to accept authenticated clients without revealing that it supports or expects authentication for some resources. It also allows authentication without the client leaking the presence of authentication to observers due to clear-text TLS Client Hello extensions.</t>
         <t>Since the freshness described above is provided by a TLS key exporter, it can be as old as the underlying TLS connection. Servers can require better freshness by forcing clients to create new connections using mechanisms such as the GOAWAY frame (see <xref section="5.2" sectionFormat="of" target="H3"/>).</t>
         <t>The authentication proofs described in this document are not bound to individual HTTP requests; if the key is used for authentication proofs on multiple requests on the same connection, they will all be identical. This allows for better compression when sending over the wire, but implies that client implementations that multiplex different security contexts over a single HTTP connection need to ensure that those contexts cannot read each other's header fields. Otherwise, one context would be able to replay the Authorization header field of another. This constraint is met by modern Web browsers. If an attacker were to compromise the browser such that it could access another context's memory, the attacker might also be able to access the corresponding key, so binding authentication to requests would not provide much benefit in practice.</t>
         <t>Authentication asymmetric keys used for the Concealed HTTP authentication scheme <bcp14>MUST NOT</bcp14> be reused in other protocols. Even though we attempt to mitigate these issues by adding a static prefix to the signed data (see <xref target="computation"/>), reusing keys could undermine the security guarantees of the authentication.</t>
         <t>Origins offering this scheme can link requests that use the same key. However, requests are not linkable across origins if the keys used are specific to the individual origins using this scheme.</t>
      </section>
      <section anchor="iana">
         <name>IANA Considerations</name>
         <section anchor="iana-schemes">
            <name>HTTP Authentication Schemes Registry</name>
            <t>This document, if approved, requests IANA to register the following entry in the "HTTP Authentication Schemes" Registry maintained at &lt;<eref target="https://www.iana.org/assignments/http-authschemes"/>&gt;:</t>
            <dl spacing="compact">
               <dt>Authentication Scheme Name:</dt>
               <dd>
                  <t>Concealed</t>
               </dd>
               <dt>Reference:</dt>
               <dd>
                  <t>This document</t>
               </dd>
               <dt>Notes:</dt>
               <dd>
                  <t>None</t>
               </dd>
            </dl>
         </section>
         <section anchor="iana-exporter-label">
            <name>TLS Keying Material Exporter Labels</name>
            <t>This document, if approved, requests IANA to register the following entry in the "TLS Exporter Labels" registry maintained at &lt;<eref target="https://www.iana.org/assignments/tls-parameters#exporter-labels"/>&gt;:</t>
            <dl spacing="compact">
               <dt>Value:</dt>
               <dd>
                  <t>EXPORTER-HTTP-Concealed-Authentication</t>
               </dd>
               <dt>DTLS-OK:</dt>
               <dd>
                  <t>N</t>
               </dd>
               <dt>Recommended:</dt>
               <dd>
                  <t>Y</t>
               </dd>
               <dt>Reference:</dt>
               <dd>
                  <t>This document</t>
               </dd>
            </dl>
         </section>
         <section anchor="http-field-name">
            <name>HTTP Field Name</name>
            <t>This document, if approved, requests IANA to register the following entry in the "Hypertext Transfer Protocol (HTTP) Field Name" registry maintained at &lt;<eref target="https://www.iana.org/assignments/http-fields/http-fields.xhtml"/>&gt;:</t>
            <dl spacing="compact">
               <dt>Field Name:</dt>
               <dd>
                  <t>Concealed-Auth-Export</t>
               </dd>
               <dt>Status:</dt>
               <dd>
                  <t>permanent</t>
               </dd>
               <dt>Structured Type:</dt>
               <dd>
                  <t>Item</t>
               </dd>
               <dt>Reference:</dt>
               <dd>
                  <t>This document</t>
               </dd>
               <dt>Comments:</dt>
               <dd>
                  <t>None</t>
               </dd>
            </dl>
         </section>
      </section>
   </middle>
   <back>
      <displayreference target="H2" to="HTTP/2"/>
      <displayreference target="H3" to="HTTP/3"/>
      <references anchor="sec-combined-references" title="References">
         <references anchor="sec-normative-references" title="Normative References">
            <reference anchor="RFC8792">
               <front>
                  <title>Handling Long Lines in Content of Internet-Drafts and RFCs</title>
                  <author fullname="K. Watsen" initials="K." surname="Watsen"/>
                  <author fullname="E. Auerswald" initials="E." surname="Auerswald"/>
                  <author fullname="A. Farrel" initials="A." surname="Farrel"/>
                  <author fullname="Q. Wu" initials="Q." surname="Wu"/>
                  <date month="June" year="2020"/>
               </front>
               <seriesInfo name="RFC" value="8792"/>
               <seriesInfo name="DOI" value="10.17487/RFC8792"/>
            </reference>
            <reference anchor="X.690">
               <front>
                  <title>Information technology - ASN.1 encoding Rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)</title>
                  <author>
                     <organization>ITU-T</organization>
                  </author>
                  <date month="February" year="2021"/>
               </front>
               <seriesInfo name="ISO/IEC 8824-1:2021" value=""/>
            </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="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="QUIC">
               <front>
                  <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
                  <author fullname="J. Iyengar"
                           initials="J."
                           role="editor"
                           surname="Iyengar"/>
                  <author fullname="M. Thomson"
                           initials="M."
                           role="editor"
                           surname="Thomson"/>
                  <date month="May" year="2021"/>
               </front>
               <seriesInfo name="RFC" value="9000"/>
               <seriesInfo name="DOI" value="10.17487/RFC9000"/>
            </reference>
            <reference anchor="KEY-EXPORT">
               <front>
                  <title>Keying Material Exporters for Transport Layer Security (TLS)</title>
                  <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
                  <date month="March" year="2010"/>
               </front>
               <seriesInfo name="RFC" value="5705"/>
               <seriesInfo name="DOI" value="10.17487/RFC5705"/>
            </reference>
            <reference anchor="URI">
               <front>
                  <title>Uniform Resource Identifier (URI): Generic Syntax</title>
                  <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee"/>
                  <author fullname="R. Fielding" initials="R." surname="Fielding"/>
                  <author fullname="L. Masinter" initials="L." surname="Masinter"/>
                  <date month="January" year="2005"/>
               </front>
               <seriesInfo name="STD" value="66"/>
               <seriesInfo name="RFC" value="3986"/>
               <seriesInfo name="DOI" value="10.17487/RFC3986"/>
            </reference>
            <reference anchor="PKCS1">
               <front>
                  <title>PKCS #1: RSA Cryptography Specifications Version 2.2</title>
                  <author fullname="K. Moriarty"
                           initials="K."
                           role="editor"
                           surname="Moriarty"/>
                  <author fullname="B. Kaliski" initials="B." surname="Kaliski"/>
                  <author fullname="J. Jonsson" initials="J." surname="Jonsson"/>
                  <author fullname="A. Rusch" initials="A." surname="Rusch"/>
                  <date month="November" year="2016"/>
               </front>
               <seriesInfo name="RFC" value="8017"/>
               <seriesInfo name="DOI" value="10.17487/RFC8017"/>
            </reference>
            <reference anchor="EdDSA">
               <front>
                  <title>Edwards-Curve Digital Signature Algorithm (EdDSA)</title>
                  <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
                  <author fullname="I. Liusvaara" initials="I." surname="Liusvaara"/>
                  <date month="January" year="2017"/>
               </front>
               <seriesInfo name="RFC" value="8032"/>
               <seriesInfo name="DOI" value="10.17487/RFC8032"/>
            </reference>
            <reference anchor="BASE64">
               <front>
                  <title>The Base16, Base32, and Base64 Data Encodings</title>
                  <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
                  <date month="October" year="2006"/>
               </front>
               <seriesInfo name="RFC" value="4648"/>
               <seriesInfo name="DOI" value="10.17487/RFC4648"/>
            </reference>
            <reference anchor="ABNF">
               <front>
                  <title>Augmented BNF for Syntax Specifications: ABNF</title>
                  <author fullname="D. Crocker"
                           initials="D."
                           role="editor"
                           surname="Crocker"/>
                  <author fullname="P. Overell" initials="P." surname="Overell"/>
                  <date month="January" year="2008"/>
               </front>
               <seriesInfo name="STD" value="68"/>
               <seriesInfo name="RFC" value="5234"/>
               <seriesInfo name="DOI" value="10.17487/RFC5234"/>
            </reference>
            <reference anchor="STRUCTURED-FIELDS">
               <front>
                  <title>Structured Field Values for HTTP</title>
                  <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
                  <author fullname="P-H. Kamp" surname="P-H. Kamp"/>
                  <date month="February" year="2021"/>
               </front>
               <seriesInfo name="RFC" value="8941"/>
               <seriesInfo name="DOI" value="10.17487/RFC8941"/>
            </reference>
            <reference anchor="TLS">
               <front>
                  <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
                  <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
                  <date month="August" year="2018"/>
               </front>
               <seriesInfo name="RFC" value="8446"/>
               <seriesInfo name="DOI" value="10.17487/RFC8446"/>
            </reference>
            <reference anchor="RFC7627">
               <front>
                  <title>Transport Layer Security (TLS) Session Hash and Extended Master Secret Extension</title>
                  <author fullname="K. Bhargavan"
                           initials="K."
                           role="editor"
                           surname="Bhargavan"/>
                  <author fullname="A. Delignat-Lavaud"
                           initials="A."
                           surname="Delignat-Lavaud"/>
                  <author fullname="A. Pironti" initials="A." surname="Pironti"/>
                  <author fullname="A. Langley" initials="A." surname="Langley"/>
                  <author fullname="M. Ray" initials="M." surname="Ray"/>
                  <date month="September" year="2015"/>
               </front>
               <seriesInfo name="RFC" value="7627"/>
               <seriesInfo name="DOI" value="10.17487/RFC7627"/>
            </reference>
         </references>
         <references anchor="sec-informative-references" title="Informative References">
            <reference anchor="H2">
               <front>
                  <title>HTTP/2</title>
                  <author fullname="M. Thomson"
                           initials="M."
                           role="editor"
                           surname="Thomson"/>
                  <author fullname="C. Benfield"
                           initials="C."
                           role="editor"
                           surname="Benfield"/>
                  <date month="June" year="2022"/>
               </front>
               <seriesInfo name="RFC" value="9113"/>
               <seriesInfo name="DOI" value="10.17487/RFC9113"/>
            </reference>
            <reference anchor="H3">
               <front>
                  <title>HTTP/3</title>
                  <author fullname="M. Bishop"
                           initials="M."
                           role="editor"
                           surname="Bishop"/>
                  <date month="June" year="2022"/>
               </front>
               <seriesInfo name="RFC" value="9114"/>
               <seriesInfo name="DOI" value="10.17487/RFC9114"/>
            </reference>
            <reference anchor="SEEMS-LEGIT">
               <front>
                  <title>Seems Legit: Automated Analysis of Subtle Attacks on Protocols That Use Signatures</title>
                  <author fullname="Dennis Jackson" initials="D." surname="Jackson"/>
                  <author fullname="Cas Cremers" initials="C." surname="Cremers"/>
                  <author fullname="Katriel Cohn-Gordon" initials="K." surname="Cohn-Gordon"/>
                  <author fullname="Ralf Sasse" initials="R." surname="Sasse"/>
                  <date year="2019"/>
               </front>
               <seriesInfo name="DOI" value="10.1145/3319535.3339813"/>
               <refcontent>CCS '19: Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security</refcontent>
               <refcontent>pp. 2165–2180</refcontent>
            </reference>
            <reference anchor="HOBA">
               <front>
                  <title>HTTP Origin-Bound Authentication (HOBA)</title>
                  <author fullname="S. Farrell" initials="S." surname="Farrell"/>
                  <author fullname="P. Hoffman" initials="P." surname="Hoffman"/>
                  <author fullname="M. Thomas" initials="M." surname="Thomas"/>
                  <date month="March" year="2015"/>
               </front>
               <seriesInfo name="RFC" value="7486"/>
               <seriesInfo name="DOI" value="10.17487/RFC7486"/>
            </reference>
            <reference anchor="ED25519">
               <front>
                  <title>Algorithm Identifiers for Ed25519, Ed448, X25519, and X448 for Use in the Internet X.509 Public Key Infrastructure</title>
                  <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
                  <author fullname="J. Schaad" initials="J." surname="Schaad"/>
                  <date month="August" year="2018"/>
               </front>
               <seriesInfo name="RFC" value="8410"/>
               <seriesInfo name="DOI" value="10.17487/RFC8410"/>
            </reference>
            <reference anchor="QUIC-TLS">
               <front>
                  <title>Using TLS to Secure QUIC</title>
                  <author fullname="M. Thomson"
                           initials="M."
                           role="editor"
                           surname="Thomson"/>
                  <author fullname="S. Turner"
                           initials="S."
                           role="editor"
                           surname="Turner"/>
                  <date month="May" year="2021"/>
               </front>
               <seriesInfo name="RFC" value="9001"/>
               <seriesInfo name="DOI" value="10.17487/RFC9001"/>
            </reference>
            <reference anchor="MASQUE-ORIGINAL">
               <front>
                  <title>The MASQUE Protocol</title>
                  <author fullname="David Schinazi" initials="D." surname="Schinazi">
                     <organization>Google LLC</organization>
                  </author>
                  <date day="28" month="February" year="2019"/>
               </front>
               <seriesInfo name="Internet-Draft" value="draft-schinazi-masque-00"/>
            </reference>
         </references>
      </references>
      <?line 666?>
      <section anchor="acknowledgments" numbered="false">
         <name>Acknowledgments</name>
         <t>The authors would like to thank many members of the IETF community, as this document is the fruit of many hallway conversations. In particular, the authors would like to thank <contact fullname="David Benjamin"/>, <contact fullname="Reese Enghardt"/>, <contact fullname="Nick Harper"/>, <contact fullname="Dennis Jackson"/>, <contact fullname="Ilari Liusvaara"/>, <contact fullname="François Michel"/>, <contact fullname="Lucas Pardue"/>, <contact fullname="Justin Richer"/>, <contact fullname="Ben Schwartz"/>, <contact fullname="Martin Thomson"/>, and <contact fullname="Chris A. Wood"/> for their reviews and contributions. The mechanism described in this document was originally part of the first iteration of MASQUE <xref target="MASQUE-ORIGINAL"/>.</t>
      </section>
   </back>
</rfc>
