Skip to content

fix(auth): defer dynamic input bounds until authorization - #40

Merged
drewstone merged 5 commits into
mainfrom
fix/input-bound-authorization-20260902
Sep 2, 2026
Merged

fix(auth): defer dynamic input bounds until authorization#40
drewstone merged 5 commits into
mainfrom
fix/input-bound-authorization-20260902

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Summary\n\n- Quote x402 requests with an explicit conservative unauthenticated input bound.\n- Run dynamic inputTokenBound only after payment authentication and authorizeConsumer.\n- Pass verified consumer and API-key owner context, recompute the execution budget, and reject underfunded payments before claim.\n- Export maximumBillableInputTokens from the package root and cover the public/security contracts.\n\n## Verification\n\n- pnpm test (445 passed)\n- pnpm typecheck\n- pnpm build\n- git merge-tree --write-tree origin/main HEAD\n\nCloses the cross-owner retained-history side channel identified during review.

@drewstone
drewstone merged commit 90ed0fd into main Sep 2, 2026
3 checks passed
@drewstone
drewstone deleted the fix/input-bound-authorization-20260902 branch September 2, 2026 05:45
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