Interface Cluster.OriginalDstLbConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Cluster.OriginalDstLbConfig, Cluster.OriginalDstLbConfig.Builder
Enclosing class:
Cluster

public static interface Cluster.OriginalDstLbConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.
    com.google.protobuf.ByteString
    The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.
    The dynamic metadata key to override destination address.
    The dynamic metadata key to override destination address.
    com.google.protobuf.UInt32Value
    The port to override for the original dst address.
    com.google.protobuf.UInt32ValueOrBuilder
    The port to override for the original dst address.
    boolean
    When true, a HTTP header can be used to override the original dst address.
    boolean
    The dynamic metadata key to override destination address.
    boolean
    The port to override for the original dst address.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getUseHttpHeader

      boolean getUseHttpHeader()
       When true, a HTTP header can be used to override the original dst address. The default header is
       :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>`.
      
       .. attention::
      
       This header isn't sanitized by default, so enabling this feature allows HTTP clients to
       route traffic to arbitrary hosts and/or ports, which may have serious security
       consequences.
      
       .. note::
      
       If the header appears multiple times only the first value is used.
       
      bool use_http_header = 1;
      Returns:
      The useHttpHeader.
    • getHttpHeaderName

      String getHttpHeaderName()
       The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.
       is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
       
      string http_header_name = 2;
      Returns:
      The httpHeaderName.
    • getHttpHeaderNameBytes

      com.google.protobuf.ByteString getHttpHeaderNameBytes()
       The http header to override destination address if :ref:`use_http_header <envoy_v3_api_field_config.cluster.v3.Cluster.OriginalDstLbConfig.use_http_header>`.
       is set to true. If the value is empty, :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
       
      string http_header_name = 2;
      Returns:
      The bytes for httpHeaderName.
    • hasUpstreamPortOverride

      boolean hasUpstreamPortOverride()
       The port to override for the original dst address. This port
       will take precedence over filter state and header override ports
       
      .google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
      Returns:
      Whether the upstreamPortOverride field is set.
    • getUpstreamPortOverride

      com.google.protobuf.UInt32Value getUpstreamPortOverride()
       The port to override for the original dst address. This port
       will take precedence over filter state and header override ports
       
      .google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
      Returns:
      The upstreamPortOverride.
    • getUpstreamPortOverrideOrBuilder

      com.google.protobuf.UInt32ValueOrBuilder getUpstreamPortOverrideOrBuilder()
       The port to override for the original dst address. This port
       will take precedence over filter state and header override ports
       
      .google.protobuf.UInt32Value upstream_port_override = 3 [(.validate.rules) = { ... }
    • hasMetadataKey

      boolean hasMetadataKey()
       The dynamic metadata key to override destination address.
       First the request metadata is considered, then the connection one.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 4;
      Returns:
      Whether the metadataKey field is set.
    • getMetadataKey

      MetadataKey getMetadataKey()
       The dynamic metadata key to override destination address.
       First the request metadata is considered, then the connection one.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 4;
      Returns:
      The metadataKey.
    • getMetadataKeyOrBuilder

      MetadataKeyOrBuilder getMetadataKeyOrBuilder()
       The dynamic metadata key to override destination address.
       First the request metadata is considered, then the connection one.
       
      .envoy.type.metadata.v3.MetadataKey metadata_key = 4;