draft-ietf-httpbis-http2-encryption-10.txt   draft-ietf-httpbis-http2-encryption-latest.txt 
HTTP Working Group M. Nottingham HTTP Working Group M. Nottingham
Internet-Draft Internet-Draft
Intended status: Experimental M. Thomson Intended status: Experimental M. Thomson
Expires: August 4, 2017 Mozilla Expires: August 17, 2017 Mozilla
January 31, 2017 February 13, 2017
Opportunistic Security for HTTP Opportunistic Security for HTTP
draft-ietf-httpbis-http2-encryption-10 draft-ietf-httpbis-http2-encryption-latest
Abstract Abstract
This document describes how "http" URIs can be accessed using This document describes how "http" URIs can be accessed using
Transport Layer Security (TLS) to mitigate pervasive monitoring Transport Layer Security (TLS) to mitigate pervasive monitoring
attacks. attacks.
Note to Readers Note to Readers
Discussion of this draft takes place on the HTTP working group Discussion of this draft takes place on the HTTP working group
skipping to change at page 1, line 43 skipping to change at page 1, line 43
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/. Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on August 4, 2017. This Internet-Draft will expire on August 17, 2017.
Copyright Notice Copyright Notice
Copyright (c) 2017 IETF Trust and the persons identified as the Copyright (c) 2017 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
skipping to change at page 2, line 27 skipping to change at page 2, line 27
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Goals and Non-Goals . . . . . . . . . . . . . . . . . . . . 3 1.1. Goals and Non-Goals . . . . . . . . . . . . . . . . . . . . 3
1.2. Notational Conventions . . . . . . . . . . . . . . . . . . 3 1.2. Notational Conventions . . . . . . . . . . . . . . . . . . 3
2. Using HTTP URIs over TLS . . . . . . . . . . . . . . . . . . . 3 2. Using HTTP URIs over TLS . . . . . . . . . . . . . . . . . . . 3
2.1. Alternative Server Opt-In . . . . . . . . . . . . . . . . . 4 2.1. Alternative Server Opt-In . . . . . . . . . . . . . . . . . 4
2.2. Interaction with "https" URIs . . . . . . . . . . . . . . . 5 2.2. Interaction with "https" URIs . . . . . . . . . . . . . . . 5
2.3. The "http-opportunistic" well-known URI . . . . . . . . . . 5 2.3. The "http-opportunistic" well-known URI . . . . . . . . . . 5
3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 6 3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 6
4. Security Considerations . . . . . . . . . . . . . . . . . . . . 6 4. Security Considerations . . . . . . . . . . . . . . . . . . . . 6
4.1. Security Indicators . . . . . . . . . . . . . . . . . . . . 6 4.1. Security Indicators . . . . . . . . . . . . . . . . . . . . 6
4.2. Downgrade Attacks . . . . . . . . . . . . . . . . . . . . . 6 4.2. Downgrade Attacks . . . . . . . . . . . . . . . . . . . . . 7
4.3. Privacy Considerations . . . . . . . . . . . . . . . . . . 6 4.3. Privacy Considerations . . . . . . . . . . . . . . . . . . 7
4.4. Confusion Regarding Request Scheme . . . . . . . . . . . . 7 4.4. Confusion Regarding Request Scheme . . . . . . . . . . . . 7
4.5. Server Controls . . . . . . . . . . . . . . . . . . . . . . 7 4.5. Server Controls . . . . . . . . . . . . . . . . . . . . . . 7
5. References . . . . . . . . . . . . . . . . . . . . . . . . . . 7 5. References . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1. Normative References . . . . . . . . . . . . . . . . . . . 7 5.1. Normative References . . . . . . . . . . . . . . . . . . . 8
5.2. Informative References . . . . . . . . . . . . . . . . . . 8 5.2. Informative References . . . . . . . . . . . . . . . . . . 9
Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . . 9 Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . . 9
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 9 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 9
1. Introduction 1. Introduction
This document describes a use of HTTP Alternative Services [RFC7838] This document describes a use of HTTP Alternative Services [RFC7838]
to decouple the URI scheme from the use and configuration of to decouple the URI scheme from the use and configuration of
underlying encryption, allowing a "http" URI [RFC7230] to be accessed underlying encryption, allowing a "http" URI [RFC7230] to be accessed
using Transport Layer Security (TLS) [RFC5246] opportunistically. using Transport Layer Security (TLS) [RFC5246] opportunistically.
skipping to change at page 4, line 44 skipping to change at page 4, line 44
2.1. Alternative Server Opt-In 2.1. Alternative Server Opt-In
It is possible that the server might become confused about whether It is possible that the server might become confused about whether
requests' URLs have a "http" or "https" scheme, for various reasons; requests' URLs have a "http" or "https" scheme, for various reasons;
see Section 4.4. To ensure that the alternative service has opted see Section 4.4. To ensure that the alternative service has opted
into serving "http" URLs over TLS, clients are required to perform into serving "http" URLs over TLS, clients are required to perform
additional checks before directing "http" requests to it. additional checks before directing "http" requests to it.
Clients MUST NOT send "http" requests over a secured connection, Clients MUST NOT send "http" requests over a secured connection,
unless the chosen alternative service presents a certificate that is unless the chosen alternative service presents a certificate that is
valid for the origin as defined in [RFC2818] (this also establishes valid for the origin as defined in [RFC2818]. Using an authenticated
"reasonable assurances" for the purposes of {RFC7838}}) and they have alternative service establishes "reasonable assurances" for the
obtained a valid http-opportunistic response for an origin (as per purposes of [RFC7838]. In addition to authenticating the server, the
Section 2.3). An exception to the last restriction is made for client MUST have obtained a valid http-opportunistic response for an
requests for the "http-opportunistic" well-known URI. origin (as per Section 2.3) using the authenticated connection. An
exception to the latter restriction is made for requests for the
"http-opportunistic" well-known URI.
For example, assuming the following request is made over a TLS For example, assuming the following request is made over a TLS
connection that is successfully authenticated for those origins, the connection that is successfully authenticated for those origins, the
following request/response pair would allow requests for the origins following request/response pair would allow requests for the origins
"http://www.example.com" or "http://example.com" to be sent using a "http://www.example.com" or "http://example.com" to be sent using a
secured connection: secured connection:
HEADERS HEADERS
+ END_STREAM + END_STREAM
+ END_HEADERS + END_HEADERS
:method = GET :method = GET
:scheme = http :scheme = http
:authority = example.com
:path = /.well-known/http-opportunistic :path = /.well-known/http-opportunistic
host: example.com
HEADERS HEADERS
:status = 200 :status = 200
content-type = application/json content-type = application/json
DATA DATA
+ END_STREAM + END_STREAM
[ "http://www.example.com", "http://example.com" ] [ "http://www.example.com", "http://example.com" ]
Though this document describes multiple origins, this is only for
operational convenience. Only a request made to an origin (over an
authenticated connection) can be used to acquire this resource for
that origin. Thus in the example, the request to
"http://example.com" cannot be assumed to also provide an http-
opportunistic response for "http://www.example.com".
2.2. Interaction with "https" URIs 2.2. Interaction with "https" URIs
Clients MUST NOT send "http" requests and "https" requests on the Clients MUST NOT send "http" requests and "https" requests on the
same connection. Similarly, clients MUST NOT send "http" requests same connection. Similarly, clients MUST NOT send "http" requests
for multiple origins on the same connection. for multiple origins on the same connection.
2.3. The "http-opportunistic" well-known URI 2.3. The "http-opportunistic" well-known URI
This specification defines the "http-opportunistic" well-known URI This specification defines the "http-opportunistic" well-known URI
[RFC5785]. A client is said to have a valid http-opportunistic [RFC5785]. A client is said to have a valid http-opportunistic
skipping to change at page 6, line 13 skipping to change at page 6, line 24
resources on an "https" origin, nor does it define semantics if the resources on an "https" origin, nor does it define semantics if the
resource includes "https" origins. resource includes "https" origins.
Allowing clients to cache the http-opportunistic resource means that Allowing clients to cache the http-opportunistic resource means that
all alternative services need to be able to respond to requests for all alternative services need to be able to respond to requests for
"http" resources. A client is permitted to use an alternative "http" resources. A client is permitted to use an alternative
service without acquiring the http-opportunistic resource from that service without acquiring the http-opportunistic resource from that
service. service.
A client MUST NOT use any cached copies of an http-opportunistic A client MUST NOT use any cached copies of an http-opportunistic
resource that are acquired over unauthenticated connections. To resource that was acquired (or revalidated) over an unauthenticated
avoid potential errors, a client can request or revalidate the http- connection. To avoid potential errors, a client can request or
opportunistic resource before using any connection to an alternative revalidate the http-opportunistic resource before using any
service. connection to an alternative service.
Clients that use cached http-opportunistic responses MUST ensure that
their cache is cleared of any responses that were acquired over an
unauthenticated connection. Revalidating an unauthenticated response
using an authenticated connection does not ensure the integrity of
the response.
3. IANA Considerations 3. IANA Considerations
This specification registers a Well-Known URI [RFC5785]: This specification registers a Well-Known URI [RFC5785]:
o URI Suffix: http-opportunistic o URI Suffix: http-opportunistic
o Change Controller: IETF o Change Controller: IETF
o Specification Document(s): Section 2.3 of [this specification] o Specification Document(s): Section 2.3 of [this specification]
o Related Information: o Related Information:
 End of changes. 10 change blocks. 
19 lines changed or deleted 34 lines changed or added

This html diff was produced by rfcdiff 1.44jr. The latest version is available from http://tools.ietf.org/tools/rfcdiff/