Skip to content

AetherGuard RAG module -- API Key Rate Limiting Not Enforced – Multiple Requests Allowed Despite 1 Request/Minute Configuration #2

Description

@sajjadniazi

The API key rate limiting mechanism does not appear to be enforcing the configured request threshold correctly.

An API key configured with a rate limit of 1 request per minute is able to successfully execute multiple requests within the same one-minute window.

This behavior defeats the purpose of rate limiting and may lead to excessive API consumption.

Preconditions
API key exists and is active.
Rate limit is configured as 1 request/minute.

Steps to Reproduce

  1. Create or use an API key with a rate limit of 1 request/minute.
  2. Send a successful API request using the key.
  3. Immediately send one or more additional requests within the same minute.
  4. Observe the API responses.

Actual Result

  1. Multiple requests are processed successfully within the same one-minute window.
  2. No rate limit validation or throttling is triggered.
  3. No HTTP 429 (Too Many Requests) response is returned.

Expected Result

  1. Only the first request within the configured one-minute window should be allowed.
  2. Subsequent requests within the same window should be blocked.
  3. API should return an appropriate error response (e.g., HTTP 429 Too Many Requests) with a meaningful message indicating the rate limit has been exceeded.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions