Skip to content

[Bug]: LLM Proxy global advanced rate-limit policy does not apply globally unless keyExtraction is configured #2504

Description

@ashera96

Please select the area the issue is related to

Area/Management (Management API or Management Portal UI)

Please select the aspect the issue is related to

Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)

Description

When advanced rate-limit policy is configured globally for an LLM Proxy, if keyExtraction is not set to apiname, a global bucket is not created; a resource-level bucket is initiated instead.

Note that this is working as expected for LLM Providers.

Steps to Reproduce

  1. Create LLM provider and a proxy using it
  2. Attach global rate-limit policy via the rate-limit configuring tab in the AI Workspace/ advanced-rate-limit policy via the Guardrails & Policies tab.
  3. Deploy and invoke the LLM proxy and notice how the rate-limiting has not applied globally, rather unique buckets are created against each resource.
  4. If keyExtraction is configured, this will work as expected by creating a global bucket

Severity Level of the Issue

Severity/Major (Important functionality is broken. Should be prioritized. Doesn't need immediate attention)

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Labels

Area/ManagementAny issues related to Management API or Management Portal UIAspect/APIAPI definitions, contracts, OpenAPI, interfacesSeverity/MajorType/Bug

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions