Skip to content

Commit 3903da6

Browse files
committed
Limit the allowed schemes for URLs.
And clarify the definition of "absolute URL". Fixes #222.
1 parent fa5167d commit 3903da6

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

draft-yasskin-http-origin-signed-responses.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,15 @@ will provide a way to group signed exchanges into bundles that can be
124124
transmitted and stored together, but single signed exchanges are useful enough
125125
to standardize on their own.
126126

127-
# Terminology
127+
# Terminology {#terminology}
128+
129+
Absolute URL
130+
: A string for which the [URL
131+
parser](https://url.spec.whatwg.org/#concept-url-parser) ({{URL}}), when run
132+
without a base URL, returns a URL rather than a failure, and for which that URL
133+
has a null fragment. This is similar to the [absolute-URL
134+
string](https://url.spec.whatwg.org/#absolute-url-string) concept defined by
135+
({{URL}}) but might not include exactly the same strings.
128136

129137
Author
130138
: The entity that wrote the content in a particular resource. This specification
@@ -213,8 +221,7 @@ values:
213221
"cert-url"
214222

215223
: A string (Section 3.7 of {{!I-D.ietf-httpbis-header-structure}}) containing an
216-
[absolute-URL string](https://url.spec.whatwg.org/#absolute-url-string)
217-
({{URL}}).
224+
absolute URL ({{terminology}}) with a scheme of "https" or "data".
218225

219226
"cert-sha256"
220227

@@ -229,8 +236,7 @@ values:
229236
{:#signature-validityurl} "validity-url"
230237

231238
: A string (Section 3.7 of {{!I-D.ietf-httpbis-header-structure}}) containing an
232-
[absolute-URL string](https://url.spec.whatwg.org/#absolute-url-string)
233-
({{URL}}).
239+
absolute URL ({{terminology}}) with a scheme of "https".
234240

235241
"date" and "expires"
236242

@@ -334,8 +340,8 @@ The CBOR representation of an exchange `exchange`'s headers is the CBOR
334340
* The byte string ':method' to the byte string containing `exchange`'s
335341
request's method.
336342
* The byte string ':url' to the byte string containing `exchange`'s request's
337-
effective request URI, which MUST be an [absolute-URL
338-
string](https://url.spec.whatwg.org/#absolute-url-string) ({{URL}}).
343+
effective request URI, which MUST be an absolute URL ({{terminology}}) with
344+
a scheme of "https".
339345
* For each request header field in `exchange` except for the `Host` header
340346
field, the header field's lowercase name as a byte string to the header
341347
field's value as a byte string.
@@ -1871,6 +1877,10 @@ exchange argues for embedding a signature's lifetime into the signature.
18711877

18721878
RFC EDITOR PLEASE DELETE THIS SECTION.
18731879

1880+
draft-05
1881+
1882+
* Define absolute URLs, and limit the schemes each instance can use.
1883+
18741884
draft-04
18751885

18761886
* Update to draft-ietf-httpbis-header-structure-06.

0 commit comments

Comments
 (0)