Skip to content

No rate limiting at TTS server level — unprotected against burst requests #995

Description

@hman38705

Labels: tts, security, reliability

Priority: Medium

Description

services/tts/src/server.ts does not configure any rate limiting middleware. Burst requests to the TTS service can exhaust provider API quota or the job queue, causing failures for legitimate users.

Acceptance Criteria

  • Add express-rate-limit middleware with configurable TTS_RATE_LIMIT_PER_MINUTE (default 60)
  • Add IP-based rate limiting for anonymous callers and API-key-based limits for authenticated callers
  • Return 429 with a Retry-After header when the limit is exceeded
  • Add a test verifying the rate limit fires on the N+1 request

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programreliabilityResilience, recovery, and uptimesecuritySecurity vulnerabilities and hardeningttsText-to-Speech service

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions