hcm

package
v1.8.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpConnectionManagerSettings_ForwardClientCertDetails_name = map[int32]string{
		0: "SANITIZE",
		1: "FORWARD_ONLY",
		2: "APPEND_FORWARD",
		3: "SANITIZE_SET",
		4: "ALWAYS_FORWARD_ONLY",
	}
	HttpConnectionManagerSettings_ForwardClientCertDetails_value = map[string]int32{
		"SANITIZE":            0,
		"FORWARD_ONLY":        1,
		"APPEND_FORWARD":      2,
		"SANITIZE_SET":        3,
		"ALWAYS_FORWARD_ONLY": 4,
	}
)

Enum value maps for HttpConnectionManagerSettings_ForwardClientCertDetails.

View Source
var (
	HttpConnectionManagerSettings_ServerHeaderTransformation_name = map[int32]string{
		0: "OVERWRITE",
		1: "APPEND_IF_ABSENT",
		2: "PASS_THROUGH",
	}
	HttpConnectionManagerSettings_ServerHeaderTransformation_value = map[string]int32{
		"OVERWRITE":        0,
		"APPEND_IF_ABSENT": 1,
		"PASS_THROUGH":     2,
	}
)

Enum value maps for HttpConnectionManagerSettings_ServerHeaderTransformation.

View Source
var (
	HttpConnectionManagerSettings_PathWithEscapedSlashesAction_name = map[int32]string{
		0: "IMPLEMENTATION_SPECIFIC_DEFAULT",
		1: "KEEP_UNCHANGED",
		2: "REJECT_REQUEST",
		3: "UNESCAPE_AND_REDIRECT",
		4: "UNESCAPE_AND_FORWARD",
	}
	HttpConnectionManagerSettings_PathWithEscapedSlashesAction_value = map[string]int32{
		"IMPLEMENTATION_SPECIFIC_DEFAULT": 0,
		"KEEP_UNCHANGED":                  1,
		"REJECT_REQUEST":                  2,
		"UNESCAPE_AND_REDIRECT":           3,
		"UNESCAPE_AND_FORWARD":            4,
	}
)

Enum value maps for HttpConnectionManagerSettings_PathWithEscapedSlashesAction.

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_hcm_hcm_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HttpConnectionManagerSettings

