Skip to content
IJK

Gateway API v1.6: What XBackend Adds Beyond Service

By IJK ·

What the Gateway API v1.6 post says XBackend is, why Service is hard to extend and why ExternalHostname support is optional.

What XBackend is

Gateway API v1.6 introduces the new XBackend resource, which is a general-purpose decorator for Service (and other backend types) within Gateway API. [1]

The Service resource is an amazing, stable, and flexible object, but that comes with some costs: The flexibility creates a lot of edge cases that Gateway API needs to handle, and the stability makes it impossible to add new concepts to Service. [2]

What it builds on

The XBackend resource builds on the ideas in the upstream EndpointSelector KEP, to add a Gateway API-native object that still targets the backend app, while allowing the community to extend it to handle use cases that are difficult or dangerous to handle with Service. [3]

decorated byfirst version addsServicestable and flexible, hard to extendXBackenda Gateway API-native decorator that targets the b...ExternalHostname destinationsExtended/Optional support
How does XBackend relate to Service?

ExternalHostname and the opt-in

The first version of XBackend includes support for ExternalHostname destinations, which are ruled out from Service support in Gateway API because of the possibility of confused deputy attacks. [4]

For XBackend, this support is an Extended/Optional feature, allowing implementations and users to opt in once they understand the security tradeoffs. [5]

Sources

  1. The Kubernetes source says: Gateway API v1.6 introduces the new XBackend resource, which is a general-purpose decorator for Service (and other backend types) within Gateway API. Gateway API v1.6
  2. The Kubernetes source says: The Service resource is an amazing, stable, and flexible object, but that comes with some costs: The flexibility creates a lot of edge cases that Gateway API needs to handle, and the stability makes it impossible to add new concepts to Service. Gateway API v1.6
  3. The Kubernetes source says: The XBackend resource builds on the ideas in the upstream EndpointSelector KEP, to add a Gateway API-native object that still targets the backend app, while allowing the community to extend it to handle use cases that are difficult or dangerous to handle with Service. Gateway API v1.6
  4. The Kubernetes source says: The first version of XBackend includes support for ExternalHostname destinations, which are ruled out from Service support in Gateway API because of the possibility of confused deputy attacks. Gateway API v1.6
  5. The Kubernetes source says: For XBackend, this support is an Extended/Optional feature, allowing implementations and users to opt in once they understand the security tradeoffs. Gateway API v1.6

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • kubernetes
  • gateway api
  • networking
  • platform engineering