Blog
  • AI Gateway
  • AI Security
  • AIOps
  • API Security
  • API Gateway
    • API Management
    • API Development
    • API Design
    • Automation
    • Service Mesh
    • Insomnia
  1. Home
  2. Blog
  3. Engineering
  4. Orchestrating Konnect’s Great API Renaming with Kong Gateway Transformer Plugins
Engineering
September 30, 2024
5 min read

Orchestrating Konnect’s Great API Renaming with Kong Gateway Transformer Plugins

Danny Freese
Senior Software Engineer on Konnect, Kong
Topics
Kong KonnectPlugins
Share on Social

More on this topic

Reports

Kong Konnect

Videos

Service Catalog with Traceable AI

See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

Get a Demo

Before we dive in, we want to remind our readers that the Konnect engineering team actively uses Kong products like Kong Gateway, Kong Mesh, and Insomnia. 

In this post, we'll showcase the power of Kong Gateway and two plugins — the JQ and Request Transformer Advanced Plugins — to govern and configure APIs, and explain how it played, and continues to play, a crucial role in the release of a new v2 Konnect API specification.

The key takeaway here is: don’t do more work than is necessary. With that in mind, let’s get started!

Introduction

For API Summit 2023, the Kong Konnect Engineering team quietly executed a project, codename: “The Great Renaming.” Our objective? To rename Runtime Manager and Runtime Groups to what you see today, Gateway Manager and Control Planes. From an engineering perspective, this boiled down to releasing a new major version of the Konnect APIs. 

However, what is critical to understand is that the desired changes to the APISpec did not change any existing customer-facing behavior. It was purely a cosmetic change, and we wanted a solution that insulated us from refactoring Konnect for seemingly cosmetic changes — not only in this one particular instance but for future cases as well.

As Konnect evolves as a SaaS platform these “superficial” changes to the API spec are also likely to continue to evolve, to align with the language of the times. It was absolutely true in this case.

There is good reason to suspect that product management will have to request changes that arguably is just a terminology change. 

While it’s true that our customers could have continued using Konnect with the v2 specs, these minor changes have a significant positive impact. The updated terminology makes it easier for both existing and potential customers to understand the key technical concepts of Konnect as a whole.

So with the product requirements in hand, the next task was to plan the engineering work. From a technical perspective, there were a number of requirements. 

First, support both v2/runtime-group(s) and v2/control-plane(s) API specs simultaneously. These interfaces are the predominant way that customers interact with Konnect and it's critical that our existing customers have backwards compatibility.

Second, introduce the fewest changes possible to the backend system. The team really wanted to keep the blast radius of the change small, if at all possible, only customer facing, and not develop new APIs that matched the specification. In other words, our internal-facing microservices do not need to know that gateway-manager is synonymous to runtime-manager. The Konnect backend leans in heavily to the microservice architecture. So it was important that minor customer-facing changes do not require a cascading update to surrounding microservices to consume the new version of the APIs as well.

Debut of Kong Gateway and the transformer plugins

Because of the features of the Kong Gateway in conjunction with the plugins, a majority of the Konnect backend teams had zero work involved in the release of the new APIs.

With Kong Gateway, there are three main abstractions to concern yourself with for the sake of this story: gateway services, routes, and plugins. A gateway service is an abstraction of an upstream application, and routes define what APIs are exposed on that gateway service. A gateway service can have 1:N routes. Then plugins can be configured in various contexts depending on the granularity needed when that plugin is applied at runtime: Services, Routes, etc.

So from a high-level perspective, we used these abstractions to build the following gateway configuration:

  1. Create new routes for the APIspecs (v2/control-planes) and keep the old (v2/runtime-groups) API spec unchanged for backwards compatibility.
  2. Apply the jq plugin and the request-transformer-advanced plugin to support request/response body and query-string transformations isolated to the new routes. 

The novelty in the design is two-fold. First is its simplicity and ease of maintenance. All work related to the new API is confined to the Kong Gateway configuration, avoiding unnecessary complexity in our microservices. Second, it establishes a clear separation of concerns between the client-facing API design and the internal workings of Konnect. As an API-first company, we ensure that our client-facing APIs are thoroughly vetted by our product teams, and this design supports that focus.

So, in conclusion, it's nice. 

From a timeline perspective, once the product team reached a consensus on the new API specs, the gateway config was ready within a couple of weeks, giving a good lead time for the frontend and docs to begin refactoring as well. 

Transformer plugin configuration

Let’s quickly give you a purview of our plugin configurations.

In practice, the jq plugin is highly powerful due to its ability to create complex JSON processors for transforming request and response bodies. It's also widely used in the open-source community and transformations are easily optimized because it's a CLI tool as well. Beyond the jq interface, the plugin offers several useful features. It supports separate transformations for requests and responses within the same configuration and can conditionally execute transformations based on response codes. 

