-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
P1: HighShould be resolved in current sprint. Causes material UX or security degradation.Should be resolved in current sprint. Causes material UX or security degradation.area: backendServer, API, or serverless functions.Server, API, or serverless functions.type: securityRelates to authentication, secrets, or attack surface.Relates to authentication, secrets, or attack surface.
Description
📝 Description
Provide memory capabilities to the AI bot while establishing hard rate limits. This prevents API abuse and guarantees budget predictability.
🎯 Acceptance Criteria
- Setup Upstash Redis for stateless short-term memory (TTL 30 minutes)
- Implement IP and Session based Token Bucket rate-limiting (e.g. 20 messages / hr / IP)
- Scrub aggressive or unsanitized input via regex checks before proxying to LLM provider
- Graceful UI degradation returning 429 Too Many Requests to client with helpful message
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1: HighShould be resolved in current sprint. Causes material UX or security degradation.Should be resolved in current sprint. Causes material UX or security degradation.area: backendServer, API, or serverless functions.Server, API, or serverless functions.type: securityRelates to authentication, secrets, or attack surface.Relates to authentication, secrets, or attack surface.