header_manipulation.proto

Package : trafficcontrol.policy.gloo.solo.io

Top

header_manipulation.proto

Table of Contents

HeaderManipulationPolicySpec

HeaderManipulationPolicy is used to transform HTTP requests and responses matching selected routes. TransformationPolicies are applied at the Route level. If no selectors are provided, will apply to all routes in the workspace.

Field Type Label Description
applyToRoutes []common.gloo.solo.io.RouteSelector repeated select the routes where the policy will be applied
config trafficcontrol.policy.gloo.solo.io.HeaderManipulationPolicySpec.Config The details of the transformation policy to apply to the selected routes or destinations for a given route.
applyToRouteDestinations []common.gloo.solo.io.RouteDestinationSelector repeated Select routes’ destinations where the policy will be applied. This field is intended for when the config should be applied to a forwardTo route only when it is forwarded to a subset of the route's backing destinations.

HeaderManipulationPolicySpec.Config

Field Type Label Description
removeResponseHeaders []string repeated HTTP headers to remove before returning a response to the caller.
appendResponseHeaders []trafficcontrol.policy.gloo.solo.io.HeaderManipulationPolicySpec.Config.AppendResponseHeadersEntry repeated Additional HTTP headers to add before returning a response to the caller.
removeRequestHeaders []string repeated HTTP headers to remove before forwarding a request to the destination service.
appendRequestHeaders []trafficcontrol.policy.gloo.solo.io.HeaderManipulationPolicySpec.Config.AppendRequestHeadersEntry repeated Additional HTTP headers to add before forwarding a request to the destination service.

HeaderManipulationPolicySpec.Config.AppendRequestHeadersEntry

Field Type Label Description
key string
value string

HeaderManipulationPolicySpec.Config.AppendResponseHeadersEntry

Field Type Label Description
key string
value string

HeaderManipulationPolicyStatus

reflects the status of the HeaderManipulationPolicy

Field Type Label Description
global common.gloo.solo.io.GenericGlobalStatus
workspaces []trafficcontrol.policy.gloo.solo.io.HeaderManipulationPolicyStatus.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

HeaderManipulationPolicyStatus.WorkspacesEntry

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