Repository navigation
Release 0.4.0: Web Bot Auth and version bump - #13
Merged
Merged
Conversation
- httpsig: RFC 9421 signature base, Signature-Input/Signature parsing, Ed25519 signing and strict verification, Content-Digest. - wba: Web Bot Auth profile (draft-ietf-webbotauth-httpsig-protocol-01). Ed25519 keys with RFC 8037 thumbprint keyids, Dictionary Signature-Agent (legacy String form opt-in), verified/invalid/unverified outcomes with key lookup keyed on (URL, keyid), signed directory responses. Reproduces the draft's Ed25519 test vectors and RFC 9421 B.2.6. - resolver_wba (fetch): SSRF-limited directory fetching (https only, no redirects, non-public addresses refused, size/key/time caps) and a cache that a failed refetch never evicts. - Binding: optional cnf.jkt credential claim and web_bot_auth discovery field; verify_bound_request requires the signature to cover the Authorization credential, cnf.jkt to match the keyid, and the issuer to vouch for the Signature-Agent URL. - agentpin-server --wba-key serves a signed key directory for its own hosts only; CLI gains `wba keygen|directory|sign` and `issue --wba-jkt`. The ES256 credential profile is unchanged.
- httpsig: PublicKey/PrivateKey for ed25519 and rsa-pss-sha512 (ring, 2048-8192 bit keys); a present alg parameter must match the key. - @query-param component per RFC 9421 section 2.2.8. - wba: RSA JWKs in directories with RFC 7638 thumbprints; optional VerifyOptions::nonce_store, checked only after a signature verifies. - CLI and server accept RSA keys; wba sign gains --query-param. - Shared vectors in testdata/web_bot_auth/vectors.json, including the draft's RSA-PSS vectors, which now verify.
RFC 9421 signatures (ed25519, rsa-pss-sha512, @query-param) on a strict structured-field parser, the WBA profile with verified / invalid / unverified outcomes and optional nonce replay checks, signed key directories, a hardened caching directory resolver, and the AgentPin binding (cnf.jkt, web_bot_auth discovery field, issueBoundCredential). Passes the shared vectors in testdata/web_bot_auth. No runtime dependencies added.
RFC 9421 signatures (ed25519, rsa-pss-sha512, @query-param) on a strict structured-field parser, the WBA profile with verified / invalid / unverified outcomes and optional nonce replay checks, signed key directories, a caching directory resolver whose fetches connect only to vetted public addresses, and the AgentPin binding (cnf.jkt, web_bot_auth discovery field, issue_bound_credential, verify_credential_with_resolver). Passes the shared vectors in testdata/web_bot_auth. No runtime dependencies added.
Go: RFC 9421 signatures (ed25519, rsa-pss-sha512, @query-param) on a strict structured-field parser, the WBA profile with optional nonce replay checks, signed key directories, a caching directory resolver that vets addresses at dial time, the AgentPin binding (cnf.jkt, web_bot_auth discovery field, IssueBoundCredential), and CLI commands wba keygen, directory and sign plus issue --wba-jkt. Passes the shared vectors in testdata/web_bot_auth. Standard library crypto only. JS and Python now refuse RSA signing keys above 4096 bits, matching the Rust crate; verification still accepts up to 8192.
Spec section 18 adds rsa-pss-sha512 (sign with 2048-4096 bit keys, verify up to 8192), @query-param and the replay-protection guidance. The guide, CLI guide, changelog, README and SKILL.md cover the new options and the JavaScript, Python and Go implementations. The Rust crate and CLI state the 4096-bit RSA signing limit.
Go 1.26.9 is affected by GO-2026-6809 (crypto/x509), fixed in 1.26.10. pip-audit was auditing stale cached copies of its own dependencies; install it with the eager upgrade strategy.
pip-audit with no target also audits its own tooling. On Python 3.10 that includes filelock 4.1.0, whose fix requires Python 3.11, so the job could not pass. Audit the project instead.
…ories, AgentPin binding' (#3) from feature/web-bot-auth into main
Bump the Rust crate, JavaScript package, Python package and Go SDK to 0.4.0. Date the changelog, add the 0.3.1 entry, and update SKILL.md, ROADMAP.md and context7.json for the security release and Web Bot Auth.
On hosts where localhost resolves to ::1 first, Node 18 dials only that address and cannot reach the IPv4 test listener.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.4.0
Release 0.4.0 across the Rust crate, JavaScript package, Python package and Go SDK.
crates/agentpin/Cargo.toml,python/pyproject.tomland__version__,javascript/package.jsonand the exportedversion,go/internal/version/version.go.[0.4.0] - 2026-11-11; the misplaced Rust cryptography block moves into it; a[0.3.1]entry records the Rust-only backport already on crates.io.SKILL.md: version, description and a Web Bot Auth section.ROADMAP.md: 0.4.0 marked shipped with what it actually contains; the planned mutual-auth handshake and hardware-backed keys move to 0.5.0.README.md,context7.json: version and description.Also bumps the CI Go toolchain to 1.26.11 (GO-2026-6809) and audits the Python project's dependencies instead of the CI environment.
Web Bot Auth
Adds Web Bot Auth (draft-ietf-webbotauth-httpsig-protocol-01) support to AgentPin. The ES256 credential profile is unchanged.
What's included
ed25519andrsa-pss-sha512, including@query-paramcoverage./.well-known/http-message-signatures-directoryfromagentpin-server, or generated withagentpin wba directory.cnf.jkt;verify_bound_requestchecks the signature, the credential,authorizationcoverage, the thumbprint match, and that the issuer's discovery document vouches for theSignature-Agentdirectory.agentpin wbaandissue --wba-jktin the Rust and Go CLIs.docs/web-bot-auth.md, CHANGELOG, CLI guide.Notes
Testing
testdata/web_bot_auth/vectors.json: the draft's Ed25519 vectors reproduce byte for byte and its RSA-PSS vectors verify in all four implementations.🤖 Generated with Claude Code
https://claude.ai/code/session_01RBNBmq8ruAYGSJovhU7YN8