You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
In Signing HTTP Messages 02 the only remaining algorithm is named hs2019 .
This algorithm actually covers nearly all the others, but shows a change in direction of the meaning of the keyId.
Whereas until draft-cavage-10 the keyId referred to a cryptographic key, e.g. an RSA key, and the signer then had to specify the algorithm in the signature header,
Authorization: Signature keyId="rsa-key-1",algorithm="rsa-sha256",headers="(request-target) host date digest content-length",signature="Base64(RSA-SHA256(signing string))"
So essentially the type of key used and the hashing function data have been removed, and are meant to be stored with the key.
This seems to have been introduced to remove some attack vectors related I guess to the signature being replaced with a another valid one on a easier to crack hash function.
Consequence
In the HttpSig document I have the keyId as a URL which dereferences to the following description:
@bblfish Sorry for the confusion between the versions, we (the HTTPSig editors) are tackling the biggest changes a piece at a time and that can lead to confusion like this! The changes in -03 signal the intended direction of the spec: separate specification of the key identifier and algorithm, for implementations that need to specify that. If you can get both from just the key, that's also allowed. (this is the "hs2019" style behavior)
Also, previously the algorithm and other content was not covered under the signature which lead to some possible substitution attacks, but this has all been addressed in -02 so the old motivation for deprecating all the specified algorithms has also gone away.
We welcome any additional feedback on the HTTP Sig spec to make sure that it's applicable across a wide variety of use cases like this.
Ah great, to hear that.
I understand why moving the signature to its own separate header was such an important move.
I should be able to provide some feedback on the draft pretty soon, now that I have implemented RFC8941.
Activity
bblfish commentedon Apr 10, 2021
It think that the problem I described above is no longer valid with the April release of Signing HTTP Messages v03. See @jricher's mail to the HTTP Bis WG.
jricher commentedon Apr 12, 2021
@bblfish Sorry for the confusion between the versions, we (the HTTPSig editors) are tackling the biggest changes a piece at a time and that can lead to confusion like this! The changes in -03 signal the intended direction of the spec: separate specification of the key identifier and algorithm, for implementations that need to specify that. If you can get both from just the key, that's also allowed. (this is the "hs2019" style behavior)
Also, previously the algorithm and other content was not covered under the signature which lead to some possible substitution attacks, but this has all been addressed in -02 so the old motivation for deprecating all the specified algorithms has also gone away.
We welcome any additional feedback on the HTTP Sig spec to make sure that it's applicable across a wide variety of use cases like this.
bblfish commentedon Apr 12, 2021
Ah great, to hear that.
I understand why moving the signature to its own separate header was such an important move.
I should be able to provide some feedback on the draft pretty soon, now that I have implemented RFC8941.
bblfish commentedon Apr 13, 2021
I think I found a bug in "Signing HTTP Messages", and reported it here: httpwg/http-extensions#1456
But I think this issue can be closed, as the new spec allows the algorithms to be specified again.