Skip to content

test(paywall): GPTBot pays past its free allowance (x402-gateway 0.18) (0.80.5) - #431

Merged
ralyodio merged 1 commit into
mainfrom
fix/paywall-test-gateway-018
Nov 14, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/paywall-test-gateway-018

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

The v0.80.4 release's test job failed on the crawl door charges GPTBot with a PAYMENT-REQUIRED header (main since #429). x402-gateway gives training crawlers 100 free requests a minute per caller address (botQuota). The test sent a single request with no address, so there was nothing to meter and nothing was charged. The test now sends from an address and expects the 402 once the allowance is used up.

The mac-x64 desktop failure in the same run was a flaky runner (hdiutil: couldn't eject disk2 - Resource busy).

🤖 Generated with Claude Code

…02-gateway 0.18), unblocks the 0.80.4 release (0.80.5)

The crawl-door test sent one GPTBot request with no address; the gateway's
botQuota (100 free requests a minute per caller address) has no identity to
meter then, so it never charged and the release's test job failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

0 finding(s) in the 2 file(s) this pull request changes.

Nothing in the files this pull request changes.

56 pre-existing finding(s) elsewhere in the repository — **HIGH**: 17 | **MEDIUM**: 15 | **LOW**: 24

Not introduced by this pull request.

Severity Rule Location
HIGH secret-database-url .github/workflows/translation.yml:31
HIGH secret-generic-credential src/hls.ts:81
HIGH js-ssrf-outbound-request src/music-hub.ts:304
HIGH js-host-header-trust src/server.ts:3133
HIGH js-host-header-trust src/server.ts:3147
HIGH js-host-header-trust src/server.ts:3164
HIGH js-host-header-trust src/server.ts:3173
HIGH js-host-header-trust src/server.ts:3178
HIGH js-host-header-trust src/server.ts:3281
HIGH js-host-header-trust src/server.ts:3347
HIGH js-host-header-trust src/server.ts:3434
HIGH js-host-header-trust src/server.ts:3462
HIGH js-host-header-trust src/server.ts:3632
HIGH js-host-header-trust src/server.ts:3648
HIGH js-ssrf-outbound-request web/src/app.ts:115
HIGH js-ssrf-outbound-request web/src/app.ts:163
HIGH js-ssrf-outbound-request web/src/app.ts:167
MEDIUM js-unescaped-html-sink backtoschool/src/main.ts:95
MEDIUM js-unescaped-html-sink backtoschool/src/main.ts:241
MEDIUM js-unescaped-html-sink backtoschool/src/main.ts:257

…and 36 more; the full set is in the SARIF artifact.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 3b2bd75 into main Nov 14, 2026
6 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.

1 participant