type HttpConnectionManagerSettings struct {
	SkipXffAppend       bool                  `protobuf:"varint,1,opt,name=skip_xff_append,json=skipXffAppend,proto3" json:"skip_xff_append,omitempty"`
	Via                 string                `protobuf:"bytes,2,opt,name=via,proto3" json:"via,omitempty"`
	XffNumTrustedHops   uint32                `protobuf:"varint,3,opt,name=xff_num_trusted_hops,json=xffNumTrustedHops,proto3" json:"xff_num_trusted_hops,omitempty"`
	UseRemoteAddress    *wrappers.BoolValue   `protobuf:"bytes,4,opt,name=use_remote_address,json=useRemoteAddress,proto3" json:"use_remote_address,omitempty"`
	GenerateRequestId   *wrappers.BoolValue   `protobuf:"bytes,5,opt,name=generate_request_id,json=generateRequestId,proto3" json:"generate_request_id,omitempty"`
	Proxy_100Continue   bool                  `protobuf:"varint,6,opt,name=proxy_100_continue,json=proxy100Continue,proto3" json:"proxy_100_continue,omitempty"`
	StreamIdleTimeout   *duration.Duration    `protobuf:"bytes,7,opt,name=stream_idle_timeout,json=streamIdleTimeout,proto3" json:"stream_idle_timeout,omitempty"`
	IdleTimeout         *duration.Duration    `protobuf:"bytes,8,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	MaxRequestHeadersKb *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=max_request_headers_kb,json=maxRequestHeadersKb,proto3" json:"max_request_headers_kb,omitempty"`
	RequestTimeout      *duration.Duration    `protobuf:"bytes,10,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"`
	DrainTimeout        *duration.Duration    `protobuf:"bytes,12,opt,name=drain_timeout,json=drainTimeout,proto3" json:"drain_timeout,omitempty"`
	DelayedCloseTimeout *duration.Duration    `protobuf:"bytes,13,opt,name=delayed_close_timeout,json=delayedCloseTimeout,proto3" json:"delayed_close_timeout,omitempty"`
	ServerName          string                `protobuf:"bytes,14,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	// For explanation of these settings see: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/protocol.proto#envoy-api-msg-core-http1protocoloptions
	AcceptHttp_10               bool                                                       `protobuf:"varint,15,opt,name=accept_http_10,json=acceptHttp10,proto3" json:"accept_http_10,omitempty"`
	DefaultHostForHttp_10       string                                                     `` /* 128-byte string literal not displayed */
	ProperCaseHeaderKeyFormat   bool                                                       `` /* 144-byte string literal not displayed */
	Tracing                     *tracing.ListenerTracingSettings                           `protobuf:"bytes,17,opt,name=tracing,proto3" json:"tracing,omitempty"`
	ForwardClientCertDetails    HttpConnectionManagerSettings_ForwardClientCertDetails     `` /* 224-byte string literal not displayed */
	SetCurrentClientCertDetails *HttpConnectionManagerSettings_SetCurrentClientCertDetails `` /* 149-byte string literal not displayed */
	PreserveExternalRequestId   bool                                                       `` /* 142-byte string literal not displayed */
	// HttpConnectionManager configuration for protocol upgrade requests.
	// Note: WebSocket upgrades are enabled by default on the HTTP Connection Manager and must be explicitly disabled.
	Upgrades []*protocol_upgrade.ProtocolUpgradeConfig `protobuf:"bytes,21,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
	// For an explanation of these settings see https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#config-core-v3-httpprotocoloptions
	MaxConnectionDuration *duration.Duration `` /* 127-byte string literal not displayed */
	MaxStreamDuration     *duration.Duration `protobuf:"bytes,24,opt,name=max_stream_duration,json=maxStreamDuration,proto3" json:"max_stream_duration,omitempty"`
	// For an explanation of the settings see: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto.html#envoy-v3-api-enum-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-serverheadertransformation
	ServerHeaderTransformation HttpConnectionManagerSettings_ServerHeaderTransformation `` /* 230-byte string literal not displayed */
	// Action to take when request URL path contains escaped slash sequences (%2F, %2f, %5C and %5c).
	// The default value can be overridden by the :ref:`http_connection_manager.path_with_escaped_slashes_action<config_http_conn_man_runtime_path_with_escaped_slashes_action>`
	// runtime variable.
	// The :ref:`http_connection_manager.path_with_escaped_slashes_action_sampling<config_http_conn_man_runtime_path_with_escaped_slashes_action_enabled>` runtime
	// variable can be used to apply the action to a portion of all requests.
	PathWithEscapedSlashesAction HttpConnectionManagerSettings_PathWithEscapedSlashesAction `` /* 242-byte string literal not displayed */
	// contains filtered or unexported fields
}

Contains various settings for Envoy's http connection manager. See here for more information: https://www.envoyproxy.io/docs/envoy/v1.9.0/configuration/http_conn_man/http_conn_man

func (*HttpConnectionManagerSettings) Descriptor deprecated

func (*HttpConnectionManagerSettings) Descriptor() ([]byte, []int)

Deprecated: Use HttpConnectionManagerSettings.ProtoReflect.Descriptor instead.

func (*HttpConnectionManagerSettings) Equal

func (m *HttpConnectionManagerSettings) Equal(that interface{}) bool

Equal function

func (*HttpConnectionManagerSettings) GetAcceptHttp_10

func (x *HttpConnectionManagerSettings) GetAcceptHttp_10() bool

func (*HttpConnectionManagerSettings) GetDefaultHostForHttp_10

func (x *HttpConnectionManagerSettings) GetDefaultHostForHttp_10() string

func (*HttpConnectionManagerSettings) GetDelayedCloseTimeout

func (x *HttpConnectionManagerSettings) GetDelayedCloseTimeout() *duration.Duration

func (*HttpConnectionManagerSettings) GetDrainTimeout

func (x *HttpConnectionManagerSettings) GetDrainTimeout() *duration.Duration

func (*HttpConnectionManagerSettings) GetForwardClientCertDetails

func (*HttpConnectionManagerSettings) GetGenerateRequestId

func (x *HttpConnectionManagerSettings) GetGenerateRequestId() *wrappers.BoolValue

func (*HttpConnectionManagerSettings) GetIdleTimeout

func (x *HttpConnectionManagerSettings) GetIdleTimeout() *duration.Duration

func (*HttpConnectionManagerSettings) GetMaxConnectionDuration added in v1.5.1

func (x *HttpConnectionManagerSettings) GetMaxConnectionDuration() *duration.Duration

func (*HttpConnectionManagerSettings) GetMaxRequestHeadersKb

func (x *HttpConnectionManagerSettings) GetMaxRequestHeadersKb() *wrappers.UInt32Value

func (*HttpConnectionManagerSettings) GetMaxStreamDuration added in v1.5.1

func (x *HttpConnectionManagerSettings) GetMaxStreamDuration() *duration.Duration

