Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Release v1.0.0 of web-bot-auth crates#66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
AkshatM wants to merge2 commits intomainfromakshat/release-1.0.0

Conversation

@AkshatM
Copy link
Contributor

@AkshatMAkshatM commentedDec 17, 2025
edited
Loading

Release v1.0.0 of web-bot-auth crates

These include some pretty significant and breaking changes:

  1. Dependency ontime library is now required instead ofstd::time
    for all API users. As a bonus, however, we gain support on Cloudflare
    Workers as well as removal of a class of errors related to system
    clocks andcreated /expires parsing.

  2. A number of constructs were removed:WebBotAuthSignedMessage,
    SignedMessage::fetch_all_signature_headers and
    SignedMessage::fetch_all_signature_inputs. The library now exposes
    a single method to look up components to verify.

  3. Signature-Agent can now be parsed as a dictionary, but retains
    support for being parsed as a raw string.

  4. It enforces use ofreq parameter for@authority inhttp-message-dir. This is in
    line with the specification, but can break verification of existing
    sites.

These changes are sufficiently breaking enough to justify using semver
bump.

Make@authority;req errors more prominent + fix example signature generation

This change amends thehttp-signature-dir to print an error log
whendirectories mistakenly sign@authority without thereq
parameter.

It fixes a bug with the example signature agent card generation where
only the host component was used to sign@authority, rather than the
full host and port pair (i.e. theactual authority component). This
led to verifiers being unable to verify generated signatures.

It fixes some minor comments and superfluous Github Actions changes,
and does some basic refactoring to make the logic a bit more
straightforward in the example. Importantly, it also adds the
alg parameter in generated signatures - this is in line with the
opinionated signing we do, whereby other elements normal to web bot auth
are also enforced for arbitrary HTTP signatures.

I also removed the pin on Rust v1.87 in Github Actions, this way we always test against
the latest Rust version.

generationThis change amends the `http-signature-dir` to print an error logwhendirectories mistakenly sign `@authority` without the `req`parameter.It fixes a bug with the example signature agent card generation whereonly the host component was used to sign `@authority`, rather than thefull host and port pair (i.e. the _actual_ authority component). Thisled to verifiers being unable to verify generated signatures.It fixes some minor comments and superfluous Github Actions changes,and does some basic refactoring to make the logic a bit morestraightforward in the example. Importantly, it also adds the`alg` parameter in generated signatures - this is in line with theopinionated signing we do, whereby other elements normal to web bot authare also enforced for arbitrary HTTP signatures.
@AkshatMAkshatMforce-pushed theakshat/release-1.0.0 branch 4 times, most recently fromb18d91c tob044e22CompareDecember 17, 2025 19:31
@AkshatMAkshatM changed the titleAkshat/release 1.0.0Release v1.0.0 of web-bot-auth cratesDec 17, 2025
These include some pretty significant and breaking changes:1. Dependency on `time` library is now required instead of `std::time`   for all API users. As a bonus, however, we gain support on Cloudflare   Workers as well as removal of a class of errors related to system   clocks and `created` / `expires` parsing.2. A number of constructs were removed: `WebBotAuthSignedMessage`,   `SignedMessage::fetch_all_signature_headers` and   `SignedMessage::fetch_all_signature_inputs`. The library now exposes   a single method to look up components to verify.3. `Signature-Agent` can now be parsed as a dictionary, but retains   support for being parsed as a raw string.4. It enforces use of `req` parameter in `http-message-dir`. This is in   line with the specification, but can break verification of existing   sites.These changes are sufficiently breaking enough to justify using semverbump.I also removed the pin to Rust v1.87 in the Github Actions handler. Thisensures we're building against the latest available Rust version.
resolver ="2"

[workspace.package]
version ="0.5.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

given the spec is still evolving, I'd rather cut0.6.0

Copy link
Collaborator

@thibmeuthibmeu left a comment

Choose a reason for hiding this comment

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

overall ok. need to move to 0.6.0 instead I think

Comment on lines -52 to -53
-run:cargo build --all --verbose --exclude plexi-cli --all-features --tests
-run:cargo build --all --verbose --excludeplexi-cli --excludehttp-signature-directory --all-features --tests --target wasm32-unknown-unknown
Copy link
Collaborator

Choose a reason for hiding this comment

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

good call

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@thibmeuthibmeuthibmeu left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@AkshatM@thibmeu

[8]ページ先頭

©2009-2025 Movatter.jp