Skip to content

Release 0.4.0: Web Bot Auth and version bump - #13

Merged
jaschadub merged 15 commits into
mainfrom
release/0.4.0
Nov 12, 2026
Merged

jaschadub merged 15 commits into
mainfrom
release/0.4.0

Conversation

@jaschadub

Copy link
Copy Markdown
Contributor

Release 0.4.0

Release 0.4.0 across the Rust crate, JavaScript package, Python package and Go SDK.

  • Version bumps: crates/agentpin/Cargo.toml, python/pyproject.toml and __version__, javascript/package.json and the exported version, go/internal/version/version.go.
  • CHANGELOG: the unreleased sections become [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

  • RFC 9421 signing and verification with ed25519 and rsa-pss-sha512, including @query-param coverage.
  • Key publication: signed /.well-known/http-message-signatures-directory from agentpin-server, or generated with agentpin wba directory.
  • Identity binding: credentials carry the WBA key thumbprint in cnf.jkt; verify_bound_request checks the signature, the credential, authorization coverage, the thumbprint match, and that the issuer's discovery document vouches for the Signature-Agent directory.
  • Replay protection: optional nonce store, recorded only after a signature verifies.
  • All SDKs: Rust, JavaScript, Python and Go, plus agentpin wba and issue --wba-jkt in the Rust and Go CLIs.
  • Docs: spec §18, docs/web-bot-auth.md, CHANGELOG, CLI guide.

Notes

  • RSA signing keys are capped at 4096 bits in every SDK (ring's signing limit); verification accepts 2048 to 8192 bits.
  • Only plain RSA PEM keys (PKCS#8 or PKCS#1) are accepted; RSASSA-PSS OID keys are rejected.

Testing

  • Shared vectors in 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.
  • Rust: 301 tests, fmt and clippy clean. JS: 306 tests. Python: 447 passed, 1 skipped, ruff clean. Go: all packages pass, gofmt and vet clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RBNBmq8ruAYGSJovhU7YN8

ai-leaks and others added 15 commits October 10, 2026 13:26
- 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.
@jaschadub
jaschadub merged commit 2ceea89 into main Nov 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants