http-signatures icon indicating copy to clipboard operation
http-signatures copied to clipboard

Forbid "(request-target)" in response signature

Open liamdennehy opened this issue 5 years ago • 3 comments

Right now there is no way for a response to transport all the parameters required to reconstruct the (request-target) signing string component.

As the messages are exchanged obviously both the client and server know the values, as one transmitted and the other reacted to those in the other half of the conversation, but any signature should be verifiable given only the evidence of the content it protects.

Since this information is not present on a response, (request-target) should be prohibited from appearing in a response signature's headers. If required the server should construct a header specifically for this purpose, which could be as simple as Request-Target, and so no special handling is required to sign it.

liamdennehy avatar Aug 09 '19 13:08 liamdennehy