Interface CsrfPolicyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CsrfPolicy, CsrfPolicy.Builder

    public interface CsrfPolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasFilterEnabled

        boolean hasFilterEnabled()
         Specifies the % of requests for which the CSRF filter is enabled.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests to filter.
         .. note::
           This field defaults to 100/:ref:`HUNDRED
           <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
         
        .envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }
        Returns:
        Whether the filterEnabled field is set.
      • getFilterEnabled

        RuntimeFractionalPercent getFilterEnabled()
         Specifies the % of requests for which the CSRF filter is enabled.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests to filter.
         .. note::
           This field defaults to 100/:ref:`HUNDRED
           <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
         
        .envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }
        Returns:
        The filterEnabled.
      • getFilterEnabledOrBuilder

        RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
         Specifies the % of requests for which the CSRF filter is enabled.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests to filter.
         .. note::
           This field defaults to 100/:ref:`HUNDRED
           <envoy_v3_api_enum_type.v3.FractionalPercent.DenominatorType>`.
         
        .envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }
      • hasShadowEnabled

        boolean hasShadowEnabled()
         Specifies that CSRF policies will be evaluated and tracked, but not enforced.
         This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate
         and track the request's ``Origin`` and ``Destination`` to determine if it's valid, but will not
         enforce any policies.
         
        .envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;
        Returns:
        Whether the shadowEnabled field is set.
      • getShadowEnabled

        RuntimeFractionalPercent getShadowEnabled()
         Specifies that CSRF policies will be evaluated and tracked, but not enforced.
         This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate
         and track the request's ``Origin`` and ``Destination`` to determine if it's valid, but will not
         enforce any policies.
         
        .envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;
        Returns:
        The shadowEnabled.
      • getShadowEnabledOrBuilder

        RuntimeFractionalPercentOrBuilder getShadowEnabledOrBuilder()
         Specifies that CSRF policies will be evaluated and tracked, but not enforced.
         This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise.
         If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified,
         Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate
         and track the request's ``Origin`` and ``Destination`` to determine if it's valid, but will not
         enforce any policies.
         
        .envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;
      • getAdditionalOriginsList

        List<StringMatcher> getAdditionalOriginsList()
         Specifies additional source origins that will be allowed in addition to
         the destination origin.
         More information on how this can be configured via runtime can be found
         :ref:`here <csrf-configuration>`.
         
        repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;
      • getAdditionalOrigins

        StringMatcher getAdditionalOrigins​(int index)
         Specifies additional source origins that will be allowed in addition to
         the destination origin.
         More information on how this can be configured via runtime can be found
         :ref:`here <csrf-configuration>`.
         
        repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;
      • getAdditionalOriginsCount

        int getAdditionalOriginsCount()
         Specifies additional source origins that will be allowed in addition to
         the destination origin.
         More information on how this can be configured via runtime can be found
         :ref:`here <csrf-configuration>`.
         
        repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;
      • getAdditionalOriginsOrBuilderList

        List<? extends StringMatcherOrBuilder> getAdditionalOriginsOrBuilderList()
         Specifies additional source origins that will be allowed in addition to
         the destination origin.
         More information on how this can be configured via runtime can be found
         :ref:`here <csrf-configuration>`.
         
        repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;
      • getAdditionalOriginsOrBuilder

        StringMatcherOrBuilder getAdditionalOriginsOrBuilder​(int index)
         Specifies additional source origins that will be allowed in addition to
         the destination origin.
         More information on how this can be configured via runtime can be found
         :ref:`here <csrf-configuration>`.
         
        repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;