HOME / SUPPORT / Integrate NTA with Kong in Linux

Integrate NTA with Kong in Linux

This feature is available with Invicti API Security Standalone or Bundle

In the Linux installation method, Kong Gateway (KGW) 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.

IMPORTANT:

Our support team will 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 v 3.0 or newer is installed and configured

Step 1: Download nta.zip and copy the plugin

  • Download our KongPluginLinux.zip and extract its contents. Copy the executable in the file.
  • 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 Containers > Exec in Docker Desktop and pasting the following commands one by one.

  • It is 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"

  • For the first command — export KONG_PLUGINS="bundled,nta" — be sure to include all your existing plugins in the list. Since we don't know which plugins you currently have, you will 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