func (*HttpConnectionManagerSettings) GetPathWithEscapedSlashesAction added in v1.6.26

func (*HttpConnectionManagerSettings) GetPreserveExternalRequestId added in v1.2.8

func (x *HttpConnectionManagerSettings) GetPreserveExternalRequestId() bool

func (*HttpConnectionManagerSettings) GetProperCaseHeaderKeyFormat added in v1.3.28

func (x *HttpConnectionManagerSettings) GetProperCaseHeaderKeyFormat() bool

func (*HttpConnectionManagerSettings) GetProxy_100Continue

func (x *HttpConnectionManagerSettings) GetProxy_100Continue() bool

func (*HttpConnectionManagerSettings) GetRequestTimeout

func (x *HttpConnectionManagerSettings) GetRequestTimeout() *duration.Duration

func (*HttpConnectionManagerSettings) GetServerHeaderTransformation added in v1.5.9

func (*HttpConnectionManagerSettings) GetServerName

func (x *HttpConnectionManagerSettings) GetServerName() string

func (*HttpConnectionManagerSettings) GetSetCurrentClientCertDetails

func (*HttpConnectionManagerSettings) GetSkipXffAppend

func (x *HttpConnectionManagerSettings) GetSkipXffAppend() bool

func (*HttpConnectionManagerSettings) GetStreamIdleTimeout

func (x *HttpConnectionManagerSettings) GetStreamIdleTimeout() *duration.Duration

func (*HttpConnectionManagerSettings) GetTracing

func (*HttpConnectionManagerSettings) GetUpgrades added in v1.2.10

func (*HttpConnectionManagerSettings) GetUseRemoteAddress

func (x *HttpConnectionManagerSettings) GetUseRemoteAddress() *wrappers.BoolValue

func (*HttpConnectionManagerSettings) GetVia

func (*HttpConnectionManagerSettings) GetXffNumTrustedHops

func (x *HttpConnectionManagerSettings) GetXffNumTrustedHops() uint32

func (*HttpConnectionManagerSettings) Hash added in v1.2.13

Hash function

func (*HttpConnectionManagerSettings) ProtoMessage

func (*HttpConnectionManagerSettings) ProtoMessage()

func (*HttpConnectionManagerSettings) ProtoReflect added in v1.6.0

func (*HttpConnectionManagerSettings) Reset

func (x *HttpConnectionManagerSettings) Reset()

func (*HttpConnectionManagerSettings) String

type HttpConnectionManagerSettings_ForwardClientCertDetails

type HttpConnectionManagerSettings_ForwardClientCertDetails int32
const (
	HttpConnectionManagerSettings_SANITIZE            HttpConnectionManagerSettings_ForwardClientCertDetails = 0
	HttpConnectionManagerSettings_FORWARD_ONLY        HttpConnectionManagerSettings_ForwardClientCertDetails = 1
	HttpConnectionManagerSettings_APPEND_FORWARD      HttpConnectionManagerSettings_ForwardClientCertDetails = 2
	HttpConnectionManagerSettings_SANITIZE_SET        HttpConnectionManagerSettings_ForwardClientCertDetails = 3
	HttpConnectionManagerSettings_ALWAYS_FORWARD_ONLY HttpConnectionManagerSettings_ForwardClientCertDetails = 4
)

func (HttpConnectionManagerSettings_ForwardClientCertDetails) Descriptor added in v1.6.0

func (HttpConnectionManagerSettings_ForwardClientCertDetails) Enum added in v1.6.0

func (HttpConnectionManagerSettings_ForwardClientCertDetails) EnumDescriptor deprecated

Deprecated: Use HttpConnectionManagerSettings_ForwardClientCertDetails.Descriptor instead.

func (HttpConnectionManagerSettings_ForwardClientCertDetails) Number added in v1.6.0

func (HttpConnectionManagerSettings_ForwardClientCertDetails) String

func (HttpConnectionManagerSettings_ForwardClientCertDetails) Type added in v1.6.0

type HttpConnectionManagerSettings_PathWithEscapedSlashesAction added in v1.6.26

type HttpConnectionManagerSettings_PathWithEscapedSlashesAction int32

Determines the action for request that contain %2F, %2f, %5C or %5c sequences in the URI path. This operation occurs before URL normalization and the merge slashes transformations if they were enabled.

