Re: Review Request for third draft of "Signing HTTP Messages"

Hey Manu,

Thanks for following up. Some responses below.

On 15 Sep 2014, at 6:31 pm, Manu Sporny <> wrote:
> I've updated the spec to clarify
> concatenate-delimit-with-comma-plus-single-space character and added an
> example to make sure we're crystal clear in the spec about this:

I think thatís pretty good. There are some quibbles that might come out in review later, but itís pretty good. (hint: theyíll likely come from Julian).

>> What I'd suggest is to actually use the :-prefix that http/2 
>> specifies, because it can't be part of a valid http header 
>> field-name. The method isn't part of the request-target, so that 
>> would leave you with these "special" header field names:
>> :method :uri
>> For :uri, I'd refer to the Effective Request URI in RFC7230 Section 
>> 5.5; that's the concept you're looking to hook onto, I think, and it
>> should be stable between HTTP versions.
> I couldn't find the :-prefix pseudo header in RFC7230 or
> draft-ietf-httpbis-http2-14. Using the effective Request URI would
> include the protocol scheme and host in the signature string and could
> break checking the signature in certain http->https proxy scenarios
> (among others), right?

I meant <>

Specifically, :scheme :authority and :path.

WRT breaking the signature in proxy situations ó yes, it will, and Iíd argue that thatís the responsibility of the people doing that reverse proxying. The origin (scheme, host, port) is CRITICAL in the Web security model, and leaving it out of any signature scheme simply doesnít make sense.

> We've had to avoid specifying the mandatory use of scheme, port, and
> hostname because there are edge cases where proxies that want to check
> the signature before proxying the request on would generate the improper
> signature string during the check. We recommend the following
> pseudo-headers in the current spec:
> :method :path
> Is that an issue?

See above.

>>>> * Can trailers be included in a signature?
>> Cool. Note that the Trailer header 
>> <> already allows this;
>> e.g. you'd have:
>> Trailer: Signature
>> to indicate that Signature is coming in the trailers.
> Oh hey, that's way better, thanks!
> If you're good w/ the changes we've made above, then the comments on the
> spec have slowed down to the point that we're going to do a final call
> for implementations to get the 4 current libraries updated to the latest
> version of the spec and get any other new implementations started.
> -- manu
> -- 
> Manu Sporny (skype: msporny, twitter: manusporny, G+: +Manu Sporny)
> Founder/CEO - Digital Bazaar, Inc.
> blog: The Marathonic Dawn of Web Payments

Mark Nottingham

Received on Saturday, 20 September 2014 16:54:44 UTC