-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support plugins on a per endpoint (and HTTP method?) basis #160
Comments
should be in the KONG RESTful interface? |
This also means allowing to configure the same plugin for the same API multiple times. Examples:
|
+1 |
I should also add that certain plugins could also be per method as well. |
@thefosk is this happening in the coming 0.3? |
Not in |
+1 |
1 similar comment
+1 |
This feature should also enable plugins not just per endpoint, but per HTTP method too. Like: curl 127.0.0.1:8001/apis/test.com/plugins/
-d "name=keyauth" \
-d "path=/hello/*/world/*" \
-d "method=POST, DELETE" |
What's the status on this? I see it was removed from the 0.3.1 milestone, is it still a planned feature? One more thing to be brought up is support for wildcards or regex when applying to endpoints. |
@montanaflynn the milestones are here now: https://github.com/Mashape/kong/wiki |
Closed in favor of #505. |
### Summary #### libyaml 0.2.2 release - #95 -- build: do not install config.h - #97 -- appveyor.yml: fix Release build - #103 -- Remove unused code in yaml_document_delete - #104 -- Allow colons in plain scalars inside flow collections - #109 -- Fix comparison in tests/run-emitter.c - #117 -- Fix typo error - #119 -- The closing single quote needs to be indented... - #121 -- fix token name typos in comments - #122 -- Revert removing of open_ended after top level plain scalar - #125 -- Cherry-picks from PR 27 - #135 -- Windows/C89 compatibility - #136 -- allow override of Windows static lib name #### libyaml 0.2.3 release - #130 Fixed typo. - #144 Fix typo in comment - #140 Use pointer to const for strings that aren't/shouldn't be modified - #128 Squash a couple of warnings in example-deconstructor-alt - #151 Fix spelling for error message - #161 Make appveyor config be a hidden file - #159 Add CHANGES file - #160 Always output document end before directive (YAML 1.2 compatibility) - #162 Output document end marker after open ended scalars - #157 change cmake target name from libOFF.a to libyaml.a - #155 include/yaml.h: fix comments - #169 Fixed missing token in example - #127 Avoid recursion in the document loader. - #172 Support %YAML 1.2 directives - #66 Change dllexport controlling macro to use _WIN32
Right now plugins encompass the entire API, meaning that they are invoked for every endpoint.
An amazing feature would be to allow specifying specific endpoints that the plugin works for, should no endpoints be specified it encompasses the entire API.
This shouldn't be done on a per plugin basis as that is not a DRY approach and would require each plugin to do additional work. The check should happen before the plugin is invoked.
The text was updated successfully, but these errors were encountered: