Support for 0.14.0 - services, routes, and other compatibility changes.#150
Support for 0.14.0 - services, routes, and other compatibility changes.#150dgradl wants to merge 2 commits into
Conversation
a2a4fbf to
9420f67
Compare
|
Ok I don't know why snyk is complaining - I've run it locally and it passes. Clicking details doesn't help because I do not have permissions. |
|
@dgarlitt snyk is a security tool it is scanning for potentially vulnerable packes konfig depends on. Here is the details although this is not specific to your branch. |
|
Yes I understand, I installed snyk and ran a snyk test locally and it does not find the vulnerabilities you've listed there, so that is what I find strange. |
|
@dgradl you can try removing the existing modules and lockfile Edit: keep in mind you'll need to add the updated lockfile to the pr |
|
@dgradl I was looking at your branch Kong0140. When adding a new Route i see a PUT being made instead of POST. Kong document also says it is a POST. (https://docs.konghq.com/0.14.x/admin-api/#add-route) |
|
It is undocumented. Routes have no name so it's difficult to support update or remove in kongfig without some reference. |
|
FWIW, Routes are getting a name in 1.0 :) If you see undocumented methods, we will backlog it and fix it on our side, but would also welcome a PR to our documentation! Great job @dgradl! |
|
@dgradl I tried using the Branch for a simple service. I get Error: Not Allowed Please take a look. |
|
Check your kong version. The integration tests validate that it works. I've also already started using this branch and migrated 50 of my apis to service/routes. |
|
@dgradl I use 0.33 enterprise edition. FAIL test-integration/service.test.js (10.718s) |
|
Its tested against 0.14 community. As the PR indicates. I don't know what version of enterprise that Kong PR I referenced would be merged into. I certainly have no way to test against enterprise edition and I make no claim that this works with it. |
|
Hello @dgradl I made some changes and got it working from 0.13. However since there is no way to find if a route already exists under a service, it keeps creating duplicate routes. For example if run { |
|
Yes I gave up on 0.13 support for that reason. Without a name or the put how can you associate the route in your yaml with the route in kong. You would have to match on hosts, paths, and methods. Except that any update you make would look like a new route. You could just delete all routes and replace every time. But this would result in your api being temporarily unavailable each time you run kongfig. |
|
any new about supporting routes and services? |
|
any news? |
|
We've been using this to automate k8s and Docker deployments: https://github.com/liyuntao/kong-init |
|
Anything on this? I'd really like to be able to use this. |
|
I really struggled to get snyk to be happy with the dependencies as there
were vulnerabilities before I even made updates. But I will take another
stab at it soon. Though not sure if any PRs are getting merged on this
repo.
…On Thu, Jan 10, 2019, 3:45 AM mrgavinconway001 ***@***.***> wrote:
Anything on this? I'd really like to be able to use this.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAF2nXOonplTC6VssIs_6qPYVc59VeM7ks5vBv2wgaJpZM4W1-KC>
.
|
Hi Dan, |
|
Finally snyk is happy. Please approve. |
|
@dgradl does your PR fix service and route backups? |
|
pagination? service and route backups? Not really sure what you all mean. But like I don't really think anyone will ever merge this and I don't really care anymore. I've been using it to manage my Kong environment for the past 6 months. |
|
hey all, can we please get this merged in? |
|
This one need to be merged |
|
Anyone fancy clicking that magic merge button? |

This provides support for Kong 0.13.0 Services and Routes. Specifically it was tested against 0.14.0. I tried to follow the patterns throughout the existing codebase. Unit and integration tests have been added and all tests are passing. I tried to allow for backwards compatibility, but there were some breaking API changes in 0.14.0 with certificates and I could not think of a way with the routes to deal with the compatibility change. Also, though I Initially replicated from API Plugins I removed the consumer based plugins thinking it wasn't supported but it is. I don't really have a use case for it so I don't have time immediately to go back and update that.
#132