Skip to main content
This document is for:
Invicti Enterprise on-demand

This feature is available with Invicti API Security Standalone or Bundle.

Integrate NTA with Kong Gateway in Linux

In the Linux installation method, Kong Gateway is deployed on a single host or server, without the need for containerization or orchestration platforms. This setup is ideal for simpler environments, such as small production systems, or when minimal overhead is desired for direct management of the Kong instance. In this scenario, NTA runs in a separate Docker container alongside Kong Gateway, allowing for easy integration while keeping the Kong deployment lightweight and straightforward.

info

The support team can provide the Docker images to you upon request.

This document navigates you through the configuration process of Kong into your development environment. The integration process is divided into three key steps:

Prerequisites

  • Kong API Gateway: Ensure Kong API Gateway v3.0 or newer is installed and configured.

Step 1: Download KongPluginLinux.zip and copy the plugin

  1. Download KongPluginLinux.zip and extract its contents. Copy the executable in the file.
  2. Copy the plugin to the Docker container using the following command:
cp ./nta /usr/local/kong/plugins/

Step 2: Set environment variables

After copying the plugin to the Kong container, set the required environment variables to enable it by navigating to Container > Exec in Docker Desktop and pasting the following commands one by one.

  • It's recommended to run bash, first.
export KONG_PLUGINS="bundled,nta"
export KONG_PLUGINSERVER_NAMES="nta"
export KONG_PLUGINSERVER_NTA_START_CMD="/nta"
export KONG_PLUGINSERVER_NTA_QUERY_CMD="/nta -dump"
warning

For the first command—export KONG_PLUGINS="bundled,nta"—be sure to include all your existing plugins in the list. Since it is not known which plugins you currently have, you need to modify the command to include them all, separated by commas, and then add nta to the list. The remaining commands are to be used as they are.

Step 3: Restart Kong

To apply the changes, restart Kong using one of the following commands:

kong reload

Or

kong restart

Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?