Apache OpenWhisk

Uses: Kong Gateway

This plugin invokes OpenWhisk Actions. The Apache OpenWhisk plugin can be used in combination with other request plugins to secure, manage, or extend the function.

Install the OpenWhisk plugin

This plugin is not bundled with Kong Gateway.

  1. Install the OpenWhisk plugin using the LuaRocks package manager:

    luarocks install kong-plugin-openwhisk
    
    Copied to clipboard!
  2. Update your loaded plugins list in Kong Gateway.

    In your kong.conf, append openwhisk to the plugins field. Make sure the field isn’t commented out.

    plugins = bundled,openwhisk
    
    Copied to clipboard!
  3. Restart Kong Gateway:

    kong restart
    
    Copied to clipboard!

You can also install the OpenWhisk plugin from source.

Using the OpenWhisk plugin

To learn how to use this plugin with OpenWhisk, see the Kong OpenWhisk plugin README.

Limitations of the OpenWhisk plugin

Using a fake upstream service

When using the OpenWhisk plugin, the response is returned by the plugin itself without proxying the request to any upstream service. This means that a Gateway Service’s host, port, path properties are ignored, but must still be specified for the entity to be validated by Kong Gateway. The host property in particular must either be an IP address, or a hostname that gets resolved by your nameserver.

Response plugins

There is a known limitation in the system that prevents some response plugins from being executed.

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!