Feature: Add the ability to query for all global plugins #7249
Replies: 7 comments
-
I think this is indeed missing. Contributions welcome! |
Beta Was this translation helpful? Give feedback.
-
Isn't |
Beta Was this translation helpful? Give feedback.
-
I believe |
Beta Was this translation helpful? Give feedback.
-
@thibaultcha exactly @thefosk Could you show me an example? I'm on v0.9.0 and /plugins shows me all plugins, including the ones that are attached to APIs. I only want to see global plugins. Example: I have 100 plugins. 95 are attached to APIs and 5 are global. I hit Don't get me wrong, I am using |
Beta Was this translation helpful? Give feedback.
-
@ingshtrom off topic; just curious, what's your setup for AB testing with Kong? |
Beta Was this translation helpful? Give feedback.
-
@Tieske basically we have a header that we rewrite into the url (or set a default value) and then Kong routes via |
Beta Was this translation helpful? Give feedback.
-
I took a stab at this but was not successful. In our I could query for all plugin and then filter out which is a very inefficient way to do things. I could not query (using the crud helpers) from the DB itself. Like: SELECT *
FROM plugins
WHERE api_id IS NULL AND
consumer_id IS NULL; Is this even possible? |
Beta Was this translation helpful? Give feedback.
-
Summary
I have the need to query for all plugins where api_id=(nothing) but I can't find a way to do it now. It seems that either the crud_helpers or daos are validating the input as uuid and not allowing other values. While I understand this validation, it causes problems for our provisioning/scheduling application because now we need to get EVERY plugin (and it's config), send that over the wire, and then filter it down in memory... I can only imagine how painful this will become once we start getting enough plugins that we have to page that API... ><
I could probably do it myself, but I need the OK from the team that this is a feature you guys want to support.
OOOORRRRRR, maybe I just missed this and it's already a feature!
Thanks for all of your hard work. Kong is working wonders for our ability to route requests and be able to do AB Testing.
Beta Was this translation helpful? Give feedback.
All reactions