justeat / kongverge Goto Github PK
View Code? Open in Web Editor NEWA desired state configuration tool for Kong
License: Other
A desired state configuration tool for Kong
License: Other
If Kong responds with a 400 status code (Bad Request) while we are applying configuration changes via the Admin API, this indicates that something about our target configuration is invalid. In this case, we should attempt to rollback to the previous configuration that was in place before beginning the configuration changes, so that we leave Kong in a known working state.
Kongverge will allow regex patterns that don't match this requirement.
Kongverge could easily reject routes configured without a "/" as the initial character.
The only documentation around this doesn't appear to call this out as a specific requirement - however it does call out that the routes are anchored on matching the first character anyway, so it makes no sense for a route that doesn't start with a "/" character.
We require that KongService
files declare the "name" property, which is optional for Kong, but required for Kongverge to perform matching for determining if there any changes.
The ToString()
method override for Route
fails when any of the following properties are null
:
Validation of route configuration fails in the following cases:
Currently, we perform some rudimentary validation of configuration objects when reading files from disk. We'd like to perform this validation more thoroughly, so that any potential errors are found before we begin the workflow to synchronize the configuration to Kong. This will help to make sure that the workflow doesn't fail halfway through and leave Kong in a broken/undefined state.
Things we'd like to validate are:
Service
are set to valid valuesRoute
are set to valid valuesPlugin
are set to valid valuesWe enabled basic auth on our Kong node. However, Kongverge does not support such a form of authentication, yet. In addition, the error code does not provide an appropiate error code. Am I doing something wrong, or isn't it supported, yet?
C:\Users\p.wessels>kongverge --host localhost --port 7001 --output C:\Users\p.wessels\Desktop --verbose
[16:50:25 INF] ************** Kongverge 1.2.0.150 **************
[16:50:25 INF] Exporting configuration from Kong
[16:50:25 ERR] Specified host unreachable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.