envoyproxy / ratelimit

Go/gRPC service designed to enable generic rate limit scenarios from different types of applications.
Apache License 2.0
2.29k stars 449 forks source link

How can I apply Two Rate limits on the same Key Value pair? #693

Closed kkasbi closed 2 weeks ago

kkasbi commented 2 months ago

I basically want to apply multiple limits to get, post etc methods.

` - descriptors:

  • descriptors:
    • key: method rate_limit: requests_per_unit: 1000 unit: 3 unlimited: false value: get
    • key: method rate_limit: requests_per_unit: 2 unit: 1 unlimited: false value: get
    • key: method rate_limit: requests_per_unit: 400 unit: 3 unlimited: false value: post
    • key: method rate_limit: requests_per_unit: 1 unit: 1 unlimited: false value: post key: path rate_limit: requests_per_unit: 1000 unit: 1 unlimited: false value: /api/v1/subpath`

But the above give the below error,

duplicate descriptor composite key 'apis.tenant.destination_clustercloud.net.path/prd/api/v1/subpath.method_get

Any possible solutions to this?

zirain commented 1 month ago

use different domain?

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.