Skip to content

Support draft-directory-04 with sf-dictionary signature-agent#63

Merged
thibmeu merged 4 commits into
cloudflare:mainfrom
thibmeu:update-signature-agent-sf-dictionary
May 26, 2026
Merged

Support draft-directory-04 with sf-dictionary signature-agent#63
thibmeu merged 4 commits into
cloudflare:mainfrom
thibmeu:update-signature-agent-sf-dictionary

Conversation

@thibmeu

@thibmeu thibmeu commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

This commits adds support for sf-dioctionary headers in http-message-sig, and paired signature-agent as a dictionary format.

This is made to be backward compatible: old test vectors still pass.

The implementation of sf-dictionary is primitive, and likely does not pass all tests for RFC 8941.

This is acceptable for now. We could publish this as an alpha.

The new test vectors are added in
thibmeu/http-message-signatures-directory#79, and have a corresponding json
web_bot_auth_architecture_v2.json. They can be imported by other implementations.

@thibmeu thibmeu requested a review from AkshatM November 2, 2025 15:10
@thibmeu thibmeu self-assigned this Nov 2, 2025
@thibmeu thibmeu added the enhancement New feature or request label Nov 2, 2025
@thibmeu thibmeu force-pushed the update-signature-agent-sf-dictionary branch from 28a3d83 to 5afdf96 Compare November 4, 2025 22:52
@thibmeu

thibmeu commented Nov 17, 2025

Copy link
Copy Markdown
Collaborator Author

@AkshataDM ping

@AkshatM AkshatM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the implementation works, just left a minor comment for supporting more liberal input to the verifier.

Comment thread packages/http-message-sig/src/types.ts Outdated
Comment thread packages/http-message-sig/src/parse.ts Outdated
Comment thread packages/http-message-sig/src/parse.ts Outdated
This commits adds support for sf-dioctionary headers in
http-message-sig, and paired signature-agent as a dictionary format.

This is made to be backward compatible: old test vectors still pass.

The implementation of sf-dictionary is primitive, and likely does not
pass all tests for [RFC 8941](https://www.rfc-editor.org/rfc/rfc8941.html).

This is acceptable for now. We _could_ publish this as an alpha.

The new test vectors are added in
thibmeu/http-message-signatures-directory#79,
and have a corresponding json
[web_bot_auth_architecture_v2.json](./packages/web-bot-auth/test/test_data/web_bot_auth_architecture_v2.json).
They can be imported by other implementations.
@thibmeu thibmeu force-pushed the update-signature-agent-sf-dictionary branch from 5afdf96 to 4e5285d Compare April 27, 2026 12:57
@thibmeu thibmeu force-pushed the update-signature-agent-sf-dictionary branch from f80d9ab to 2b5d0b9 Compare May 1, 2026 15:59
@thibmeu

thibmeu commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

updated the PR so support is actually closer to RFC 8941. i also reuse directory parsing instead of reimplementing it. some more test about directory normalisation as well

this should especially help to validate the latest version of arechitecture draft

@thibmeu thibmeu merged commit 0cb52b1 into cloudflare:main May 26, 2026
4 checks passed
@thibmeu thibmeu deleted the update-signature-agent-sf-dictionary branch May 26, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants