Konnect Gateway Service integration in Insomnia

Enterprise and uses: Insomnia

About the Konnect integration

Starting from Insomnia 13, Enterprise users can link Insomnia to Gateway Services deployed in Konnect. The integration allows sending requests from Collections against Routes pulled from Konnect, using the Insomnia app.

After connecting and syncing your Gateway Services, Insomnia:

  • Displays the list of your control planes in Konnect as projects.
  • Nests the Gateway Services on each control plane as Collections under each project.
  • Pulls the Routes from each Gateway Service.
  • Lists the Routes in Collections for each Gateway Service.

Requirements

Available features

Collections work the same as for local Routes. The following table lists the features that allow you to link Insomnia to Konnect:

Feature

Usage

How to

Authenticate Link Insomnia to your Gateway Service
  1. From Konnect, generate a Personal Access Token (PAT).
  2. Copy the PAT.
  3. In Insomnia, open Preferences > Konnect.
  4. Paste the PAT.
  5. Click Validate & Save.
Konnect tab List your gateway services in Konnect, next to the Projects tab Open the personal workspace linked to Konnect.
Sync Pull the latest updates from Konnect into Insomnia. From the Konnect tab, click Sync.
Plugins tab v13.5+ List the Konnect plugins that can apply to a synced request. Open a synced request and click the Plugins tab in the request pane. See Plugins tab.
Debugger v13.5+ Capture traces from your data plane nodes with a Konnect debug session. Send a synced request and click Debug in the response pane. See Debugger.

Sync

Every time you click Sync from the Konnect tab, Insomnia pulls changes from Konnect. Syncing:

  • Doesn’t push any changes from Insomnia to Konnect.
  • Pulls changes or configurations from Konnect for the related Routes.

This preserves the local changes on Routes while allowing pulling any updates from Konnect.

Syncing preserves or resets the following data for each pulled route in Insomnia:

  • Parameters
  • Auth
  • Body
  • Custom headers
  • Scripts
  • Environment variables

Note: Overridden headers aren’t preserved. They revert to the values configured in Konnect.

Plugins tab

v13.5+ Requests synced from Konnect have a Plugins tab in the request pane. The tab is available for HTTP, gRPC, and WebSocket requests in a project linked to a Konnect control plane. It lists every plugin instance that can apply to the request’s Route.

Insomnia skips plugins scoped to other Routes or Gateway Services, and plugins whose protocols don’t match the Route’s protocol.

If the plugin has a condition or uses dynamic plugin ordering, Insomnia shows that too. Insomnia doesn’t display plugin configuration values.

Each plugin has the following actions:

  • Docs: Opens the plugin’s documentation.
  • Edit in Konnect: Opens the plugin’s configuration page in Konnect.
  • decK command: Shows the decK commands to export the control plane configuration, edit the plugin in the exported file, and apply the change.

Click Refresh to reload the plugins from Konnect, or click View all in Konnect to open the control plane’s plugin list.

Suggested plugins

The Suggested plugins section lists commonly used plugins that aren’t applied to the Route yet, such as Key Authentication, OpenID Connect, or CORS. Insomnia only suggests plugins that are available on the control plane. Each suggestion has a Docs action, an Add in Konnect action, and a decK command action that shows a starting configuration for the plugin.

Plugins tab limitations

  • The plugin tab lists every configured plugin instance in the order the Konnect API returns them, not in execution order. For more information, see plugin priority.
  • Insomnia caches the plugin list for one minute. Click Refresh to load the latest changes from Konnect.
  • The decK command for a suggested plugin includes an empty config block. Fill in the required configuration fields from the plugin documentation before you apply it.

Debugger

v13.5+ You can start a Konnect Debugger session from Insomnia and view the captured traces without leaving the app.

To open the Debugger, do one of the following:

  • After you send a synced request, click Debug in the response pane.
  • In the sidebar, open the dropdown menu of a Konnect project and select “Start Debugging”.

The Debugger opens in a new tab for the project’s control plane. To capture traces, do the following:

  1. From the Duration dropdown menu, select a duration between “15 seconds” and “30 minutes”.
  2. Click Start debugging.
  3. Send requests to the Routes on this control plane.
  4. Click a trace in the Captured list to view its details.

To end the session before the duration runs out, click Stop. After a session ends, click Restart to start a new one.

The trace details show the response status, time, and size, and a link to the matching request in your collection when Insomnia finds one. A time split shows how much of the request was spent in each of the following parts:

  • Kong (internal)
  • Upstream
  • Client
  • 3rd-party

The waterfall under the time split lists each span of the trace. Click a span name to view its attributes.

Debugger requirements

  • A Konnect personal access token configured in Insomnia.
  • At least one data plane node connected to the control plane.
  • The requirements for Konnect Debugger, including the Kong Gateway version and the permissions needed to create debug sessions.

Debugger limitations

  • The session captures traces for all traffic on every data plane node of the control plane, not only the requests you send from Insomnia. You can’t set sampling rules from Insomnia. To narrow a session, start it from Konnect instead.
  • Konnect allows one active debug session per data plane node. If a session is already running on the control plane’s nodes, starting a new one returns an error.

FAQs

No, the Konnect integration only works with Gateway Services hosted in Konnect, not on-prem Kong Gateway.

The “Skipped Routes” Collection contains Routes using an unsupported protocol. You can’t use the Collection runner to send requests against them.

Insomnia skips Routes that use an unsupported protocol, such as SNI matching, TCP, or UDP. Insomnia displays the skipped Routes in a separate collection named “Skipped Routes”.

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!