transformation_policy.proto

Package : trafficcontrol.policy.gloo.solo.io

Top

transformation_policy.proto

Table of Contents

TransformationPolicySpec

TransformationPolicy is used to transform HTTP requests and responses matching selected routes. TransformationPolicies are applied at the Route level.

Field Type Label Description
applyToRoutes []common.gloo.solo.io.RouteSelector repeated select the routes where the policy will be applied if left empty, will apply to all routes in the workspace.
config trafficcontrol.policy.gloo.solo.io.TransformationPolicySpec.Config The details of the transformation policy to apply to the selected routes.

TransformationPolicySpec.Config

Field Type Label Description
phase common.gloo.solo.io.PrioritizedPhase Specify the phase to indicate where this policy should be applied relative to other policies. If no phase is specified, the default will be post AuthZ.
request trafficcontrol.policy.gloo.solo.io.TransformationPolicySpec.Config.RequestTransformation Transformation to be applied before the request is sent to the upstream service.
response trafficcontrol.policy.gloo.solo.io.TransformationPolicySpec.Config.ResponseTransformation Transform the response received from the upstream service before returning it to the client.

TransformationPolicySpec.Config.RequestTransformation

Field Type Label Description
recalculateRoutingDestination bool If the request was transformed such that it would match a different route, recalculate the routing destination (select a new route) based on the transformed content of the request.
injaTemplate envoy.api.v2.filter.http.TransformationTemplate transform HTTP body and headers using Inja templates.

TransformationPolicySpec.Config.ResponseTransformation

Configure response transformations for a selected route

Field Type Label Description
injaTemplate envoy.api.v2.filter.http.TransformationTemplate transform response body and headers using Inja templates

TransformationPolicyStatus

reflects the status of the TransformationPolicy

Field Type Label Description
global common.gloo.solo.io.GenericGlobalStatus
workspaces []trafficcontrol.policy.gloo.solo.io.TransformationPolicyStatus.WorkspacesEntry repeated The status of the resource in each workspace that it exists in.
selectedRoutes []common.gloo.solo.io.RouteReference repeated Routes selected by the policy

TransformationPolicyStatus.WorkspacesEntry

Field Type Label Description
key string
value common.gloo.solo.io.WorkspaceStatus