bcgov / gwa

Gateway Administration
https://catalogue.data.gov.bc.ca/dataset/api-gateway-administration
Apache License 2.0
7 stars 3 forks source link

Rate Limiting per Group #24

Open BK01 opened 7 years ago

BK01 commented 7 years ago

Is your feature request related to a problem? Please describe.

Rate limits are applied to endpoints, or at anonymous calls vs. API key holders.

Describe the solution you'd like

Implement functionality to allow API owner to set a separate (or the same) rate limit per group. This will allow for a more detailed approach to rate limiting based on individual groups.

pauldaustin commented 7 years ago

Kong doesn't support plugins (e.g. rate-limiting) by group. Only by consumer or for a whole API.

In fact kong doesn't even have a concept of a group. It has acls, which are like groups, but it's not a concrete concept. An acl for a API is just a list of group names. And for a user they have a list of group names they are a member of. But there isn't a group object that things could be tied to.

This functionality would likely require deep architectural changes within kong for it to work, or a new plugin that has it's own data.

I'd like to hold off on this to version 1.2.0 once we get the existing 1.1.0 functionality finished.

BK01 commented 7 years ago

Issue on hold. To be re-evaluated after 1.1.0.

pauldaustin commented 6 years ago

Let's see if kong will support this:

https://discuss.konghq.com/t/support-for-attaching-api-plugins-to-groups/482

wjykl33 commented 4 years ago

Let's see if kong will support this:

https://discuss.konghq.com/t/support-for-attaching-api-plugins-to-groups/482

Hello,Excuse me, whether this function has been implemented?