GithubHelp home page GithubHelp logo

justeat / kongverge Goto Github PK

View Code? Open in Web Editor NEW
23.0 12.0 9.0 214 KB

A desired state configuration tool for Kong

License: Other

C# 100.00%
kong kong-gateway configuration desired-state-configuration

kongverge's Issues

Automatically rollback if Kong responds with 400 when applying configuration changes

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.

Routes should always start with "/"

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.

Validate configuration objects more thoroughly when parsing

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:

  • Properties of Service are set to valid values
  • Properties of Route are set to valid values
  • Properties of Plugin are set to valid values
  • Only plugins which are installed are valid for use (the list of installed plugins can be queried from Kong)
  • Plugin configuration is valid according to that plugin's schema (which we can query from Kong)

Can not access host with basic auth

We 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.