transformation.proto

Package: envoy.api.v2.filter.http

Types:

Source File: github.com/solo-io/gloo/projects/gloo/api/v1/plugins/transformation/transformation.proto

RouteTransformations

"requestTransformation": .envoy.api.v2.filter.http.Transformation
"clearRouteCache": bool
"responseTransformation": .envoy.api.v2.filter.http.Transformation
Field Type Description Default
requestTransformation .envoy.api.v2.filter.http.Transformation
clearRouteCache bool clear the route cache if the request transformation was applied.
responseTransformation .envoy.api.v2.filter.http.Transformation

Transformation

[#proto-status: experimental]

"transformationTemplate": .envoy.api.v2.filter.http.TransformationTemplate
"headerBodyTransform": .envoy.api.v2.filter.http.HeaderBodyTransform
Field Type Description Default
transformationTemplate .envoy.api.v2.filter.http.TransformationTemplate Only one of transformationTemplate or headerBodyTransform can be set.
headerBodyTransform .envoy.api.v2.filter.http.HeaderBodyTransform Only one of headerBodyTransform or transformationTemplate can be set.

Extraction

"header": string
"regex": string
"subgroup": int
Field Type Description Default
header string
regex string what information to extract. if extraction fails the result is an empty value.
subgroup int

TransformationTemplate

"advancedTemplates": bool
"extractors": map<string, .envoy.api.v2.filter.http.Extraction>
"headers": map<string, .envoy.api.v2.filter.http.InjaTemplate>
"body": .envoy.api.v2.filter.http.InjaTemplate
"passthrough": .envoy.api.v2.filter.http.Passthrough
"mergeExtractorsToBody": .envoy.api.v2.filter.http.MergeExtractorsToBody
Field Type Description Default
advancedTemplates bool
extractors map<string, .envoy.api.v2.filter.http.Extraction> Extractors are in the origin request language domain.
headers map<string, .envoy.api.v2.filter.http.InjaTemplate>
body .envoy.api.v2.filter.http.InjaTemplate Only one of body, or mergeExtractorsToBody can be set.
passthrough .envoy.api.v2.filter.http.Passthrough Only one of passthrough, or mergeExtractorsToBody can be set.
mergeExtractorsToBody .envoy.api.v2.filter.http.MergeExtractorsToBody Only one of mergeExtractorsToBody, or passthrough can be set.

InjaTemplate

custom functions: header_value(name) -> from the original headers extracted_value(name, index) -> from the extracted values

"text": string
Field Type Description Default
text string

Passthrough

Field Type Description Default

MergeExtractorsToBody

Field Type Description Default

HeaderBodyTransform

Field Type Description Default