From 564e9b6748f8c6531c6dfc52825aedc7e0af7de9 Mon Sep 17 00:00:00 2001 From: Pengyuan Bian Date: Wed, 16 Jun 2021 17:46:16 +0000 Subject: [PATCH 1/3] Update Envoy SHA. --- .bazelversion | 2 +- WORKSPACE | 6 ++--- envoy.bazelrc | 5 ++++- extensions/access_log_policy/config.cc | 2 +- extensions/access_log_policy/plugin.cc | 2 +- extensions/attributegen/plugin_test.cc | 8 +++---- extensions/common/proto_util_speed_test.cc | 2 +- extensions/metadata_exchange/config.cc | 2 +- extensions/metadata_exchange/plugin.cc | 2 +- src/envoy/extensions/wasm/wasm.cc | 4 ++-- src/envoy/http/alpn/BUILD | 4 ++-- src/envoy/http/alpn/alpn_filter.cc | 2 +- src/envoy/http/alpn/alpn_test.cc | 2 +- src/envoy/http/alpn/config.cc | 2 +- src/envoy/http/authn/authenticator_base.cc | 4 ++-- src/envoy/http/authn/authenticator_base.h | 2 +- .../http/authn/authenticator_base_test.cc | 4 ++-- src/envoy/http/authn/authn_utils.h | 4 ++-- src/envoy/http/authn/authn_utils_test.cc | 4 ++-- src/envoy/http/authn/filter_context.h | 2 +- src/envoy/http/authn/http_filter.cc | 2 +- src/envoy/http/authn/http_filter.h | 2 +- .../authn/http_filter_integration_test.cc | 4 ++-- src/envoy/http/authn/http_filter_test.cc | 6 ++--- src/envoy/http/authn/origin_authenticator.cc | 4 ++-- .../http/authn/origin_authenticator_test.cc | 2 +- src/envoy/http/authn/peer_authenticator.cc | 2 +- .../http/authn/peer_authenticator_test.cc | 2 +- src/envoy/http/authn/test_utils.h | 2 +- .../forward_downstream_sni.cc | 2 +- .../forward_downstream_sni_test.cc | 2 +- src/envoy/tcp/metadata_exchange/BUILD | 14 ++++++------ .../metadata_exchange/metadata_exchange.cc | 4 ++-- .../tcp/metadata_exchange/metadata_exchange.h | 2 +- .../metadata_exchange_test.cc | 4 ++-- src/envoy/tcp/sni_verifier/sni_verifier.cc | 2 +- src/envoy/tcp/sni_verifier/sni_verifier.h | 2 +- .../tcp/sni_verifier/sni_verifier_test.cc | 2 +- .../tcp_cluster_rewrite.cc | 4 ++-- .../tcp_cluster_rewrite/tcp_cluster_rewrite.h | 2 +- .../tcp_cluster_rewrite_test.cc | 2 +- src/envoy/upstreams/http/metadata/BUILD | 22 +++++++++---------- src/envoy/upstreams/http/metadata/config.h | 2 +- .../http/metadata/integration_test.cc | 2 +- src/envoy/utils/authn.cc | 2 +- src/envoy/utils/authn.h | 4 ++-- src/envoy/utils/authn_test.cc | 2 +- 47 files changed, 85 insertions(+), 82 deletions(-) diff --git a/.bazelversion b/.bazelversion index 0b2eb36f50..ee74734aa2 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -3.7.2 +4.1.0 diff --git a/WORKSPACE b/WORKSPACE index 303add0b92..15b2edd9ba 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -38,10 +38,10 @@ bind( # 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed. # # Note: this is needed by release builder to resolve envoy dep sha to tag. -# Commit date: 2021-05-18 -ENVOY_SHA = "ea32578cc8fd79e0d55ed2ee3a873d2ffb45bb8a" +# Commit date: 2021-06-15 +ENVOY_SHA = "d4c7fddda5761dc725d06ab4061ea8cd212ab554" -ENVOY_SHA256 = "d46981a5ad08db489fd59df3fa14e29f13766ccfc8889cfb9508541e8cb80a54" +ENVOY_SHA256 = "610954dbc2cb9c43c8a7505274572ff1ddebf3d9136995d8815101657f1b8313" ENVOY_ORG = "envoyproxy" diff --git a/envoy.bazelrc b/envoy.bazelrc index 95330f8ddb..8912dfe9f6 100644 --- a/envoy.bazelrc +++ b/envoy.bazelrc @@ -105,9 +105,12 @@ build:clang-msan --config=sanitizer build:clang-msan --define ENVOY_CONFIG_MSAN=1 build:clang-msan --copt -fsanitize=memory build:clang-msan --linkopt -fsanitize=memory +build:clang-msan --linkopt -fuse-ld=lld build:clang-msan --copt -fsanitize-memory-track-origins=2 +build:clang-msan --test_env=MSAN_SYMBOLIZER_PATH # MSAN needs -O1 to get reasonable performance. build:clang-msan --copt -O1 +build:clang-msan --copt -fno-optimize-sibling-calls # Clang with libc++ build:libc++ --config=clang @@ -375,4 +378,4 @@ build:windows --dynamic_mode=off try-import %workspace%/clang.bazelrc try-import %workspace%/user.bazelrc -try-import %workspace%/local_tsan.bazelrc +try-import %workspace%/local_tsan.bazelrc \ No newline at end of file diff --git a/extensions/access_log_policy/config.cc b/extensions/access_log_policy/config.cc index e8bf13cd00..9f6d210dbe 100644 --- a/extensions/access_log_policy/config.cc +++ b/extensions/access_log_policy/config.cc @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "common/common/base64.h" +#include "source/common/common/base64.h" #include "extensions/access_log_policy/plugin.h" namespace proxy_wasm { diff --git a/extensions/access_log_policy/plugin.cc b/extensions/access_log_policy/plugin.cc index 6b84d2c314..667fd3be7f 100644 --- a/extensions/access_log_policy/plugin.cc +++ b/extensions/access_log_policy/plugin.cc @@ -29,7 +29,7 @@ #else -#include "common/common/base64.h" +#include "source/common/common/base64.h" namespace proxy_wasm { namespace null_plugin { namespace AccessLogPolicy { diff --git a/extensions/attributegen/plugin_test.cc b/extensions/attributegen/plugin_test.cc index d936ff63c8..1cb3cfbefe 100644 --- a/extensions/attributegen/plugin_test.cc +++ b/extensions/attributegen/plugin_test.cc @@ -16,10 +16,10 @@ #include #include -#include "common/buffer/buffer_impl.h" -#include "common/http/message_impl.h" -#include "common/stats/isolated_store_impl.h" -#include "common/stream_info/stream_info_impl.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/http/message_impl.h" +#include "source/common/stats/isolated_store_impl.h" +#include "source/common/stream_info/stream_info_impl.h" #include "envoy/server/lifecycle_notifier.h" #include "extensions/filters/common/expr/cel_state.h" #include "extensions/filters/http/wasm/wasm_filter.h" diff --git a/extensions/common/proto_util_speed_test.cc b/extensions/common/proto_util_speed_test.cc index 8a388f041a..a05b1ceeec 100644 --- a/extensions/common/proto_util_speed_test.cc +++ b/extensions/common/proto_util_speed_test.cc @@ -14,7 +14,7 @@ */ #include "benchmark/benchmark.h" -#include "common/stream_info/filter_state_impl.h" +#include "source/common/stream_info/filter_state_impl.h" #include "extensions/common/node_info_generated.h" #include "extensions/common/proto_util.h" #include "extensions/filters/common/expr/cel_state.h" diff --git a/extensions/metadata_exchange/config.cc b/extensions/metadata_exchange/config.cc index 204d88996f..cf416ceb27 100644 --- a/extensions/metadata_exchange/config.cc +++ b/extensions/metadata_exchange/config.cc @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "common/common/base64.h" +#include "source/common/common/base64.h" #include "include/proxy-wasm/null_plugin.h" namespace proxy_wasm { diff --git a/extensions/metadata_exchange/plugin.cc b/extensions/metadata_exchange/plugin.cc index efb70cd065..cc7c1b9f6a 100644 --- a/extensions/metadata_exchange/plugin.cc +++ b/extensions/metadata_exchange/plugin.cc @@ -28,7 +28,7 @@ #else -#include "common/common/base64.h" +#include "source/common/common/base64.h" #include "source/extensions/common/wasm/ext/declare_property.pb.h" namespace proxy_wasm { diff --git a/src/envoy/extensions/wasm/wasm.cc b/src/envoy/extensions/wasm/wasm.cc index e2c93b80ed..4409646225 100644 --- a/src/envoy/extensions/wasm/wasm.cc +++ b/src/envoy/extensions/wasm/wasm.cc @@ -14,8 +14,8 @@ */ #include "extensions/common/wasm/wasm.h" -#include "common/stats/utility.h" -#include "common/version/version.h" +#include "source/common/stats/utility.h" +#include "source/common/version/version.h" #include "server/admin/prometheus_stats.h" #include "src/envoy/extensions/wasm/context.h" diff --git a/src/envoy/http/alpn/BUILD b/src/envoy/http/alpn/BUILD index 4eb0adb0de..0d43065fa3 100644 --- a/src/envoy/http/alpn/BUILD +++ b/src/envoy/http/alpn/BUILD @@ -31,7 +31,7 @@ envoy_cc_library( repository = "@envoy", deps = [ "//external:alpn_filter_config_cc_proto", - "@envoy//include/envoy/http:filter_interface", + "@envoy//envoy/http:filter_interface", "@envoy//source/common/network:application_protocol_lib", "@envoy//source/extensions/filters/http/common:pass_through_filter_lib", ], @@ -46,7 +46,7 @@ envoy_cc_library( deps = [ ":alpn_filter", "//src/envoy/utils:filter_names_lib", - "@envoy//include/envoy/registry", + "@envoy//envoy/registry", "@envoy//source/exe:envoy_common_lib", "@envoy//source/extensions/filters/http/common:factory_base_lib", ], diff --git a/src/envoy/http/alpn/alpn_filter.cc b/src/envoy/http/alpn/alpn_filter.cc index 35c01489a2..c0e78942d9 100644 --- a/src/envoy/http/alpn/alpn_filter.cc +++ b/src/envoy/http/alpn/alpn_filter.cc @@ -15,7 +15,7 @@ #include "src/envoy/http/alpn/alpn_filter.h" -#include "common/network/application_protocol.h" +#include "source/common/network/application_protocol.h" #include "envoy/upstream/cluster_manager.h" namespace Envoy { diff --git a/src/envoy/http/alpn/alpn_test.cc b/src/envoy/http/alpn/alpn_test.cc index 21f3fb4e11..cd1e7e6cc7 100644 --- a/src/envoy/http/alpn/alpn_test.cc +++ b/src/envoy/http/alpn/alpn_test.cc @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "common/network/application_protocol.h" +#include "source/common/network/application_protocol.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "src/envoy/http/alpn/alpn_filter.h" diff --git a/src/envoy/http/alpn/config.cc b/src/envoy/http/alpn/config.cc index 1c83e8ccdd..93eb4c5d61 100644 --- a/src/envoy/http/alpn/config.cc +++ b/src/envoy/http/alpn/config.cc @@ -15,7 +15,7 @@ #include "src/envoy/http/alpn/config.h" -#include "common/protobuf/message_validator_impl.h" +#include "source/common/protobuf/message_validator_impl.h" #include "src/envoy/http/alpn/alpn_filter.h" #include "src/envoy/utils/filter_names.h" diff --git a/src/envoy/http/authn/authenticator_base.cc b/src/envoy/http/authn/authenticator_base.cc index a7ce0181ec..2b706bb649 100644 --- a/src/envoy/http/authn/authenticator_base.cc +++ b/src/envoy/http/authn/authenticator_base.cc @@ -15,8 +15,8 @@ #include "src/envoy/http/authn/authenticator_base.h" -#include "common/common/assert.h" -#include "common/config/metadata.h" +#include "source/common/common/assert.h" +#include "source/common/config/metadata.h" #include "src/envoy/http/authn/authn_utils.h" #include "src/envoy/utils/filter_names.h" #include "src/envoy/utils/utils.h" diff --git a/src/envoy/http/authn/authenticator_base.h b/src/envoy/http/authn/authenticator_base.h index 696f31d8ee..18d7aa2689 100644 --- a/src/envoy/http/authn/authenticator_base.h +++ b/src/envoy/http/authn/authenticator_base.h @@ -16,7 +16,7 @@ #pragma once #include "authentication/v1alpha1/policy.pb.h" -#include "common/common/logger.h" +#include "source/common/common/logger.h" #include "src/envoy/http/authn/filter_context.h" #include "src/istio/authn/context.pb.h" diff --git a/src/envoy/http/authn/authenticator_base_test.cc b/src/envoy/http/authn/authenticator_base_test.cc index fafb1adb19..7f429540d9 100644 --- a/src/envoy/http/authn/authenticator_base_test.cc +++ b/src/envoy/http/authn/authenticator_base_test.cc @@ -15,8 +15,8 @@ #include "src/envoy/http/authn/authenticator_base.h" -#include "common/common/base64.h" -#include "common/protobuf/protobuf.h" +#include "source/common/common/base64.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "gmock/gmock.h" diff --git a/src/envoy/http/authn/authn_utils.h b/src/envoy/http/authn/authn_utils.h index b5df2e3a04..5451619f15 100644 --- a/src/envoy/http/authn/authn_utils.h +++ b/src/envoy/http/authn/authn_utils.h @@ -16,8 +16,8 @@ #pragma once #include "authentication/v1alpha1/policy.pb.h" -#include "common/common/logger.h" -#include "common/common/utility.h" +#include "source/common/common/logger.h" +#include "source/common/common/utility.h" #include "envoy/http/header_map.h" #include "src/istio/authn/context.pb.h" diff --git a/src/envoy/http/authn/authn_utils_test.cc b/src/envoy/http/authn/authn_utils_test.cc index c3bcb03fe4..06413705bb 100644 --- a/src/envoy/http/authn/authn_utils_test.cc +++ b/src/envoy/http/authn/authn_utils_test.cc @@ -14,8 +14,8 @@ */ #include "src/envoy/http/authn/authn_utils.h" -#include "common/common/base64.h" -#include "common/common/utility.h" +#include "source/common/common/base64.h" +#include "source/common/common/utility.h" #include "src/envoy/http/authn/test_utils.h" #include "test/test_common/utility.h" diff --git a/src/envoy/http/authn/filter_context.h b/src/envoy/http/authn/filter_context.h index 0163d64942..81c3318572 100644 --- a/src/envoy/http/authn/filter_context.h +++ b/src/envoy/http/authn/filter_context.h @@ -16,7 +16,7 @@ #pragma once #include "authentication/v1alpha1/policy.pb.h" -#include "common/common/logger.h" +#include "source/common/common/logger.h" #include "envoy/config/core/v3/base.pb.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "envoy/http/filter.h" diff --git a/src/envoy/http/authn/http_filter.cc b/src/envoy/http/authn/http_filter.cc index 59333bea50..4f02118428 100644 --- a/src/envoy/http/authn/http_filter.cc +++ b/src/envoy/http/authn/http_filter.cc @@ -16,7 +16,7 @@ #include "src/envoy/http/authn/http_filter.h" #include "authentication/v1alpha1/policy.pb.h" -#include "common/http/utility.h" +#include "source/common/http/utility.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "src/envoy/http/authn/origin_authenticator.h" #include "src/envoy/http/authn/peer_authenticator.h" diff --git a/src/envoy/http/authn/http_filter.h b/src/envoy/http/authn/http_filter.h index bb5ab94ba6..1a130b5dc7 100644 --- a/src/envoy/http/authn/http_filter.h +++ b/src/envoy/http/authn/http_filter.h @@ -15,7 +15,7 @@ #pragma once -#include "common/common/logger.h" +#include "source/common/common/logger.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "envoy/http/filter.h" #include "src/envoy/http/authn/authenticator_base.h" diff --git a/src/envoy/http/authn/http_filter_integration_test.cc b/src/envoy/http/authn/http_filter_integration_test.cc index 8313a09141..7c90b257b4 100644 --- a/src/envoy/http/authn/http_filter_integration_test.cc +++ b/src/envoy/http/authn/http_filter_integration_test.cc @@ -13,8 +13,8 @@ * limitations under the License. */ -#include "common/common/base64.h" -#include "common/common/utility.h" +#include "source/common/common/base64.h" +#include "source/common/common/utility.h" #include "extensions/filters/http/well_known_names.h" #include "fmt/printf.h" #include "src/envoy/utils/filter_names.h" diff --git a/src/envoy/http/authn/http_filter_test.cc b/src/envoy/http/authn/http_filter_test.cc index c9e2a84299..5642ec352e 100644 --- a/src/envoy/http/authn/http_filter_test.cc +++ b/src/envoy/http/authn/http_filter_test.cc @@ -15,9 +15,9 @@ #include "src/envoy/http/authn/http_filter.h" -#include "common/common/base64.h" -#include "common/http/header_map_impl.h" -#include "common/stream_info/stream_info_impl.h" +#include "source/common/common/base64.h" +#include "source/common/http/header_map_impl.h" +#include "source/common/stream_info/stream_info_impl.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" diff --git a/src/envoy/http/authn/origin_authenticator.cc b/src/envoy/http/authn/origin_authenticator.cc index 07eda94bdf..404b3b0b32 100644 --- a/src/envoy/http/authn/origin_authenticator.cc +++ b/src/envoy/http/authn/origin_authenticator.cc @@ -17,8 +17,8 @@ #include "absl/strings/match.h" #include "authentication/v1alpha1/policy.pb.h" -#include "common/http/headers.h" -#include "common/http/utility.h" +#include "source/common/http/headers.h" +#include "source/common/http/utility.h" #include "src/envoy/http/authn/authn_utils.h" using istio::authn::Payload; diff --git a/src/envoy/http/authn/origin_authenticator_test.cc b/src/envoy/http/authn/origin_authenticator_test.cc index 47390651fe..e93e51ed33 100644 --- a/src/envoy/http/authn/origin_authenticator_test.cc +++ b/src/envoy/http/authn/origin_authenticator_test.cc @@ -16,7 +16,7 @@ #include "src/envoy/http/authn/origin_authenticator.h" #include "authentication/v1alpha1/policy.pb.h" -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" diff --git a/src/envoy/http/authn/peer_authenticator.cc b/src/envoy/http/authn/peer_authenticator.cc index 44d7679ed7..45abce1252 100644 --- a/src/envoy/http/authn/peer_authenticator.cc +++ b/src/envoy/http/authn/peer_authenticator.cc @@ -15,7 +15,7 @@ #include "src/envoy/http/authn/peer_authenticator.h" -#include "common/http/utility.h" +#include "source/common/http/utility.h" #include "src/envoy/utils/utils.h" using istio::authn::Payload; diff --git a/src/envoy/http/authn/peer_authenticator_test.cc b/src/envoy/http/authn/peer_authenticator_test.cc index 56f95f9f98..6ff36e7f69 100644 --- a/src/envoy/http/authn/peer_authenticator_test.cc +++ b/src/envoy/http/authn/peer_authenticator_test.cc @@ -16,7 +16,7 @@ #include "src/envoy/http/authn/peer_authenticator.h" #include "authentication/v1alpha1/policy.pb.h" -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" diff --git a/src/envoy/http/authn/test_utils.h b/src/envoy/http/authn/test_utils.h index 40ffaacc6c..bb6e371f47 100644 --- a/src/envoy/http/authn/test_utils.h +++ b/src/envoy/http/authn/test_utils.h @@ -15,7 +15,7 @@ #pragma once -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "gmock/gmock.h" #include "src/istio/authn/context.pb.h" diff --git a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc index dfd63ad4aa..58df458807 100644 --- a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc +++ b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc @@ -15,7 +15,7 @@ #include "src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.h" -#include "common/network/upstream_server_name.h" +#include "source/common/network/upstream_server_name.h" #include "envoy/network/connection.h" namespace Envoy { diff --git a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc index e143769382..b9c37ba034 100644 --- a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc +++ b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc @@ -15,7 +15,7 @@ #include "src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.h" -#include "common/network/upstream_server_name.h" +#include "source/common/network/upstream_server_name.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "src/envoy/tcp/forward_downstream_sni/config.h" diff --git a/src/envoy/tcp/metadata_exchange/BUILD b/src/envoy/tcp/metadata_exchange/BUILD index 2a32b9c291..d88833b872 100644 --- a/src/envoy/tcp/metadata_exchange/BUILD +++ b/src/envoy/tcp/metadata_exchange/BUILD @@ -44,12 +44,12 @@ envoy_cc_library( "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/base:endian", "@com_google_absl//absl/strings", - "@envoy//include/envoy/local_info:local_info_interface", - "@envoy//include/envoy/network:connection_interface", - "@envoy//include/envoy/network:filter_interface", - "@envoy//include/envoy/runtime:runtime_interface", - "@envoy//include/envoy/stats:stats_macros", - "@envoy//include/envoy/stream_info:filter_state_interface", + "@envoy//envoy/local_info:local_info_interface", + "@envoy//envoy/network:connection_interface", + "@envoy//envoy/network:filter_interface", + "@envoy//envoy/runtime:runtime_interface", + "@envoy//envoy/stats:stats_macros", + "@envoy//envoy/stream_info:filter_state_interface", "@envoy//source/common/http:utility_lib", "@envoy//source/common/network:utility_lib", "@envoy//source/common/protobuf", @@ -69,7 +69,7 @@ envoy_cc_library( ":metadata_exchange", "//src/envoy/tcp/metadata_exchange/config:metadata_exchange_cc_proto", "//src/envoy/utils:utils_lib", - "@envoy//include/envoy/registry", + "@envoy//envoy/registry", "@envoy//source/extensions/filters/network/common:factory_base_lib", ], ) diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange.cc b/src/envoy/tcp/metadata_exchange/metadata_exchange.cc index 842809a5cb..7c0dad1af7 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange.cc +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange.cc @@ -21,8 +21,8 @@ #include "absl/base/internal/endian.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" -#include "common/buffer/buffer_impl.h" -#include "common/protobuf/utility.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/protobuf/utility.h" #include "envoy/network/connection.h" #include "envoy/stats/scope.h" #include "src/envoy/tcp/metadata_exchange/metadata_exchange_initial_header.h" diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange.h b/src/envoy/tcp/metadata_exchange/metadata_exchange.h index bfb0ca5739..6e6b121a12 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange.h +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange.h @@ -17,7 +17,7 @@ #include -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/local_info/local_info.h" #include "envoy/network/filter.h" #include "envoy/runtime/runtime.h" diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc b/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc index 424529186c..29a0113587 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc @@ -15,8 +15,8 @@ #include "src/envoy/tcp/metadata_exchange/metadata_exchange.h" -#include "common/buffer/buffer_impl.h" -#include "common/protobuf/protobuf.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/protobuf/protobuf.h" #include "gmock/gmock.h" #include "google/protobuf/util/message_differencer.h" #include "gtest/gtest.h" diff --git a/src/envoy/tcp/sni_verifier/sni_verifier.cc b/src/envoy/tcp/sni_verifier/sni_verifier.cc index 52abbe7fc3..1febe8ba29 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier.cc +++ b/src/envoy/tcp/sni_verifier/sni_verifier.cc @@ -18,7 +18,7 @@ #include "src/envoy/tcp/sni_verifier/sni_verifier.h" -#include "common/common/assert.h" +#include "source/common/common/assert.h" #include "envoy/buffer/buffer.h" #include "envoy/common/exception.h" #include "envoy/network/connection.h" diff --git a/src/envoy/tcp/sni_verifier/sni_verifier.h b/src/envoy/tcp/sni_verifier/sni_verifier.h index 633a8d73d5..cd2f9ed04b 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier.h +++ b/src/envoy/tcp/sni_verifier/sni_verifier.h @@ -15,7 +15,7 @@ #pragma once -#include "common/common/logger.h" +#include "source/common/common/logger.h" #include "envoy/network/filter.h" #include "envoy/stats/scope.h" #include "openssl/ssl.h" diff --git a/src/envoy/tcp/sni_verifier/sni_verifier_test.cc b/src/envoy/tcp/sni_verifier/sni_verifier_test.cc index 1717b13a38..29a7f0f0e2 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier_test.cc +++ b/src/envoy/tcp/sni_verifier/sni_verifier_test.cc @@ -18,7 +18,7 @@ #include #include -#include "common/buffer/buffer_impl.h" +#include "source/common/buffer/buffer_impl.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "src/envoy/tcp/sni_verifier/config.h" diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc index 5050c07a09..4450b2b5cf 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc @@ -15,8 +15,8 @@ #include "src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h" -#include "common/common/assert.h" -#include "common/tcp_proxy/tcp_proxy.h" +#include "source/common/common/assert.h" +#include "source/common/tcp_proxy/tcp_proxy.h" #include "envoy/network/connection.h" using namespace ::istio::envoy::config::filter::network::tcp_cluster_rewrite; diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h index 4f1e87ebb2..ac0465ea19 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h @@ -17,7 +17,7 @@ #include -#include "common/common/logger.h" +#include "source/common/common/logger.h" #include "envoy/config/filter/network/tcp_cluster_rewrite/v2alpha1/config.pb.h" #include "envoy/network/filter.h" diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc index 8fad73b19a..11987cbfb6 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc @@ -15,7 +15,7 @@ #include "src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h" -#include "common/tcp_proxy/tcp_proxy.h" +#include "source/common/tcp_proxy/tcp_proxy.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "src/envoy/tcp/tcp_cluster_rewrite/config.h" diff --git a/src/envoy/upstreams/http/metadata/BUILD b/src/envoy/upstreams/http/metadata/BUILD index a67112bfd9..a60a09f7df 100644 --- a/src/envoy/upstreams/http/metadata/BUILD +++ b/src/envoy/upstreams/http/metadata/BUILD @@ -33,10 +33,10 @@ envoy_cc_library( deps = [ ":upstream_request_lib", "@com_google_absl//absl/types:optional", - "@envoy//include/envoy/registry", - "@envoy//include/envoy/router:router_interface", - "@envoy//include/envoy/upstream:load_balancer_interface", - "@envoy//include/envoy/upstream:thread_local_cluster_interface", + "@envoy//envoy/registry", + "@envoy//envoy/router:router_interface", + "@envoy//envoy/upstream:load_balancer_interface", + "@envoy//envoy/upstream:thread_local_cluster_interface", "@envoy//source/common/protobuf", ], ) @@ -48,12 +48,12 @@ envoy_cc_library( repository = "@envoy", deps = [ "@com_google_absl//absl/types:optional", - "@envoy//include/envoy/http:codec_interface", - "@envoy//include/envoy/router:router_interface", - "@envoy//include/envoy/stream_info:stream_info_interface", - "@envoy//include/envoy/upstream:host_description_interface", - "@envoy//include/envoy/upstream:load_balancer_interface", - "@envoy//include/envoy/upstream:thread_local_cluster_interface", + "@envoy//envoy/http:codec_interface", + "@envoy//envoy/router:router_interface", + "@envoy//envoy/stream_info:stream_info_interface", + "@envoy//envoy/upstream:host_description_interface", + "@envoy//envoy/upstream:load_balancer_interface", + "@envoy//envoy/upstream:thread_local_cluster_interface", "@envoy//source/extensions/upstreams/http/http:upstream_request_lib", ], ) @@ -64,7 +64,7 @@ envoy_cc_test( repository = "@envoy", deps = [ ":config", - "@envoy//include/envoy/network:address_interface", + "@envoy//envoy/network:address_interface", "@envoy//source/common/http:codec_client_lib", "@envoy//test/integration:http_integration_lib", "@envoy//test/test_common:environment_lib", diff --git a/src/envoy/upstreams/http/metadata/config.h b/src/envoy/upstreams/http/metadata/config.h index 7a04d4a924..22154950db 100644 --- a/src/envoy/upstreams/http/metadata/config.h +++ b/src/envoy/upstreams/http/metadata/config.h @@ -18,7 +18,7 @@ #include #include "absl/types/optional.h" -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/http/protocol.h" #include "envoy/registry/registry.h" #include "envoy/router/router.h" diff --git a/src/envoy/upstreams/http/metadata/integration_test.cc b/src/envoy/upstreams/http/metadata/integration_test.cc index d5e915cfa6..0eda794ec6 100644 --- a/src/envoy/upstreams/http/metadata/integration_test.cc +++ b/src/envoy/upstreams/http/metadata/integration_test.cc @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "common/http/codec_client.h" +#include "source/common/http/codec_client.h" #include "envoy/config/bootstrap/v3/bootstrap.pb.h" #include "envoy/network/address.h" #include "envoy/router/router.h" diff --git a/src/envoy/utils/authn.cc b/src/envoy/utils/authn.cc index 8f00c54f3b..4db00a82f5 100644 --- a/src/envoy/utils/authn.cc +++ b/src/envoy/utils/authn.cc @@ -15,7 +15,7 @@ #include "src/envoy/utils/authn.h" -#include "common/common/base64.h" +#include "source/common/common/base64.h" #include "src/envoy/utils/filter_names.h" #include "src/istio/authn/context.pb.h" #include "src/istio/utils/attribute_names.h" diff --git a/src/envoy/utils/authn.h b/src/envoy/utils/authn.h index 70234a5d00..6a3ca7caed 100644 --- a/src/envoy/utils/authn.h +++ b/src/envoy/utils/authn.h @@ -13,8 +13,8 @@ * limitations under the License. */ -#include "common/common/logger.h" -#include "common/protobuf/protobuf.h" +#include "source/common/common/logger.h" +#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "google/protobuf/struct.pb.h" #include "src/istio/authn/context.pb.h" diff --git a/src/envoy/utils/authn_test.cc b/src/envoy/utils/authn_test.cc index eb2e360170..61cf5568e9 100644 --- a/src/envoy/utils/authn_test.cc +++ b/src/envoy/utils/authn_test.cc @@ -15,7 +15,7 @@ #include "src/envoy/utils/authn.h" -#include "common/protobuf/protobuf.h" +#include "source/common/protobuf/protobuf.h" #include "src/istio/authn/context.pb.h" #include "src/istio/utils/attribute_names.h" #include "test/test_common/utility.h" From f2589724497e2a3019eebf1a84d8ae4a07cf1d79 Mon Sep 17 00:00:00 2001 From: Pengyuan Bian Date: Wed, 16 Jun 2021 17:48:48 +0000 Subject: [PATCH 2/3] new line. --- envoy.bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envoy.bazelrc b/envoy.bazelrc index 8912dfe9f6..21d0db6bb1 100644 --- a/envoy.bazelrc +++ b/envoy.bazelrc @@ -378,4 +378,4 @@ build:windows --dynamic_mode=off try-import %workspace%/clang.bazelrc try-import %workspace%/user.bazelrc -try-import %workspace%/local_tsan.bazelrc \ No newline at end of file +try-import %workspace%/local_tsan.bazelrc From 8524f20fa15bc1b48bd7996454bbbc0a297a514a Mon Sep 17 00:00:00 2001 From: Pengyuan Bian Date: Wed, 16 Jun 2021 17:51:36 +0000 Subject: [PATCH 3/3] format --- extensions/access_log_policy/config.cc | 2 +- extensions/attributegen/plugin_test.cc | 8 ++++---- extensions/common/proto_util_speed_test.cc | 2 +- extensions/metadata_exchange/config.cc | 2 +- src/envoy/extensions/wasm/wasm.cc | 2 +- src/envoy/http/alpn/alpn_filter.cc | 2 +- src/envoy/http/alpn/alpn_test.cc | 2 +- src/envoy/http/authn/authenticator_base_test.cc | 4 ++-- src/envoy/http/authn/authn_utils.h | 2 +- src/envoy/http/authn/filter_context.h | 2 +- src/envoy/http/authn/http_filter.cc | 2 +- src/envoy/http/authn/http_filter.h | 2 +- src/envoy/http/authn/http_filter_integration_test.cc | 4 ++-- src/envoy/http/authn/http_filter_test.cc | 6 +++--- src/envoy/http/authn/origin_authenticator_test.cc | 2 +- src/envoy/http/authn/peer_authenticator_test.cc | 2 +- src/envoy/http/authn/test_utils.h | 2 +- .../tcp/forward_downstream_sni/forward_downstream_sni.cc | 2 +- .../forward_downstream_sni/forward_downstream_sni_test.cc | 2 +- src/envoy/tcp/metadata_exchange/metadata_exchange.cc | 4 ++-- src/envoy/tcp/metadata_exchange/metadata_exchange.h | 2 +- src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc | 4 ++-- src/envoy/tcp/sni_verifier/sni_verifier.cc | 2 +- src/envoy/tcp/sni_verifier/sni_verifier.h | 2 +- src/envoy/tcp/sni_verifier/sni_verifier_test.cc | 2 +- src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc | 2 +- src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h | 2 +- .../tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc | 2 +- src/envoy/upstreams/http/metadata/config.h | 2 +- src/envoy/upstreams/http/metadata/integration_test.cc | 2 +- src/envoy/utils/authn.h | 4 ++-- 31 files changed, 41 insertions(+), 41 deletions(-) diff --git a/extensions/access_log_policy/config.cc b/extensions/access_log_policy/config.cc index 9f6d210dbe..6210febb6c 100644 --- a/extensions/access_log_policy/config.cc +++ b/extensions/access_log_policy/config.cc @@ -13,8 +13,8 @@ * limitations under the License. */ -#include "source/common/common/base64.h" #include "extensions/access_log_policy/plugin.h" +#include "source/common/common/base64.h" namespace proxy_wasm { namespace null_plugin { diff --git a/extensions/attributegen/plugin_test.cc b/extensions/attributegen/plugin_test.cc index 1cb3cfbefe..0d9f440233 100644 --- a/extensions/attributegen/plugin_test.cc +++ b/extensions/attributegen/plugin_test.cc @@ -16,15 +16,15 @@ #include #include -#include "source/common/buffer/buffer_impl.h" -#include "source/common/http/message_impl.h" -#include "source/common/stats/isolated_store_impl.h" -#include "source/common/stream_info/stream_info_impl.h" #include "envoy/server/lifecycle_notifier.h" #include "extensions/filters/common/expr/cel_state.h" #include "extensions/filters/http/wasm/wasm_filter.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/http/message_impl.h" +#include "source/common/stats/isolated_store_impl.h" +#include "source/common/stream_info/stream_info_impl.h" #include "test/mocks/grpc/mocks.h" #include "test/mocks/http/mocks.h" #include "test/mocks/network/mocks.h" diff --git a/extensions/common/proto_util_speed_test.cc b/extensions/common/proto_util_speed_test.cc index a05b1ceeec..43f5805dc0 100644 --- a/extensions/common/proto_util_speed_test.cc +++ b/extensions/common/proto_util_speed_test.cc @@ -14,11 +14,11 @@ */ #include "benchmark/benchmark.h" -#include "source/common/stream_info/filter_state_impl.h" #include "extensions/common/node_info_generated.h" #include "extensions/common/proto_util.h" #include "extensions/filters/common/expr/cel_state.h" #include "google/protobuf/util/json_util.h" +#include "source/common/stream_info/filter_state_impl.h" // WASM_PROLOG #ifdef NULL_PLUGIN diff --git a/extensions/metadata_exchange/config.cc b/extensions/metadata_exchange/config.cc index cf416ceb27..0cc3a0d31b 100644 --- a/extensions/metadata_exchange/config.cc +++ b/extensions/metadata_exchange/config.cc @@ -13,8 +13,8 @@ * limitations under the License. */ -#include "source/common/common/base64.h" #include "include/proxy-wasm/null_plugin.h" +#include "source/common/common/base64.h" namespace proxy_wasm { namespace null_plugin { diff --git a/src/envoy/extensions/wasm/wasm.cc b/src/envoy/extensions/wasm/wasm.cc index 4409646225..81fa13410c 100644 --- a/src/envoy/extensions/wasm/wasm.cc +++ b/src/envoy/extensions/wasm/wasm.cc @@ -14,9 +14,9 @@ */ #include "extensions/common/wasm/wasm.h" +#include "server/admin/prometheus_stats.h" #include "source/common/stats/utility.h" #include "source/common/version/version.h" -#include "server/admin/prometheus_stats.h" #include "src/envoy/extensions/wasm/context.h" namespace Envoy { diff --git a/src/envoy/http/alpn/alpn_filter.cc b/src/envoy/http/alpn/alpn_filter.cc index c0e78942d9..4cc8253800 100644 --- a/src/envoy/http/alpn/alpn_filter.cc +++ b/src/envoy/http/alpn/alpn_filter.cc @@ -15,8 +15,8 @@ #include "src/envoy/http/alpn/alpn_filter.h" -#include "source/common/network/application_protocol.h" #include "envoy/upstream/cluster_manager.h" +#include "source/common/network/application_protocol.h" namespace Envoy { namespace Http { diff --git a/src/envoy/http/alpn/alpn_test.cc b/src/envoy/http/alpn/alpn_test.cc index cd1e7e6cc7..899bf8aef5 100644 --- a/src/envoy/http/alpn/alpn_test.cc +++ b/src/envoy/http/alpn/alpn_test.cc @@ -13,9 +13,9 @@ * limitations under the License. */ -#include "source/common/network/application_protocol.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/network/application_protocol.h" #include "src/envoy/http/alpn/alpn_filter.h" #include "test/mocks/http/mocks.h" #include "test/mocks/upstream/mocks.h" diff --git a/src/envoy/http/authn/authenticator_base_test.cc b/src/envoy/http/authn/authenticator_base_test.cc index 7f429540d9..a44f02d258 100644 --- a/src/envoy/http/authn/authenticator_base_test.cc +++ b/src/envoy/http/authn/authenticator_base_test.cc @@ -15,11 +15,11 @@ #include "src/envoy/http/authn/authenticator_base.h" -#include "source/common/common/base64.h" -#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "gmock/gmock.h" +#include "source/common/common/base64.h" +#include "source/common/protobuf/protobuf.h" #include "src/envoy/http/authn/test_utils.h" #include "src/envoy/utils/filter_names.h" #include "test/mocks/network/mocks.h" diff --git a/src/envoy/http/authn/authn_utils.h b/src/envoy/http/authn/authn_utils.h index 5451619f15..568e5285af 100644 --- a/src/envoy/http/authn/authn_utils.h +++ b/src/envoy/http/authn/authn_utils.h @@ -16,9 +16,9 @@ #pragma once #include "authentication/v1alpha1/policy.pb.h" +#include "envoy/http/header_map.h" #include "source/common/common/logger.h" #include "source/common/common/utility.h" -#include "envoy/http/header_map.h" #include "src/istio/authn/context.pb.h" namespace iaapi = istio::authentication::v1alpha1; diff --git a/src/envoy/http/authn/filter_context.h b/src/envoy/http/authn/filter_context.h index 81c3318572..54c34287c7 100644 --- a/src/envoy/http/authn/filter_context.h +++ b/src/envoy/http/authn/filter_context.h @@ -16,12 +16,12 @@ #pragma once #include "authentication/v1alpha1/policy.pb.h" -#include "source/common/common/logger.h" #include "envoy/config/core/v3/base.pb.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "envoy/http/filter.h" #include "envoy/network/connection.h" #include "extensions/filters/http/well_known_names.h" +#include "source/common/common/logger.h" #include "src/istio/authn/context.pb.h" namespace Envoy { diff --git a/src/envoy/http/authn/http_filter.cc b/src/envoy/http/authn/http_filter.cc index 4f02118428..84109d861e 100644 --- a/src/envoy/http/authn/http_filter.cc +++ b/src/envoy/http/authn/http_filter.cc @@ -16,8 +16,8 @@ #include "src/envoy/http/authn/http_filter.h" #include "authentication/v1alpha1/policy.pb.h" -#include "source/common/http/utility.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" +#include "source/common/http/utility.h" #include "src/envoy/http/authn/origin_authenticator.h" #include "src/envoy/http/authn/peer_authenticator.h" #include "src/envoy/utils/authn.h" diff --git a/src/envoy/http/authn/http_filter.h b/src/envoy/http/authn/http_filter.h index 1a130b5dc7..f544ab5e35 100644 --- a/src/envoy/http/authn/http_filter.h +++ b/src/envoy/http/authn/http_filter.h @@ -15,9 +15,9 @@ #pragma once -#include "source/common/common/logger.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "envoy/http/filter.h" +#include "source/common/common/logger.h" #include "src/envoy/http/authn/authenticator_base.h" #include "src/envoy/http/authn/filter_context.h" diff --git a/src/envoy/http/authn/http_filter_integration_test.cc b/src/envoy/http/authn/http_filter_integration_test.cc index 7c90b257b4..97dccec576 100644 --- a/src/envoy/http/authn/http_filter_integration_test.cc +++ b/src/envoy/http/authn/http_filter_integration_test.cc @@ -13,10 +13,10 @@ * limitations under the License. */ -#include "source/common/common/base64.h" -#include "source/common/common/utility.h" #include "extensions/filters/http/well_known_names.h" #include "fmt/printf.h" +#include "source/common/common/base64.h" +#include "source/common/common/utility.h" #include "src/envoy/utils/filter_names.h" #include "src/istio/authn/context.pb.h" #include "test/integration/http_protocol_integration.h" diff --git a/src/envoy/http/authn/http_filter_test.cc b/src/envoy/http/authn/http_filter_test.cc index 5642ec352e..6c7f5b4735 100644 --- a/src/envoy/http/authn/http_filter_test.cc +++ b/src/envoy/http/authn/http_filter_test.cc @@ -15,12 +15,12 @@ #include "src/envoy/http/authn/http_filter.h" -#include "source/common/common/base64.h" -#include "source/common/http/header_map_impl.h" -#include "source/common/stream_info/stream_info_impl.h" #include "envoy/config/filter/http/authn/v2alpha1/config.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/common/base64.h" +#include "source/common/http/header_map_impl.h" +#include "source/common/stream_info/stream_info_impl.h" #include "src/envoy/http/authn/authenticator_base.h" #include "src/envoy/http/authn/test_utils.h" #include "src/envoy/utils/authn.h" diff --git a/src/envoy/http/authn/origin_authenticator_test.cc b/src/envoy/http/authn/origin_authenticator_test.cc index e93e51ed33..aeef6d7a43 100644 --- a/src/envoy/http/authn/origin_authenticator_test.cc +++ b/src/envoy/http/authn/origin_authenticator_test.cc @@ -16,10 +16,10 @@ #include "src/envoy/http/authn/origin_authenticator.h" #include "authentication/v1alpha1/policy.pb.h" -#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/protobuf/protobuf.h" #include "src/envoy/http/authn/test_utils.h" #include "test/mocks/http/mocks.h" #include "test/test_common/utility.h" diff --git a/src/envoy/http/authn/peer_authenticator_test.cc b/src/envoy/http/authn/peer_authenticator_test.cc index 6ff36e7f69..e11e80b2ef 100644 --- a/src/envoy/http/authn/peer_authenticator_test.cc +++ b/src/envoy/http/authn/peer_authenticator_test.cc @@ -16,10 +16,10 @@ #include "src/envoy/http/authn/peer_authenticator.h" #include "authentication/v1alpha1/policy.pb.h" -#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/protobuf/protobuf.h" #include "src/envoy/http/authn/test_utils.h" #include "test/mocks/http/mocks.h" #include "test/test_common/utility.h" diff --git a/src/envoy/http/authn/test_utils.h b/src/envoy/http/authn/test_utils.h index bb6e371f47..86890a6de7 100644 --- a/src/envoy/http/authn/test_utils.h +++ b/src/envoy/http/authn/test_utils.h @@ -15,8 +15,8 @@ #pragma once -#include "source/common/protobuf/protobuf.h" #include "gmock/gmock.h" +#include "source/common/protobuf/protobuf.h" #include "src/istio/authn/context.pb.h" namespace Envoy { diff --git a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc index 58df458807..093efd9b4a 100644 --- a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc +++ b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.cc @@ -15,8 +15,8 @@ #include "src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.h" -#include "source/common/network/upstream_server_name.h" #include "envoy/network/connection.h" +#include "source/common/network/upstream_server_name.h" namespace Envoy { namespace Tcp { diff --git a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc index b9c37ba034..a7ac7335df 100644 --- a/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc +++ b/src/envoy/tcp/forward_downstream_sni/forward_downstream_sni_test.cc @@ -15,9 +15,9 @@ #include "src/envoy/tcp/forward_downstream_sni/forward_downstream_sni.h" -#include "source/common/network/upstream_server_name.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/network/upstream_server_name.h" #include "src/envoy/tcp/forward_downstream_sni/config.h" #include "test/mocks/network/mocks.h" #include "test/mocks/server/mocks.h" diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange.cc b/src/envoy/tcp/metadata_exchange/metadata_exchange.cc index 7c0dad1af7..4ee5b46761 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange.cc +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange.cc @@ -21,10 +21,10 @@ #include "absl/base/internal/endian.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" -#include "source/common/buffer/buffer_impl.h" -#include "source/common/protobuf/utility.h" #include "envoy/network/connection.h" #include "envoy/stats/scope.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/protobuf/utility.h" #include "src/envoy/tcp/metadata_exchange/metadata_exchange_initial_header.h" namespace Envoy { diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange.h b/src/envoy/tcp/metadata_exchange/metadata_exchange.h index 6e6b121a12..287dd8f771 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange.h +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange.h @@ -17,7 +17,6 @@ #include -#include "source/common/protobuf/protobuf.h" #include "envoy/local_info/local_info.h" #include "envoy/network/filter.h" #include "envoy/runtime/runtime.h" @@ -28,6 +27,7 @@ #include "extensions/common/node_info_bfbs_generated.h" #include "extensions/common/proto_util.h" #include "extensions/filters/common/expr/cel_state.h" +#include "source/common/protobuf/protobuf.h" #include "src/envoy/tcp/metadata_exchange/config/metadata_exchange.pb.h" namespace Envoy { diff --git a/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc b/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc index 29a0113587..6d9a0891cd 100644 --- a/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc +++ b/src/envoy/tcp/metadata_exchange/metadata_exchange_test.cc @@ -15,11 +15,11 @@ #include "src/envoy/tcp/metadata_exchange/metadata_exchange.h" -#include "source/common/buffer/buffer_impl.h" -#include "source/common/protobuf/protobuf.h" #include "gmock/gmock.h" #include "google/protobuf/util/message_differencer.h" #include "gtest/gtest.h" +#include "source/common/buffer/buffer_impl.h" +#include "source/common/protobuf/protobuf.h" #include "src/envoy/tcp/metadata_exchange/metadata_exchange_initial_header.h" #include "test/mocks/local_info/mocks.h" #include "test/mocks/network/mocks.h" diff --git a/src/envoy/tcp/sni_verifier/sni_verifier.cc b/src/envoy/tcp/sni_verifier/sni_verifier.cc index 1febe8ba29..d29f0fb224 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier.cc +++ b/src/envoy/tcp/sni_verifier/sni_verifier.cc @@ -18,13 +18,13 @@ #include "src/envoy/tcp/sni_verifier/sni_verifier.h" -#include "source/common/common/assert.h" #include "envoy/buffer/buffer.h" #include "envoy/common/exception.h" #include "envoy/network/connection.h" #include "envoy/stats/scope.h" #include "openssl/err.h" #include "openssl/ssl.h" +#include "source/common/common/assert.h" namespace Envoy { namespace Tcp { diff --git a/src/envoy/tcp/sni_verifier/sni_verifier.h b/src/envoy/tcp/sni_verifier/sni_verifier.h index cd2f9ed04b..4f63b5c9b0 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier.h +++ b/src/envoy/tcp/sni_verifier/sni_verifier.h @@ -15,10 +15,10 @@ #pragma once -#include "source/common/common/logger.h" #include "envoy/network/filter.h" #include "envoy/stats/scope.h" #include "openssl/ssl.h" +#include "source/common/common/logger.h" namespace Envoy { namespace Tcp { diff --git a/src/envoy/tcp/sni_verifier/sni_verifier_test.cc b/src/envoy/tcp/sni_verifier/sni_verifier_test.cc index 29a7f0f0e2..1abaed6423 100644 --- a/src/envoy/tcp/sni_verifier/sni_verifier_test.cc +++ b/src/envoy/tcp/sni_verifier/sni_verifier_test.cc @@ -18,9 +18,9 @@ #include #include -#include "source/common/buffer/buffer_impl.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/buffer/buffer_impl.h" #include "src/envoy/tcp/sni_verifier/config.h" #include "test/extensions/filters/listener/tls_inspector/tls_utility.h" #include "test/mocks/network/mocks.h" diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc index 4450b2b5cf..b30f37ae79 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.cc @@ -15,9 +15,9 @@ #include "src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h" +#include "envoy/network/connection.h" #include "source/common/common/assert.h" #include "source/common/tcp_proxy/tcp_proxy.h" -#include "envoy/network/connection.h" using namespace ::istio::envoy::config::filter::network::tcp_cluster_rewrite; diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h index ac0465ea19..218232629e 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h @@ -17,9 +17,9 @@ #include -#include "source/common/common/logger.h" #include "envoy/config/filter/network/tcp_cluster_rewrite/v2alpha1/config.pb.h" #include "envoy/network/filter.h" +#include "source/common/common/logger.h" using namespace ::istio::envoy::config::filter::network::tcp_cluster_rewrite; diff --git a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc index 11987cbfb6..b83ad8e403 100644 --- a/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc +++ b/src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite_test.cc @@ -15,9 +15,9 @@ #include "src/envoy/tcp/tcp_cluster_rewrite/tcp_cluster_rewrite.h" -#include "source/common/tcp_proxy/tcp_proxy.h" #include "gmock/gmock.h" #include "gtest/gtest.h" +#include "source/common/tcp_proxy/tcp_proxy.h" #include "src/envoy/tcp/tcp_cluster_rewrite/config.h" #include "test/mocks/network/mocks.h" #include "test/mocks/server/mocks.h" diff --git a/src/envoy/upstreams/http/metadata/config.h b/src/envoy/upstreams/http/metadata/config.h index 22154950db..e98090b236 100644 --- a/src/envoy/upstreams/http/metadata/config.h +++ b/src/envoy/upstreams/http/metadata/config.h @@ -18,12 +18,12 @@ #include #include "absl/types/optional.h" -#include "source/common/protobuf/protobuf.h" #include "envoy/http/protocol.h" #include "envoy/registry/registry.h" #include "envoy/router/router.h" #include "envoy/upstream/load_balancer.h" #include "envoy/upstream/thread_local_cluster.h" +#include "source/common/protobuf/protobuf.h" namespace Envoy { namespace Upstreams { diff --git a/src/envoy/upstreams/http/metadata/integration_test.cc b/src/envoy/upstreams/http/metadata/integration_test.cc index 0eda794ec6..c0acf70bd1 100644 --- a/src/envoy/upstreams/http/metadata/integration_test.cc +++ b/src/envoy/upstreams/http/metadata/integration_test.cc @@ -13,11 +13,11 @@ * limitations under the License. */ -#include "source/common/http/codec_client.h" #include "envoy/config/bootstrap/v3/bootstrap.pb.h" #include "envoy/network/address.h" #include "envoy/router/router.h" #include "gtest/gtest.h" +#include "source/common/http/codec_client.h" #include "src/envoy/upstreams/http/metadata/config.h" #include "test/integration/http_integration.h" #include "test/test_common/environment.h" diff --git a/src/envoy/utils/authn.h b/src/envoy/utils/authn.h index 6a3ca7caed..6a027ea557 100644 --- a/src/envoy/utils/authn.h +++ b/src/envoy/utils/authn.h @@ -13,10 +13,10 @@ * limitations under the License. */ -#include "source/common/common/logger.h" -#include "source/common/protobuf/protobuf.h" #include "envoy/config/core/v3/base.pb.h" #include "google/protobuf/struct.pb.h" +#include "source/common/common/logger.h" +#include "source/common/protobuf/protobuf.h" #include "src/istio/authn/context.pb.h" namespace Envoy {