[P0] Add API Rate Limiting #5
Labels
No labels
audit-2025-12-03
component/api
component/commands
component/llm
component/memory
component/tick-loop
component/tools
priority
high
priority
low
status
in-progress
status
needs-info
status
needs-triage
status
on-hold
type
bug
type
documentation
type
enhancement
type
feature
type
refactor
type
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
blightbow/evennia_ai#5
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?
Problem
The API layer has no throttling configured:
Suggested Fix
Priority
P0 — Immediate (Blocks Production)
Source
Architecture Audit 2025-12-03, Section 4: Missing Rate Limiting
Implementation Complete
Committed in
40e8842e5: Add API rate limiting and payload size validationChanges
api/views/base.py): dispatch() override rejects POST/PATCH/PUT requests exceeding 5MB with 413 responseapi/throttles.py): UserRateThrottle with 1000 requests/hour default (configurable via settings)Configuration
Default rate limiting works out of the box. To customize:
Note: Rate limiting requires Django cache backend for production use.