Take a look at the snippet from the Konnect deck config below where we leverage all of these features:

Meanwhile, the request-transformer-advanced plugin was specifically used to target transformations to the query parameters. The request-transformer-advanced plugin can also handle simple transformations such as removing, appending headers, query strings or to the body. But in order to replace the query string it really required the lua function you see below. 

Just to really drive home the point of how convenient this setup is, the plugin deck config is exactly 30 lines of code. 

Wrapping up

If you remember anything from the post it should be how we leveraged Kong Gateway's capabilities to expose new APIs to our customers and maintain backwards compatibility with minimal disruption to the underlying architecture. 

But before we go, some shout-outs are in order. At the end of the day, the great renaming as a whole was a large undertaking. The plugin configuration described here was rather simple, however, the entire project itself was complex in nature due to the number of cross-cutting concerns: from getting consensus from the product team to executive leadership on the new API terminology, followed by building the API specs, a major refactor the Konnect frontend to catch every small possible terminology, updating the docs, updating our E2E integration on the fly, and release all assets at once.

So with that, whether you are an engineer, an engineering manager, or a product manager, we hope you learned of a new use case of Kong Gateway. Onwards! 

Relevant links

  • Getting Started Guide Kong Gateway (Services and Routes)
  • Jq Plugin
  • Request Transformer Advanced Plugin
Topics
Kong KonnectPlugins
Share on Social
Danny Freese
Senior Software Engineer on Konnect, Kong

Recommended posts

Federated Deployments with Control Plane Groups

Kong Logo
EngineeringSeptember 24, 2025

In this blog post, we'll talk about the significant challenge of managing and governing a growing number of APIs across multiple teams in an organization — and how Control Plane Groups are a clear solution to avoid the chaos of inconsistent policies

Declan Keane

Unlocking API Analytics for Product Managers

Kong Logo
EngineeringSeptember 9, 2025

Meet Emily. She’s an API product manager at ACME, Inc., an ecommerce company that runs on dozens of APIs. One morning, her team lead asks a simple question: “Who’s our top API consumer, and which of your APIs are causing the most issues right now?”

Christian Heidenreich

Kong Acquires OpenMeter to Bring API and AI Monetization to the Agentic Era

Kong Logo
NewsSeptember 3, 2025

Today, we’re announcing that Kong has acquired  OpenMeter , the open source and SaaS leader for real-time usage metering and billing. OpenMeter’s capabilities will be integrated into Kong Konnect, enabling usage-based pricing, entitlements, and invo

Saju Pillai

Level Up Your Digital Health Platform with Kong, SMART on FHIR, Okta

Kong Logo
EngineeringSeptember 2, 2025

The healthcare industry is buzzing about FHIR (Fast Healthcare Interoperability Resources). Pronounced “fire,” this widely adopted data standard has been revolutionizing how healthcare information is exchanged. But building a truly modern, secure, a

Biswa Mohanty

Guide to API Testing: Understanding the Basics

Kong Logo
EngineeringSeptember 1, 2025

Behind every smooth user experience is a maze of APIs quietly handling requests, responses, and data flows. This makes APIs critical connectors that enable applications to communicate and share data seamlessly. When these vital conduits fail, the

Adam Bauman

AI Guardrails: Ensure Safe, Responsible, Cost-Effective AI Integration

Kong Logo
EngineeringAugust 25, 2025

As enterprises increasingly embed AI and Large Language Models (LLMs) into their digital experiences, enforcing robust AI guardrails becomes paramount to safeguard users, protect data, manage operational costs, and comply with regulatory and ethical

Jason Matis

Announcing terraform-provider-konnect v3

Kong Logo
Product ReleasesAugust 22, 2025

It’s been almost a year since we released our  Konnect Terraform provider . In that time we’ve seen over 300,000 installs, have 1.7 times as many resources available, and have expanded the provider to include data sources to enable federated managem

Michael Heap

Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

Get a Demo
Powering the API world

Increase developer productivity, security, and performance at scale with the unified platform for API management, AI gateways, service mesh, and ingress controller.

Sign up for Kong newsletter

Platform
Kong KonnectKong GatewayKong AI GatewayKong InsomniaDeveloper PortalGateway ManagerCloud GatewayGet a Demo
Explore More
Open Banking API SolutionsAPI Governance SolutionsIstio API Gateway IntegrationKubernetes API ManagementAPI Gateway: Build vs BuyKong vs PostmanKong vs MuleSoftKong vs Apigee
Documentation
Kong Konnect DocsKong Gateway DocsKong Mesh DocsKong AI GatewayKong Insomnia DocsKong Plugin Hub
Open Source
Kong GatewayKumaInsomniaKong Community
Company
About KongCustomersCareersPressEventsContactPricing
  • Terms•
  • Privacy•
  • Trust and Compliance•
  • © Kong Inc. 2025