-
Notifications
You must be signed in to change notification settings - Fork 129
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
Feature request: support plugins on a combination of resources #13
Comments
hi @hbagdi, I have a questions here.. Does this fit under this request? |
What is the error do you see? |
I have configured two different consumers.
also I have configured a JWT plugin and I added in the "config.anonymous" field the "anonymous consumer's id" - this is the problem, explained below So If I do a ./deck dump, everything works good and I have something like this:
but as you can see the "anonymous consumer's id " is not referenced to the consumer. Next time I try to ./deck sync (eg. for another instance) that consumer's id won't exist, so a valid request like
is going to to tell me
|
@JavierTMC Apologies for the late response here. This feature requires that IDs can be specified on entities. In the interim you can solve the problem using decK and Kong 1.1 or 1.2:
Hope that helps. Let me know if you would like me to elaborate. |
@hbagdi I also ask for apologies for the late response.. I am not sure if I did what you requested, but basically, I created the consumer manually and then I used the consumer's ID and put it in decK's configuration file. Then I ran the deck sync command and plugin was updated with correct consumer's ID. I just called a route and it worked as expected, no error received. I didn't tag anything, I am not sure I get that correct. |
Was the consumer you created manually present in the config file you supplied to decK? If not, then decK will delete the manually created consumer when you run |
Yeah - I created the anonymous consumer manually and the request-termination plugin as part of it, then included this configuration in the kong.yaml and only changed the If I remove that configuration from decK, the consumer is removed. But yeah, I guess the only way for this to work right now, is to put all the configuration ind decK for any entity manually created, and get the ID of that resource and use it when necessary. This is not the best solution but it works. I was thinking that maybe having some intrinsic referencing within the decK configuration yaml can work to solve this. something like..
something really similar as AWS CloudFormation templates |
This is something that I've thought on doing but haven't seen a lot of need yet |
sure thing! |
Kong allows configuring plugins for any combination of Consumer, Service and Route.
These are currently not configurable via deck.
The text was updated successfully, but these errors were encountered: