Internet-Draft | symh2 | October 2024 |
Cohen | Expires 24 April 2025 | [Page] |
This draft defines an HTTP/2 [RFC9113] extension to support Symmetric HTTP, which makes a simplifying assumption that the client-side HTTP server is only accessible and addressible by the server that accepted the HTTP/2 connection.¶
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/joshco/sh2.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 24 April 2025.¶
Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
This extension allows the client or browser to act as a web server which receives HTTP requests from the origin server and send responses back. This is enabled by allowing server initiated streams to the client.¶
Resources on the client side of an HTTP/2 connection are addressed using a URN prefix. The path /foo on the client is addressed as¶
urn:symmetric_http:client/foo
¶
To avoid confusion over terminology...¶
This document uses the following terminology.¶
Term | Definition |
---|---|
Client | The HTTP/2 client that initiates an HTTP/2 connection to a server |
Server | The HTTP/2 server that accepts an inbound connection from the client |
Agent | An HTTP engine that processes incoming requests and generates responses |
Client Agent | The Agent on the client |
Server Agent | The Agent on the server |
A previous draft "Peer-to-peer Extension to HTTP/2" ([P2P]) attempted to create bidirectional HTTP/2 extension, but specified that the client authority needed to be verified out of band.¶
a listener or coalescing intermediary has no in- band method of validating that a dialer's authority claims are valid. Therefore, a conforming listener MUST confirm a dialer's authority claims using some out-of-band method.¶
This document attempts to sidestep that issue by having the client only accessible, or addressable by the HTTP/2 server that it opened an HTTP/2 connected to. As a result, a real-world authority isn't necessary.¶
Instead the client, known only to the server, is simply the "other side" of an HTTP/2 connection, and is specified according to the Client Authority section of this document.¶
This document overrides HTTP/2 [RFC9113] section 5.1, where it says:¶
"If this stream is initiated by the server, as described in Section 5.1.1, then receiving a HEADERS frame MUST also be treated as a connection error (Section 5.4.1) of type PROTOCOL_ERROR."¶
When operating in symmetric HTTP mode, this restriction is removed.¶
This document introduces a new HTTP/2 setting SETTINGS_SYMMETRIC.¶
When SETTINGS_SYMMETRIC (0xTBA) is set to 1, it informs the server that the client supports server initiated streams which carry HTTP/2 requests to the client and responses to the server.¶
This setting MUST NOT be emitted by the server. If the client receives this setting from the server, it must respond with a conection error [HTTP2] Section 5.4.1) of type PROTOCOL ERROR.¶
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 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document defines the client and client agent to be only accessible and addressable from the HTTP/2 server it has connected to. It is not yet known if there are viable exploits that would allow a third party to access the client agent using symmetric HTTP.¶
This document updates the registry for HTTP/2 Settings to add SETTINGS_SYMMETRIC, ID=0xTBA, which can have a value of 1 or 0.¶
This document draws wisdom and inspiration from Cory Benfield's Intenet Draft from 2015, "Peer-to-peer Extension to HTTP/2", draft-benfield-http2-p2p-02 ([P2P]).¶