network: add direct response network filter (#10210)

Signed-off-by: Kuat Yessenov <kuat@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ e8e20c3b045dcde43aee2f7eea63aa0d2b1edb2f
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 524e939e13
commit a896d18c8f
  1. 2
      BUILD
  2. 1
      docs/BUILD
  3. 9
      envoy/config/filter/network/direct_response/v2/BUILD
  4. 20
      envoy/config/filter/network/direct_response/v2/config.proto
  5. 12
      envoy/extensions/filters/network/direct_response/v3/BUILD
  6. 21
      envoy/extensions/filters/network/direct_response/v3/config.proto

@ -62,6 +62,7 @@ proto_library(
"//envoy/config/filter/listener/proxy_protocol/v2:pkg",
"//envoy/config/filter/listener/tls_inspector/v2:pkg",
"//envoy/config/filter/network/client_ssl_auth/v2:pkg",
"//envoy/config/filter/network/direct_response/v2:pkg",
"//envoy/config/filter/network/dubbo_proxy/v2alpha1:pkg",
"//envoy/config/filter/network/echo/v2:pkg",
"//envoy/config/filter/network/ext_authz/v2:pkg",
@ -193,6 +194,7 @@ proto_library(
"//envoy/extensions/filters/listener/proxy_protocol/v3:pkg",
"//envoy/extensions/filters/listener/tls_inspector/v3:pkg",
"//envoy/extensions/filters/network/client_ssl_auth/v3:pkg",
"//envoy/extensions/filters/network/direct_response/v3:pkg",
"//envoy/extensions/filters/network/dubbo_proxy/router/v3:pkg",
"//envoy/extensions/filters/network/dubbo_proxy/v3:pkg",
"//envoy/extensions/filters/network/echo/v3:pkg",

@ -68,6 +68,7 @@ proto_library(
"//envoy/config/filter/listener/proxy_protocol/v2:pkg",
"//envoy/config/filter/listener/tls_inspector/v2:pkg",
"//envoy/config/filter/network/client_ssl_auth/v2:pkg",
"//envoy/config/filter/network/direct_response/v2:pkg",
"//envoy/config/filter/network/dubbo_proxy/v2alpha1:pkg",
"//envoy/config/filter/network/echo/v2:pkg",
"//envoy/config/filter/network/ext_authz/v2:pkg",

@ -0,0 +1,9 @@
# DO NOT EDIT. This file is generated by tools/proto_sync.py.
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)

@ -0,0 +1,20 @@
syntax = "proto3";
package envoy.config.filter.network.direct_response.v2;
import "udpa/annotations/migrate.proto";
option java_package = "io.envoyproxy.envoy.config.filter.network.direct_response.v2";
option java_outer_classname = "ConfigProto";
option java_multiple_files = true;
option (udpa.annotations.file_migrate).move_to_package =
"envoy.extensions.filters.network.direct_response.v3";
// [#protodoc-title: Direct response]
// Direct response :ref:`configuration overview <config_network_filters_direct_response>`.
// [#extension: envoy.filters.network.direct_response]
message Config {
// Response data as bytes.
bytes response = 1;
}

@ -0,0 +1,12 @@
# DO NOT EDIT. This file is generated by tools/proto_sync.py.
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/filter/network/direct_response/v2:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)

@ -0,0 +1,21 @@
syntax = "proto3";
package envoy.extensions.filters.network.direct_response.v3;
import "udpa/annotations/versioning.proto";
option java_package = "io.envoyproxy.envoy.extensions.filters.network.direct_response.v3";
option java_outer_classname = "ConfigProto";
option java_multiple_files = true;
// [#protodoc-title: Direct response]
// Direct response :ref:`configuration overview <config_network_filters_direct_response>`.
// [#extension: envoy.filters.network.direct_response]
message Config {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.filter.network.direct_response.v2.Config";
// Response data as bytes.
bytes response = 1;
}
Loading…
Cancel
Save