Skip to content

Implement Free Tier API Key and IP-Based Rate Limiting #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
7 tasks
ylembachar opened this issue Apr 14, 2025 · 1 comment · May be fixed by #62
Open
7 tasks

Implement Free Tier API Key and IP-Based Rate Limiting #58

ylembachar opened this issue Apr 14, 2025 · 1 comment · May be fixed by #62
Assignees

Comments

@ylembachar
Copy link
Collaborator

Description

Implement a rate-limited free tier for the Shutter API. This will be used by default for all users accessing the API with a public API key. Limits should be enforced based on IP address, with stricter rules for endpoints such as the identity registration endpoint.

Requirements

  • Add a public API key to access the endpoints
  • Enforce global rate limit per IP address (e.g., 100 requests/day)
  • Enforce stricter rate limit per IP for the identity registration endpoint (e.g., 30/day)
  • Use IP address for rate limiting
  • Rate limits should be configurable per endpoint via environment variables or config
  • Add monitoring/logging for rate limit hits
  • Conduct basic load testing to validate rate thresholds per API instance

Notes

  • This tier is meant for public usage.
  • No authentication or payment is required at this tier.
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 a pull request may close this issue.

2 participants