Redirect Policy for Custom Response (proto)

This extension has the qualified name envoy.http.custom_response.redirect_policy

Note

This extension is work-in-progress. Functionality is incomplete and it is not intended for production use.

This extension has an unknown security posture and should only be used in deployments where both the downstream and upstream are trusted.

Tip

This extension extends and can be used with the following extension category:

This extension must be configured with one of the following type URLs:

Warning

This API feature is currently work-in-progress. API features marked as work-in-progress are not considered stable, are not covered by the threat model, are not supported by the security team, and are subject to breaking changes. Do not use this feature without understanding each of the previous points.

extensions.http.custom_response.redirect_policy.v3.RedirectPolicy

[extensions.http.custom_response.redirect_policy.v3.RedirectPolicy proto]

Custom response policy to internally redirect the original response to a different upstream.

{
  "host": ...,
  "path": ...,
  "status_code": {...},
  "response_headers_to_add": [],
  "request_headers_to_add": [],
  "modify_request_headers_action": {...}
}
host

(string, REQUIRED) The host that will serve the custom response.

Example:

uri: https://www.mydomain.com
path

(string, REQUIRED) The path for the custom response.

Example:

path: /path/to/503_response.txt
status_code

(UInt32Value) The new response status code if specified. This is used to override the status code of the response from the new upstream if it is not an error status.

response_headers_to_add

(repeated config.core.v3.HeaderValueOption) HTTP headers to add to the response. This allows the response policy to append, to add or to override headers of the original response for local body, or the custom response from the remote body, before it is sent to a downstream client. Note that these are not applied if the redirected response is an error response.

request_headers_to_add

(repeated config.core.v3.HeaderValueOption) HTTP headers to add to the request before it is internally redirected.

modify_request_headers_action

(config.core.v3.TypedExtensionConfig) Custom action to modify request headers before selection of the redirected route.