wso2 / wso2/api-platform

[Improvement]: Advanced Rate Limit Policy improvements

Open
#3,359 0 comments 0 reactions 1 assignee View on GitHub

@Saadha123 is already working on this.

Since Sep 3, 2026.

Aspect/Other Type/Improvement
Dominant language
Go
Stars
71
Forks
111
Avg merge
1d 14h
Merged PRs (30d)
110

Description

Description

Problem

Currently, advanced-ratelimit's keyExtraction can only read from headers or properties present on the original request. This means a key set by an earlier policy in the chain
can't be used to selectively apply throttling — there's no way to say "only throttle traffic matching a specific value on a specific resource path," everything reaching a quota
gets bucketed and counted.

A common use case this blocks: applying a rate limit only for a specific client/application on a specific route, while leaving all other traffic on that route completely
unaffected.

Possible Solutions

Provide the option to define a key and a filter to reduce scope — for example, a regex to select which values a quota should apply to:

keyExtraction:
  - type: header
    key: x-app-id
    filter: 'guest-*|channel-partner'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.