Class HeaderValidatorConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
io.envoyproxy.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HeaderValidatorConfigOrBuilder,Cloneable
- Enclosing class:
- HeaderValidatorConfig
public static final class HeaderValidatorConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
implements HeaderValidatorConfigOrBuilder
This extension validates that HTTP request and response headers are well formed according to respective RFCs.
The validator performs comprehensive HTTP header validation including:
#. HTTP/1 header map validity according to `RFC 7230 section 3.2 <https://datatracker.ietf.org/doc/html/rfc7230#section-3.2>`_.
#. Syntax of HTTP/1 request target URI and response status.
#. HTTP/2 header map validity according to `RFC 7540 section 8.1.2 <https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2>`_.
#. Syntax of HTTP/2 pseudo headers.
#. HTTP/3 header map validity according to `RFC 9114 section 4.3 <https://www.rfc-editor.org/rfc/rfc9114.html>`_.
#. Syntax of HTTP/3 pseudo headers.
#. Syntax of Content-Length and Transfer-Encoding.
#. Validation of HTTP/1 requests with both ``Content-Length`` and ``Transfer-Encoding`` headers.
#. Normalization of the URI path according to `Normalization and Comparison <https://datatracker.ietf.org/doc/html/rfc3986#section-6>`_
without `case normalization <https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2.1>`_.
This validator ensures that HTTP traffic processed by Envoy conforms to established
standards and helps prevent issues caused by malformed headers or invalid HTTP syntax.
[#comment:TODO(yanavlasov): Put #extension: envoy.http.header_validators.envoy_default after it is not hidden any more]
[#next-free-field: 6]
Protobuf type envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Action to take when a client request with a header name containing underscore characters is received.HTTP/1 protocol specific options.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Restrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_.Allow requests with fragment in URL path and strip the fragment before request processing.The URI path normalization options.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAction to take when a client request with a header name containing underscore characters is received.intAction to take when a client request with a header name containing underscore characters is received.HTTP/1 protocol specific options.HTTP/1 protocol specific options.HTTP/1 protocol specific options.booleanRestrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_.booleanAllow requests with fragment in URL path and strip the fragment before request processing.The URI path normalization options.The URI path normalization options.The URI path normalization options.booleanHTTP/1 protocol specific options.booleanThe URI path normalization options.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HeaderValidatorConfig other) HTTP/1 protocol specific options.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The URI path normalization options.Action to take when a client request with a header name containing underscore characters is received.setHeadersWithUnderscoresActionValue(int value) Action to take when a client request with a header name containing underscore characters is received.HTTP/1 protocol specific options.HTTP/1 protocol specific options.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRestrictHttpMethods(boolean value) Restrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_.setStripFragmentFromPath(boolean value) Allow requests with fragment in URL path and strip the fragment before request processing.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The URI path normalization options.setUriPathNormalizationOptions(HeaderValidatorConfig.UriPathNormalizationOptions.Builder builderForValue) The URI path normalization options.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
setField
public HeaderValidatorConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
clearField
public HeaderValidatorConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
clearOneof
public HeaderValidatorConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
setRepeatedField
public HeaderValidatorConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
addRepeatedField
public HeaderValidatorConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderValidatorConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
mergeFrom
public HeaderValidatorConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderValidatorConfig.Builder>- Throws:
IOException
-
hasHttp1ProtocolOptions
public boolean hasHttp1ProtocolOptions()HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1;- Specified by:
hasHttp1ProtocolOptionsin interfaceHeaderValidatorConfigOrBuilder- Returns:
- Whether the http1ProtocolOptions field is set.
-
getHttp1ProtocolOptions
HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1;- Specified by:
getHttp1ProtocolOptionsin interfaceHeaderValidatorConfigOrBuilder- Returns:
- The http1ProtocolOptions.
-
setHttp1ProtocolOptions
public HeaderValidatorConfig.Builder setHttp1ProtocolOptions(HeaderValidatorConfig.Http1ProtocolOptions value) HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1; -
setHttp1ProtocolOptions
public HeaderValidatorConfig.Builder setHttp1ProtocolOptions(HeaderValidatorConfig.Http1ProtocolOptions.Builder builderForValue) HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1; -
mergeHttp1ProtocolOptions
public HeaderValidatorConfig.Builder mergeHttp1ProtocolOptions(HeaderValidatorConfig.Http1ProtocolOptions value) HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1; -
clearHttp1ProtocolOptions
HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1; -
getHttp1ProtocolOptionsBuilder
HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1; -
getHttp1ProtocolOptionsOrBuilder
HTTP/1 protocol specific options. These settings control HTTP/1 specific validation behaviors.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.Http1ProtocolOptions http1_protocol_options = 1;- Specified by:
getHttp1ProtocolOptionsOrBuilderin interfaceHeaderValidatorConfigOrBuilder
-
hasUriPathNormalizationOptions
public boolean hasUriPathNormalizationOptions()The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2;- Specified by:
hasUriPathNormalizationOptionsin interfaceHeaderValidatorConfigOrBuilder- Returns:
- Whether the uriPathNormalizationOptions field is set.
-
getUriPathNormalizationOptions
The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2;- Specified by:
getUriPathNormalizationOptionsin interfaceHeaderValidatorConfigOrBuilder- Returns:
- The uriPathNormalizationOptions.
-
setUriPathNormalizationOptions
public HeaderValidatorConfig.Builder setUriPathNormalizationOptions(HeaderValidatorConfig.UriPathNormalizationOptions value) The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2; -
setUriPathNormalizationOptions
public HeaderValidatorConfig.Builder setUriPathNormalizationOptions(HeaderValidatorConfig.UriPathNormalizationOptions.Builder builderForValue) The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2; -
mergeUriPathNormalizationOptions
public HeaderValidatorConfig.Builder mergeUriPathNormalizationOptions(HeaderValidatorConfig.UriPathNormalizationOptions value) The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2; -
clearUriPathNormalizationOptions
The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2; -
getUriPathNormalizationOptionsBuilder
public HeaderValidatorConfig.UriPathNormalizationOptions.Builder getUriPathNormalizationOptionsBuilder()The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2; -
getUriPathNormalizationOptionsOrBuilder
public HeaderValidatorConfig.UriPathNormalizationOptionsOrBuilder getUriPathNormalizationOptionsOrBuilder()The URI path normalization options. By default Envoy normalizes URI path using the default values of the :ref:`UriPathNormalizationOptions <envoy_v3_api_msg_extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions>`. URI path transformations specified by the ``uri_path_normalization_options`` configuration can be applied to a portion of requests by setting the ``envoy_default_header_validator.uri_path_transformations`` runtime value. .. attention:: Disabling path normalization may lead to path confusion vulnerabilities in access control or incorrect service selection.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.UriPathNormalizationOptions uri_path_normalization_options = 2;- Specified by:
getUriPathNormalizationOptionsOrBuilderin interfaceHeaderValidatorConfigOrBuilder
-
getRestrictHttpMethods
public boolean getRestrictHttpMethods()Restrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_. Envoy will respond with 400 to requests with disallowed methods. By default methods with arbitrary names are accepted. This setting helps enforce HTTP compliance and can prevent attacks that rely on non-standard HTTP methods.
bool restrict_http_methods = 3;- Specified by:
getRestrictHttpMethodsin interfaceHeaderValidatorConfigOrBuilder- Returns:
- The restrictHttpMethods.
-
setRestrictHttpMethods
Restrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_. Envoy will respond with 400 to requests with disallowed methods. By default methods with arbitrary names are accepted. This setting helps enforce HTTP compliance and can prevent attacks that rely on non-standard HTTP methods.
bool restrict_http_methods = 3;- Parameters:
value- The restrictHttpMethods to set.- Returns:
- This builder for chaining.
-
clearRestrictHttpMethods
Restrict HTTP methods to these defined in the `RFC 7231 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7231#section-4.1>`_. Envoy will respond with 400 to requests with disallowed methods. By default methods with arbitrary names are accepted. This setting helps enforce HTTP compliance and can prevent attacks that rely on non-standard HTTP methods.
bool restrict_http_methods = 3;- Returns:
- This builder for chaining.
-
getHeadersWithUnderscoresActionValue
public int getHeadersWithUnderscoresActionValue()Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ``ALLOW``. This setting provides security control over headers with underscores, which can be a source of security issues when different systems interpret underscores and hyphens differently.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.HeadersWithUnderscoresAction headers_with_underscores_action = 4;- Specified by:
getHeadersWithUnderscoresActionValuein interfaceHeaderValidatorConfigOrBuilder- Returns:
- The enum numeric value on the wire for headersWithUnderscoresAction.
-
setHeadersWithUnderscoresActionValue
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ``ALLOW``. This setting provides security control over headers with underscores, which can be a source of security issues when different systems interpret underscores and hyphens differently.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.HeadersWithUnderscoresAction headers_with_underscores_action = 4;- Parameters:
value- The enum numeric value on the wire for headersWithUnderscoresAction to set.- Returns:
- This builder for chaining.
-
getHeadersWithUnderscoresAction
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ``ALLOW``. This setting provides security control over headers with underscores, which can be a source of security issues when different systems interpret underscores and hyphens differently.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.HeadersWithUnderscoresAction headers_with_underscores_action = 4;- Specified by:
getHeadersWithUnderscoresActionin interfaceHeaderValidatorConfigOrBuilder- Returns:
- The headersWithUnderscoresAction.
-
setHeadersWithUnderscoresAction
public HeaderValidatorConfig.Builder setHeadersWithUnderscoresAction(HeaderValidatorConfig.HeadersWithUnderscoresAction value) Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ``ALLOW``. This setting provides security control over headers with underscores, which can be a source of security issues when different systems interpret underscores and hyphens differently.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.HeadersWithUnderscoresAction headers_with_underscores_action = 4;- Parameters:
value- The headersWithUnderscoresAction to set.- Returns:
- This builder for chaining.
-
clearHeadersWithUnderscoresAction
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ``ALLOW``. This setting provides security control over headers with underscores, which can be a source of security issues when different systems interpret underscores and hyphens differently.
.envoy.extensions.http.header_validators.envoy_default.v3.HeaderValidatorConfig.HeadersWithUnderscoresAction headers_with_underscores_action = 4;- Returns:
- This builder for chaining.
-
getStripFragmentFromPath
public boolean getStripFragmentFromPath()Allow requests with fragment in URL path and strip the fragment before request processing. By default Envoy rejects requests with fragment in URL path. When this option is enabled, the fragment portion (everything after ``#``) will be removed from the path before further processing. Fragments are typically used by client-side applications and should not normally be sent to the server, so stripping them can help normalize requests.
bool strip_fragment_from_path = 5;- Specified by:
getStripFragmentFromPathin interfaceHeaderValidatorConfigOrBuilder- Returns:
- The stripFragmentFromPath.
-
setStripFragmentFromPath
Allow requests with fragment in URL path and strip the fragment before request processing. By default Envoy rejects requests with fragment in URL path. When this option is enabled, the fragment portion (everything after ``#``) will be removed from the path before further processing. Fragments are typically used by client-side applications and should not normally be sent to the server, so stripping them can help normalize requests.
bool strip_fragment_from_path = 5;- Parameters:
value- The stripFragmentFromPath to set.- Returns:
- This builder for chaining.
-
clearStripFragmentFromPath
Allow requests with fragment in URL path and strip the fragment before request processing. By default Envoy rejects requests with fragment in URL path. When this option is enabled, the fragment portion (everything after ``#``) will be removed from the path before further processing. Fragments are typically used by client-side applications and should not normally be sent to the server, so stripping them can help normalize requests.
bool strip_fragment_from_path = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final HeaderValidatorConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-
mergeUnknownFields
public final HeaderValidatorConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderValidatorConfig.Builder>
-