Skip to content
You are viewing the latest documentation for Solo Enterprise for kgateway, formerly known as Gloo Gateway. To access the documentation for older Gloo Gateway versions, such as 2.0 and 1.x, use the version switcher.

About simple transformations

Page as Markdown

Apply simple header and body transformations on a route with powerful Inja templates.

Simple vs. staged transformations

Simple transformations are configured in the transformation attribute of a GlooTrafficPoliy. The configuration format is the same as the transformation attribute in the kgateway TrafficPolicy. This way, you can easily migrate your transformation configuration when moving from kgateway to Solo Enterprise for kgateway.

Simple transformations are applied as regular transformations after the external auth filter in the Envoy filter chain. Keep in mind that you can apply one transformation per route at a time. If you want to apply multiple transformations to a route, consider using staged transformations instead.

Staged transformations also come with advanced transformation templating features. For example, you can define matchers to configure when to apply transformations based on header, query parameter, or body information that is present in a request or response. You can also leverage extractors to extract specific information from headers, query parameters, or body by using regular expressions and further transform them with Inja templates. Because changing request parameters can impact the routing decision, you can instruct Solo Enterprise for kgateway to redo the routing decision based on the transformation results.

Configuration format

For more information about how to configure simple transformations in a GlooTrafficPolicy, see Templating language.