Hi,
We run EnfiladeBot, the crawler of a museum catalogue
(https://enfilade.guide/en/about-our-crawler). It signs its requests
with Web Bot Auth (draft-ietf-webbotauth-httpsig-protocol), which
builds on RFC 9421. Daniel's blog post asked for testing, so we built
curl 8.23.0 with --enable-httpsig (the httpsig code in master differs
only in types) and tried to produce a Web Bot Auth signature with it.
The signatures curl makes are fine. yaronf/httpsign verifies both:
("@method" "@authority" "@path" "@query");created=...;keyid=...
("@authority" "signature-agent");created=...;keyid=...
What we found no way to set:
- the expires and tag parameters (RFC 9421, section 2.3), which Web
Bot Auth requires, and nonce, which a verifier may require against
replays. samesame, the Web Bot Auth verifier we tried, skips a
signature without tag="web-bot-auth".
- the key parameter on a component (section 2.1.2). Web Bot Auth
requires "signature-agent";key="sig1":
$ curl ... --httpsig-headers 'authority "signature-agent";key="sig1"'
curl: (43) A libcurl function was given a bad argument
When we signed the second request with yaronf/httpsign instead and
added tag, expires and nonce, samesame accepted it with the older
string form of Signature-Agent. The dictionary form the draft requires
also needs ;key=.
As httpsig is still experimental: would you accept options for
expires, tag and nonce, and parsing of component parameters? If yes,
what shape would you prefer? We are happy to test changes against our
signer and samesame.
An LLM assistant ran these tests and helped us write this in English.
We checked the results.
--
Enfilade, https://enfilade.guide
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html