transformation.proto

Package: envoy.api.v2.filter.http

TODO: this was copied form the transformation filter. TODO: instead of manually copying, we want to do it via script, similar to the java-control-plane TODO: to solo-kit/api/envoy

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
headerBodyTransform .envoy.api.v2.filter.http.HeaderBodyTransform

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
passthrough .envoy.api.v2.filter.http.Passthrough
mergeExtractorsToBody .envoy.api.v2.filter.http.MergeExtractorsToBody

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