Skip to content

Bump jdtw.dev/token to v0.1.6 - #25

Merged
jdtw merged 1 commit into
mainfrom
chore/bump-token-v0.1.6
Jul 31, 2026
Merged

jdtw merged 1 commit into
mainfrom
chore/bump-token-v0.1.6

Conversation

@jdtw

@jdtw jdtw commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

Bumps jdtw.dev/token v0.1.5 → v0.1.6, picking up two fixes from jdtw/token#3:

  • serverResource no longer double-unescapes the request path. It could reject legitimately-signed requests whose path contains a literal % followed by hex digits, and more importantly broke the invariant that the resource a client signs matches the resource the server checks.
  • MapVerifier.pruned now advances correctly, so nonce pruning is scheduled once per window instead of spawning a new goroutine on every single Verify call once the first window has elapsed -- this is the nonce verifier links actually uses (pkg/links/server.go).

Test plan

  • go build ./...
  • go vet ./...
  • go test ./...
  • ./docker_test.sh -- full integration suite against a real Postgres instance, exercising the actual sign/verify and nonce-checking path

🤖 Generated with Claude Code

Picks up two fixes:
- serverResource no longer double-unescapes the request path, which
  could reject legitimately-signed requests (or, for a consumer that
  scopes tokens per-resource, allow a token to authorize a resource
  other than the one it was signed for).
- MapVerifier.pruned now advances correctly, so nonce pruning is
  scheduled once per window instead of spawning a goroutine on every
  single Verify call once the first window has elapsed.

Verified with go test ./... and the full docker-based integration
suite (./docker_test.sh) against a real Postgres instance, exercising
the actual sign/verify and nonce-checking path this app depends on.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jdtw
jdtw merged commit 9def089 into main Jul 31, 2026
1 check 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.

1 participant