Skip to content

feat(security): rate limit by wallet address in addition to IP (#449) - #547

Merged
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
abdulqoyumadegoke:feat/449-wallet-rate-limiting
Aug 31, 2026
Merged

feat(security): rate limit by wallet address in addition to IP (#449)#547
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
abdulqoyumadegoke:feat/449-wallet-rate-limiting

Conversation

@abdulqoyumadegoke

Copy link
Copy Markdown

Closes #449

Summary

Adds wallet address keyed rate limiting in addition to existing IP-based rate limiting across endpoints to prevent distributed abusive request patterns against single wallets or shared NAT IP collision blocks.

Changes Made

  • Added \checkWalletRateLimit\ and \checkDualRateLimit\ helpers in \src/lib/observability/rateLimiter.ts.
  • Integrated wallet-based rate limiting on /api/auth/challenge\ when wallet addresses are provided.
  • Added comprehensive unit tests covering wallet address rate limiting in \�pi/auth/challenge.test.ts\ and \src/test/observability.test.ts.

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@abdulqoyumadegoke Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@barry01-hash
barry01-hash merged commit 1a7b5e8 into PromptMintLabs:main Aug 31, 2026
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.

Rate limit by wallet in addition to IP

3 participants