You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a field is empty, it should not be added to REST request.
As a consequence, ip-restriction plugin doesn't work properly when configured with kong-dashboard. If I configure with the whitelist only, here's the resulting configuration:
Thanks for reporting, i'll have a look at this. But I remember having changed my mind several times regarding empty fields. When updating a plugin for instance, there are cases where you cannot reset an attribute using a PUT request unless you submit an empty string.
I'm wondering if it would not be better to create an issue on kong repository for this plugin. With such a configuration:
When a field is empty, it should not be added to REST request.
As a consequence,
ip-restriction
plugin doesn't work properly when configured with kong-dashboard. If I configure with the whitelist only, here's the resulting configuration:As you can see,
blacklist
is created with an empty object, and it makes the plugin consider there's a blacklist defined.Also, I think
_whitelist_cache
and_blacklist_cache
are added by kong-dashboard too, but is not required.The text was updated successfully, but these errors were encountered: