Files
aperture/proxy
Slyghtning be65147fee proxy: integrate rate limiter into service and proxy
Add rate limiting integration to the aperture proxy:

- Service struct: Add RateLimits configuration field and rateLimiter
  instance field
- prepareServices(): Validate rate limit config at startup, compile
  path regexes, and initialize RateLimiter instances per service
- ServeHTTP(): Check rate limits after auth level determination but
  before authentication, applying to all requests including
  auth-whitelisted paths
- sendRateLimitResponse(): Return HTTP 429 with Retry-After header for
  REST clients, or gRPC ResourceExhausted status for gRPC clients

The rate limiter key is extracted from the L402 token ID when present,
falling back to the client IP address for unauthenticated requests.
2026-01-23 09:05:56 -05:00
..