I´m trying to implement rate-limiting in Kong, but I´m facing some issues when limiting by credential, don´t know if I misunderstood the feature or if it´s the expected behavior.
What I want is to limit the number of requests per user, which means limiting by credential, but the actual limit is being applied by consumer instead. Here´s how I´m applying the plugin:
curl -X POST http://localhost:8001/plugins
–data “name=rate-limiting”
–data “config.minute=5”
–data “config.limit_by=credential”
Today I have only one consumer set, and several credentials. First I do some calls with one user credential until it reaches the limit, then I start calling with different user credential, but Kong is blocking the other users as well due to rate-limiting.