const (
	// Default behavior specific to implementation (i.e. Envoy) of this configuration option.
	// Envoy, by default, takes the KEEP_UNCHANGED action.
	// NOTE: the implementation may change the default behavior at-will.
	HttpConnectionManagerSettings_IMPLEMENTATION_SPECIFIC_DEFAULT HttpConnectionManagerSettings_PathWithEscapedSlashesAction = 0
	// Keep escaped slashes.
	HttpConnectionManagerSettings_KEEP_UNCHANGED HttpConnectionManagerSettings_PathWithEscapedSlashesAction = 1
	// Reject client request with the 400 status. gRPC requests will be rejected with the INTERNAL (13) error code.
	// The "httpN.downstream_rq_failed_path_normalization" counter is incremented for each rejected request.
	HttpConnectionManagerSettings_REJECT_REQUEST HttpConnectionManagerSettings_PathWithEscapedSlashesAction = 2
	// Unescape %2F and %5C sequences and redirect request to the new path if these sequences were present.
	// Redirect occurs after path normalization and merge slashes transformations if they were configured.
	// NOTE: gRPC requests will be rejected with the INTERNAL (13) error code.
	// This option minimizes possibility of path confusion exploits by forcing request with unescaped slashes to
	// traverse all parties: downstream client, intermediate proxies, Envoy and upstream server.
	// The "httpN.downstream_rq_redirected_with_normalized_path" counter is incremented for each
	// redirected request.
	HttpConnectionManagerSettings_UNESCAPE_AND_REDIRECT HttpConnectionManagerSettings_PathWithEscapedSlashesAction = 3
	// Unescape %2F and %5C sequences.
	// Note: this option should not be enabled if intermediaries perform path based access control as
	// it may lead to path confusion vulnerabilities.
	HttpConnectionManagerSettings_UNESCAPE_AND_FORWARD HttpConnectionManagerSettings_PathWithEscapedSlashesAction = 4
)

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) Descriptor added in v1.6.26

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) Enum added in v1.6.26

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) EnumDescriptor deprecated added in v1.6.26

Deprecated: Use HttpConnectionManagerSettings_PathWithEscapedSlashesAction.Descriptor instead.

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) Number added in v1.6.26

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) String added in v1.6.26

func (HttpConnectionManagerSettings_PathWithEscapedSlashesAction) Type added in v1.6.26

type HttpConnectionManagerSettings_ServerHeaderTransformation added in v1.5.9

type HttpConnectionManagerSettings_ServerHeaderTransformation int32
const (
	// (DEFAULT) Overwrite any Server header with the contents of server_name.
	HttpConnectionManagerSettings_OVERWRITE HttpConnectionManagerSettings_ServerHeaderTransformation = 0
	// If no Server header is present, append Server server_name If a Server header is present, pass it through.
	HttpConnectionManagerSettings_APPEND_IF_ABSENT HttpConnectionManagerSettings_ServerHeaderTransformation = 1
	// Pass through the value of the server header, and do not append a header if none is present.
	HttpConnectionManagerSettings_PASS_THROUGH HttpConnectionManagerSettings_ServerHeaderTransformation = 2
)

func (HttpConnectionManagerSettings_ServerHeaderTransformation) Descriptor added in v1.6.0

func (HttpConnectionManagerSettings_ServerHeaderTransformation) Enum added in v1.6.0

func (HttpConnectionManagerSettings_ServerHeaderTransformation) EnumDescriptor deprecated added in v1.5.9

Deprecated: Use HttpConnectionManagerSettings_ServerHeaderTransformation.Descriptor instead.

func (HttpConnectionManagerSettings_ServerHeaderTransformation) Number added in v1.6.0

func (HttpConnectionManagerSettings_ServerHeaderTransformation) String added in v1.5.9

func (HttpConnectionManagerSettings_ServerHeaderTransformation) Type added in v1.6.0

type HttpConnectionManagerSettings_SetCurrentClientCertDetails

type HttpConnectionManagerSettings_SetCurrentClientCertDetails struct {
	Subject *wrappers.BoolValue `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Cert    bool                `protobuf:"varint,2,opt,name=cert,proto3" json:"cert,omitempty"`
	Chain   bool                `protobuf:"varint,3,opt,name=chain,proto3" json:"chain,omitempty"`
	Dns     bool                `protobuf:"varint,4,opt,name=dns,proto3" json:"dns,omitempty"`
	Uri     bool                `protobuf:"varint,5,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) Descriptor deprecated

Deprecated: Use HttpConnectionManagerSettings_SetCurrentClientCertDetails.ProtoReflect.Descriptor instead.

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) Equal

Equal function

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) GetCert

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) GetChain

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) GetDns

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) GetSubject

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) GetUri

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) Hash added in v1.2.13

Hash function

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) ProtoMessage

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) ProtoReflect added in v1.6.0

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) Reset

func (*HttpConnectionManagerSettings_SetCurrentClientCertDetails) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL