API Rate Limiting #75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tasks
go get golang.org/x/time/rate(or usego-chi/httprate)internal/api/middleware/ratelimit.go:user_id) rate limiting/auth/*): 10 req/min (prevent brute force)POST /jobs/:id/runs): 30 req/min per user429 Too Many Requestswith headerRetry-After: <seconds>when limit exceededAcceptance Criteria
429withRetry-Afterheader