Skip to main content
Proposed · 2026-11-20

This record is a draft awaiting review. It may be incomplete or wrong; do not rely on it yet.

Environments share a Kong through a name prefix per Gateway

Context​

Several environments, such as bond, cit2 and cit4, share one Kong. The Gateway operator named a Route's Kong entities after the Route alone. The same Route name in two environments mapped to the same Kong route, service and upstream, and the environments overwrote each other.

Decision​

Each Gateway carries a name prefix, which the Admin operator sets to the realm of its environment. A Route's Kong entities are named <prefix>--<route name>.

  • A prefix, once set, can be changed but not removed. Without it, the operator would not find the prefixed entities and would create a second set beside them.
  • Installations whose Kong serves only the default realm can keep unprefixed names with a feature flag.

Names, tags and the reconcile flow are described in Kong entity naming and realms.

Options considered​

  • One prefix per Gateway, from the realm (chosen): the prefix belongs to the Kong instance and its realm, so operators that create Routes need not know it.
  • A prefix field on every Route: every operator creating Routes would have to set it.
  • The Route's security realm as prefix: it controls Last-Mile-Security, an unrelated concept.
  • Turn invalid realm names into valid prefixes: a prefix that differs from the realm name is surprising and could collide with another realm.

Consequences​

  • Moving a prefixed Route to a Gateway without a prefix blocks the Route and needs manual cleanup in Kong.
  • Turning the feature flag on after Gateways got a prefix does not rename them back.
  • An environment whose realm name is not a valid prefix keeps unprefixed names and is not protected against collisions.