Skip to content

[#408] Add per-user rate limiting to raffle creation endpoint - #454

Merged
Otaiki1 merged 2 commits into
crackedstudio:masterfrom
yinkscss:fix/408-add-per-user-rate-limiting-to-raffle-creation-endpoint
Apr 29, 2026
Merged

[#408] Add per-user rate limiting to raffle creation endpoint#454
Otaiki1 merged 2 commits into
crackedstudio:masterfrom
yinkscss:fix/408-add-per-user-rate-limiting-to-raffle-creation-endpoint

Conversation

@yinkscss

@yinkscss yinkscss commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Closes #408

What changed

  • Added wallet-address tracking in TikkaThrottlerGuard for POST /raffles* routes so limits are per-user instead of per-IP.
  • Added configurable env vars: RAFFLE_CREATE_RATE_LIMIT and RAFFLE_CREATE_RATE_WINDOW_SECONDS.
  • Applied route-level throttle policy on raffle metadata creation endpoint and added guard unit tests.

Validation

  • npm run build
  • npm test -- --runInBand

yinkscss and others added 2 commits April 28, 2026 21:55
Apply a raffle-create throttle policy that keys limits by authenticated wallet address on raffle POST routes, with env-configurable limits and guard coverage to ensure 429 behavior remains informative.
@vercel

vercel Bot commented Apr 29, 2026

Copy link
Copy Markdown

@Otaiki1 is attempting to deploy a commit to the otaiki1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Otaiki1
Otaiki1 merged commit b94d220 into crackedstudio:master Apr 29, 2026
0 of 2 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.

Add per-user rate limiting to raffle creation endpoint

2 participants