From d1ca7f22119fdf5988c55191c6add426ab9147b1 Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Tue, 28 Jul 2020 14:02:03 -0400 Subject: [PATCH 1/9] build: marking extensions as extension-only visible by default Signed-off-by: Alyssa Wilk --- bazel/envoy_build_system.bzl | 2 + bazel/envoy_library.bzl | 28 ++++++++++ source/extensions/access_loggers/BUILD | 6 ++- source/extensions/access_loggers/common/BUILD | 4 +- source/extensions/access_loggers/file/BUILD | 6 ++- source/extensions/access_loggers/grpc/BUILD | 14 ++--- source/extensions/clusters/BUILD | 6 ++- source/extensions/clusters/redis/BUILD | 6 +-- source/extensions/common/BUILD | 6 ++- source/extensions/common/aws/BUILD | 16 +++--- .../common/dynamic_forward_proxy/BUILD | 10 ++-- source/extensions/common/proxy_protocol/BUILD | 6 ++- source/extensions/common/redis/BUILD | 6 +-- source/extensions/common/sqlutils/BUILD | 4 +- source/extensions/common/tap/BUILD | 12 ++--- source/extensions/common/wasm/BUILD | 10 ++-- source/extensions/common/wasm/null/BUILD | 8 +-- source/extensions/common/wasm/v8/BUILD | 4 +- .../compression/common/compressor/BUILD | 4 +- .../compression/common/decompressor/BUILD | 4 +- .../extensions/compression/gzip/common/BUILD | 4 +- .../compression/gzip/compressor/BUILD | 4 +- .../compression/gzip/decompressor/BUILD | 4 +- source/extensions/filters/common/expr/BUILD | 6 +-- .../extensions/filters/common/ext_authz/BUILD | 10 ++-- source/extensions/filters/common/fault/BUILD | 4 +- source/extensions/filters/common/lua/BUILD | 6 +-- .../filters/common/original_src/BUILD | 6 +-- .../extensions/filters/common/ratelimit/BUILD | 8 +-- source/extensions/filters/common/rbac/BUILD | 10 ++-- source/extensions/filters/http/BUILD | 6 ++- .../filters/http/adaptive_concurrency/BUILD | 4 +- .../adaptive_concurrency/controller/BUILD | 4 +- .../http/admission_control/evaluators/BUILD | 4 +- .../extensions/filters/http/aws_lambda/BUILD | 4 +- .../filters/http/aws_request_signing/BUILD | 4 +- source/extensions/filters/http/buffer/BUILD | 4 +- source/extensions/filters/http/cache/BUILD | 10 ++-- source/extensions/filters/http/common/BUILD | 20 +++++-- .../filters/http/common/compressor/BUILD | 4 +- .../extensions/filters/http/compressor/BUILD | 4 +- source/extensions/filters/http/cors/BUILD | 4 +- source/extensions/filters/http/csrf/BUILD | 4 +- .../filters/http/decompressor/BUILD | 4 +- .../filters/http/dynamic_forward_proxy/BUILD | 4 +- source/extensions/filters/http/dynamo/BUILD | 8 +-- .../extensions/filters/http/ext_authz/BUILD | 4 +- source/extensions/filters/http/fault/BUILD | 4 +- .../filters/http/grpc_http1_bridge/BUILD | 4 +- .../http/grpc_http1_reverse_bridge/BUILD | 4 +- .../filters/http/grpc_json_transcoder/BUILD | 8 +-- source/extensions/filters/http/grpc_web/BUILD | 4 +- source/extensions/filters/http/gzip/BUILD | 4 +- .../filters/http/header_to_metadata/BUILD | 4 +- .../filters/http/health_check/BUILD | 4 +- .../extensions/filters/http/ip_tagging/BUILD | 4 +- .../extensions/filters/http/jwt_authn/BUILD | 16 +++--- source/extensions/filters/http/lua/BUILD | 6 +-- .../extensions/filters/http/on_demand/BUILD | 4 +- .../filters/http/original_src/BUILD | 6 +-- .../extensions/filters/http/ratelimit/BUILD | 4 +- source/extensions/filters/http/rbac/BUILD | 4 +- source/extensions/filters/http/squash/BUILD | 4 +- source/extensions/filters/http/tap/BUILD | 8 +-- source/extensions/filters/listener/BUILD | 6 ++- .../filters/listener/http_inspector/BUILD | 4 +- .../filters/listener/original_dst/BUILD | 4 +- .../filters/listener/original_src/BUILD | 6 +-- .../filters/listener/proxy_protocol/BUILD | 4 +- source/extensions/filters/network/BUILD | 6 ++- .../filters/network/client_ssl_auth/BUILD | 4 +- .../extensions/filters/network/common/BUILD | 10 ++-- .../filters/network/common/redis/BUILD | 22 ++++---- .../filters/network/direct_response/BUILD | 4 +- .../filters/network/dubbo_proxy/BUILD | 30 +++++------ .../filters/network/dubbo_proxy/filters/BUILD | 10 ++-- .../filters/network/dubbo_proxy/router/BUILD | 12 ++--- source/extensions/filters/network/echo/BUILD | 4 +- .../filters/network/ext_authz/BUILD | 4 +- source/extensions/filters/network/kafka/BUILD | 26 ++++----- .../filters/network/local_ratelimit/BUILD | 4 +- .../filters/network/mongo_proxy/BUILD | 16 +++--- .../filters/network/mysql_proxy/BUILD | 4 +- .../filters/network/postgres_proxy/BUILD | 4 +- .../filters/network/ratelimit/BUILD | 10 +++- source/extensions/filters/network/rbac/BUILD | 4 +- .../filters/network/redis_proxy/BUILD | 18 +++---- .../filters/network/rocketmq_proxy/BUILD | 20 +++---- .../network/rocketmq_proxy/router/BUILD | 8 +-- .../filters/network/sni_cluster/BUILD | 4 +- .../network/sni_dynamic_forward_proxy/BUILD | 4 +- .../filters/network/thrift_proxy/BUILD | 48 ++++++++--------- .../network/thrift_proxy/filters/BUILD | 12 ++--- .../filters/network/thrift_proxy/router/BUILD | 10 ++-- .../filters/network/zookeeper_proxy/BUILD | 4 +- .../extensions/filters/udp/dns_filter/BUILD | 4 +- source/extensions/filters/udp/udp_proxy/BUILD | 4 +- source/extensions/grpc_credentials/BUILD | 6 ++- .../extensions/grpc_credentials/example/BUILD | 10 +++- source/extensions/health_checkers/BUILD | 6 ++- source/extensions/health_checkers/redis/BUILD | 6 +-- source/extensions/internal_redirect/BUILD | 6 ++- .../allow_listed_routes/BUILD | 4 +- .../internal_redirect/previous_routes/BUILD | 4 +- .../internal_redirect/safe_cross_scheme/BUILD | 4 +- source/extensions/quic_listeners/quiche/BUILD | 54 ++++++++++--------- .../quic_listeners/quiche/platform/BUILD | 36 ++++++------- source/extensions/resource_monitors/BUILD | 6 ++- .../extensions/resource_monitors/common/BUILD | 6 ++- .../resource_monitors/fixed_heap/BUILD | 4 +- .../resource_monitors/injected_resource/BUILD | 4 +- source/extensions/retry/host/BUILD | 4 +- .../retry/host/omit_canary_hosts/BUILD | 4 +- .../retry/host/omit_host_metadata/BUILD | 4 +- .../retry/host/previous_hosts/BUILD | 4 +- source/extensions/retry/priority/BUILD | 4 +- .../retry/priority/previous_priorities/BUILD | 4 +- source/extensions/stat_sinks/BUILD | 6 ++- .../extensions/stat_sinks/common/statsd/BUILD | 4 +- source/extensions/stat_sinks/hystrix/BUILD | 4 +- .../stat_sinks/metrics_service/BUILD | 6 +-- source/extensions/tracers/common/BUILD | 4 +- source/extensions/tracers/common/ot/BUILD | 4 +- source/extensions/tracers/datadog/BUILD | 4 +- source/extensions/tracers/dynamic_ot/BUILD | 4 +- source/extensions/tracers/lightstep/BUILD | 4 +- source/extensions/tracers/opencensus/BUILD | 4 +- source/extensions/tracers/xray/BUILD | 4 +- source/extensions/tracers/zipkin/BUILD | 4 +- source/extensions/transport_sockets/BUILD | 6 ++- .../extensions/transport_sockets/alts/BUILD | 12 ++--- .../extensions/transport_sockets/common/BUILD | 4 +- source/extensions/transport_sockets/tap/BUILD | 8 +-- source/extensions/transport_sockets/tls/BUILD | 16 ++++-- .../transport_sockets/tls/private_key/BUILD | 4 +- source/extensions/upstreams/http/http/BUILD | 4 +- source/extensions/upstreams/http/tcp/BUILD | 4 +- 137 files changed, 567 insertions(+), 469 deletions(-) diff --git a/bazel/envoy_build_system.bzl b/bazel/envoy_build_system.bzl index 0f062cbfe8d8f..e491289ca1bf8 100644 --- a/bazel/envoy_build_system.bzl +++ b/bazel/envoy_build_system.bzl @@ -7,6 +7,7 @@ load( ":envoy_library.bzl", _envoy_basic_cc_library = "envoy_basic_cc_library", _envoy_cc_extension = "envoy_cc_extension", + _envoy_cc_extension_library = "envoy_cc_extension_library", _envoy_cc_library = "envoy_cc_library", _envoy_cc_posix_library = "envoy_cc_posix_library", _envoy_cc_win32_library = "envoy_cc_win32_library", @@ -178,6 +179,7 @@ envoy_cc_binary = _envoy_cc_binary envoy_basic_cc_library = _envoy_basic_cc_library envoy_cc_extension = _envoy_cc_extension envoy_cc_library = _envoy_cc_library +envoy_cc_extension_library = _envoy_cc_extension_library envoy_cc_posix_library = _envoy_cc_posix_library envoy_cc_win32_library = _envoy_cc_win32_library envoy_include_prefix = _envoy_include_prefix diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index dd35bcac6f9a0..c9373094de4ea 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -77,6 +77,34 @@ def envoy_cc_extension( fail("Unknown extension status: " + status) envoy_cc_library(name, tags = tags, **kwargs) +def envoy_cc_extension_library( + name, + srcs = [], + hdrs = [], + copts = [], + visibility = ["//source/extensions:__subpackages__", "//test/extensions:__subpackages__"], + external_deps = [], + tcmalloc_dep = None, + repository = "", + tags = [], + deps = [], + strip_include_prefix = None, + textual_hdrs = None): + envoy_cc_library( + name = name, + srcs = srcs, + hdrs = hdrs, + copts = copts, + visibility = visibility, + external_deps = external_deps, + tcmalloc_dep = tcmalloc_dep, + repository = repository, + tags = tags, + deps = deps, + strip_include_prefix = strip_include_prefix, + textual_hdrs = textual_hdrs, + ) + # Envoy C++ library targets should be specified with this function. def envoy_cc_library( name, diff --git a/source/extensions/access_loggers/BUILD b/source/extensions/access_loggers/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/access_loggers/BUILD +++ b/source/extensions/access_loggers/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/access_loggers/common/BUILD b/source/extensions/access_loggers/common/BUILD index a4cf5294cf81d..d600f57df4e88 100644 --- a/source/extensions/access_loggers/common/BUILD +++ b/source/extensions/access_loggers/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "access_log_base", srcs = ["access_log_base.cc"], hdrs = ["access_log_base.h"], diff --git a/source/extensions/access_loggers/file/BUILD b/source/extensions/access_loggers/file/BUILD index 6e86f2e0a4905..25b20e8c3a8be 100644 --- a/source/extensions/access_loggers/file/BUILD +++ b/source/extensions/access_loggers/file/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,10 +12,12 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "file_access_log_lib", srcs = ["file_access_log_impl.cc"], hdrs = ["file_access_log_impl.h"], + # The file based access logger is core code. + visibility = ["//visibility:public"], deps = [ "//source/extensions/access_loggers/common:access_log_base", ], diff --git a/source/extensions/access_loggers/grpc/BUILD b/source/extensions/access_loggers/grpc/BUILD index e92a44b24d6d1..f61590ff2352c 100644 --- a/source/extensions/access_loggers/grpc/BUILD +++ b/source/extensions/access_loggers/grpc/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "config_utils", srcs = ["config_utils.cc"], hdrs = ["config_utils.h"], @@ -24,7 +24,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "grpc_access_log_lib", srcs = ["grpc_access_log_impl.cc"], hdrs = ["grpc_access_log_impl.h"], @@ -44,7 +44,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "grpc_access_log_utils", srcs = ["grpc_access_log_utils.cc"], hdrs = ["grpc_access_log_utils.h"], @@ -58,7 +58,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "http_grpc_access_log_lib", srcs = ["http_grpc_access_log_impl.cc"], hdrs = ["http_grpc_access_log_impl.h"], @@ -71,7 +71,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tcp_grpc_access_log_lib", srcs = ["tcp_grpc_access_log_impl.cc"], hdrs = ["tcp_grpc_access_log_impl.h"], @@ -83,7 +83,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "grpc_access_log_proto_descriptors_lib", srcs = ["grpc_access_log_proto_descriptors.cc"], hdrs = ["grpc_access_log_proto_descriptors.h"], diff --git a/source/extensions/clusters/BUILD b/source/extensions/clusters/BUILD index ee5bcf6bc186d..523f5c3cb0bcc 100644 --- a/source/extensions/clusters/BUILD +++ b/source/extensions/clusters/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/config:well_known_names", "//source/common/singleton:const_singleton", diff --git a/source/extensions/clusters/redis/BUILD b/source/extensions/clusters/redis/BUILD index 3edf4864852c6..65717fa8a7d2c 100644 --- a/source/extensions/clusters/redis/BUILD +++ b/source/extensions/clusters/redis/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "crc16_lib", srcs = [ "crc16.cc", @@ -17,7 +17,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "redis_cluster_lb", srcs = [ "redis_cluster_lb.cc", diff --git a/source/extensions/common/BUILD b/source/extensions/common/BUILD index 54a5bcddfc7fc..551d28dce5323 100644 --- a/source/extensions/common/BUILD +++ b/source/extensions/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", hdrs = ["utility.h"], + # Legacy. TODO(#9953) clean up. + visibility = ["//visibility:public"], deps = [ "//include/envoy/runtime:runtime_interface", "//source/common/common:documentation_url_lib", diff --git a/source/extensions/common/aws/BUILD b/source/extensions/common/aws/BUILD index 4d610a59545f3..4436d95c26c69 100644 --- a/source/extensions/common/aws/BUILD +++ b/source/extensions/common/aws/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "signer_interface", hdrs = ["signer.h"], deps = [ @@ -16,7 +16,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "signer_impl_lib", srcs = ["signer_impl.cc"], hdrs = ["signer_impl.h"], @@ -35,13 +35,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "credentials_provider_interface", hdrs = ["credentials_provider.h"], external_deps = ["abseil_optional"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "credentials_provider_impl_lib", srcs = ["credentials_provider_impl.cc"], hdrs = ["credentials_provider_impl.h"], @@ -56,7 +56,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -67,13 +67,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "region_provider_interface", hdrs = ["region_provider.h"], external_deps = ["abseil_optional"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "region_provider_impl_lib", srcs = ["region_provider_impl.cc"], hdrs = ["region_provider_impl.h"], diff --git a/source/extensions/common/dynamic_forward_proxy/BUILD b/source/extensions/common/dynamic_forward_proxy/BUILD index 4321013da9f91..84ec35aaa6a79 100644 --- a/source/extensions/common/dynamic_forward_proxy/BUILD +++ b/source/extensions/common/dynamic_forward_proxy/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "dns_cache_interface", hdrs = ["dns_cache.h"], deps = [ @@ -22,7 +22,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dns_cache_manager_impl", srcs = ["dns_cache_manager_impl.cc"], hdrs = ["dns_cache_manager_impl.h"], @@ -33,7 +33,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dns_cache_impl", srcs = ["dns_cache_impl.cc"], hdrs = ["dns_cache_impl.h"], @@ -50,7 +50,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dns_cache_resource_manager", srcs = ["dns_cache_resource_manager.cc"], hdrs = ["dns_cache_resource_manager.h"], diff --git a/source/extensions/common/proxy_protocol/BUILD b/source/extensions/common/proxy_protocol/BUILD index fb0d2f74c09f7..34c999838b3fd 100644 --- a/source/extensions/common/proxy_protocol/BUILD +++ b/source/extensions/common/proxy_protocol/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,10 +8,12 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_protocol_header_lib", srcs = ["proxy_protocol_header.cc"], hdrs = ["proxy_protocol_header.h"], + # This is used by the router, so considered core code. + visibility = ["//visibility:public"], deps = [ "//include/envoy/buffer:buffer_interface", "//include/envoy/network:address_interface", diff --git a/source/extensions/common/redis/BUILD b/source/extensions/common/redis/BUILD index 1d50b1cfc6fc0..353b2d34d628a 100644 --- a/source/extensions/common/redis/BUILD +++ b/source/extensions/common/redis/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,14 +12,14 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "cluster_refresh_manager_interface", hdrs = ["cluster_refresh_manager.h"], deps = [ ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "cluster_refresh_manager_lib", srcs = ["cluster_refresh_manager_impl.cc"], hdrs = ["cluster_refresh_manager_impl.h"], diff --git a/source/extensions/common/sqlutils/BUILD b/source/extensions/common/sqlutils/BUILD index c0129c29cfc36..2a5597fbf3276 100644 --- a/source/extensions/common/sqlutils/BUILD +++ b/source/extensions/common/sqlutils/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "sqlutils_lib", srcs = ["sqlutils.cc"], hdrs = ["sqlutils.h"], diff --git a/source/extensions/common/tap/BUILD b/source/extensions/common/tap/BUILD index 480b2d05b6f38..2bb99ced0b82e 100644 --- a/source/extensions/common/tap/BUILD +++ b/source/extensions/common/tap/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "tap_interface", hdrs = ["tap.h"], deps = [ @@ -19,7 +19,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_config_base", srcs = ["tap_config_base.cc"], hdrs = ["tap_config_base.h"], @@ -33,7 +33,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_matcher", srcs = ["tap_matcher.cc"], hdrs = ["tap_matcher.h"], @@ -45,7 +45,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "admin", srcs = ["admin.cc"], hdrs = ["admin.h"], @@ -60,7 +60,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "extension_config_base", srcs = ["extension_config_base.cc"], hdrs = ["extension_config_base.h"], diff --git a/source/extensions/common/wasm/BUILD b/source/extensions/common/wasm/BUILD index c31b2deb485be..a8e59e594eb36 100644 --- a/source/extensions/common/wasm/BUILD +++ b/source/extensions/common/wasm/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ @@ -16,7 +16,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "wasm_vm_interface", hdrs = ["wasm_vm.h"], deps = [ @@ -26,7 +26,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "wasm_vm_base", hdrs = ["wasm_vm_base.h"], deps = [ @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "wasm_vm_lib", srcs = ["wasm_vm.cc"], deps = [ diff --git a/source/extensions/common/wasm/null/BUILD b/source/extensions/common/wasm/null/BUILD index 0d9d495104128..b1609559e4327 100644 --- a/source/extensions/common/wasm/null/BUILD +++ b/source/extensions/common/wasm/null/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "null_vm_plugin_interface", hdrs = ["null_vm_plugin.h"], deps = [ @@ -18,7 +18,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "null_vm_lib", srcs = ["null_vm.cc"], hdrs = ["null_vm.h"], @@ -33,7 +33,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "null_lib", srcs = ["null.cc"], hdrs = ["null.h"], diff --git a/source/extensions/common/wasm/v8/BUILD b/source/extensions/common/wasm/v8/BUILD index 0e4f86d97a66e..a6dc9d32dac03 100644 --- a/source/extensions/common/wasm/v8/BUILD +++ b/source/extensions/common/wasm/v8/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "v8_lib", srcs = ["v8.cc"], hdrs = ["v8.h"], diff --git a/source/extensions/compression/common/compressor/BUILD b/source/extensions/compression/common/compressor/BUILD index 54843124ba794..2960766975419 100644 --- a/source/extensions/compression/common/compressor/BUILD +++ b/source/extensions/compression/common/compressor/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "compressor_factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/compression/common/decompressor/BUILD b/source/extensions/compression/common/decompressor/BUILD index 27208bee530a6..fcee86f3b1843 100644 --- a/source/extensions/compression/common/decompressor/BUILD +++ b/source/extensions/compression/common/decompressor/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "decompressor_factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/compression/gzip/common/BUILD b/source/extensions/compression/gzip/common/BUILD index 8ec29af79ddb2..b6064bdc2c495 100644 --- a/source/extensions/compression/gzip/common/BUILD +++ b/source/extensions/compression/gzip/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "zlib_base_lib", srcs = ["base.cc"], hdrs = ["base.h"], diff --git a/source/extensions/compression/gzip/compressor/BUILD b/source/extensions/compression/gzip/compressor/BUILD index 3f37d25243560..334fe63c065f9 100644 --- a/source/extensions/compression/gzip/compressor/BUILD +++ b/source/extensions/compression/gzip/compressor/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "compressor_lib", srcs = ["zlib_compressor_impl.cc"], hdrs = ["zlib_compressor_impl.h"], diff --git a/source/extensions/compression/gzip/decompressor/BUILD b/source/extensions/compression/gzip/decompressor/BUILD index 9c86b64ef61b4..04ad350d020e0 100644 --- a/source/extensions/compression/gzip/decompressor/BUILD +++ b/source/extensions/compression/gzip/decompressor/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "zlib_decompressor_impl_lib", srcs = ["zlib_decompressor_impl.cc"], hdrs = ["zlib_decompressor_impl.h"], diff --git a/source/extensions/filters/common/expr/BUILD b/source/extensions/filters/common/expr/BUILD index d9abedc88404c..236aae26e150e 100644 --- a/source/extensions/filters/common/expr/BUILD +++ b/source/extensions/filters/common/expr/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "evaluator_lib", srcs = ["evaluator.cc"], hdrs = ["evaluator.h"], @@ -23,7 +23,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "context_lib", srcs = ["context.cc"], hdrs = ["context.h"], diff --git a/source/extensions/filters/common/ext_authz/BUILD b/source/extensions/filters/common/ext_authz/BUILD index 45d4fb01d96fb..ba7e59e1515ab 100644 --- a/source/extensions/filters/common/ext_authz/BUILD +++ b/source/extensions/filters/common/ext_authz/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ext_authz_interface", hdrs = ["ext_authz.h"], deps = [ @@ -19,7 +19,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "ext_authz_grpc_lib", srcs = ["ext_authz_grpc_impl.cc"], hdrs = ["ext_authz_grpc_impl.h"], @@ -49,7 +49,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "ext_authz_http_lib", srcs = ["ext_authz_http_impl.cc"], hdrs = ["ext_authz_http_impl.h"], @@ -69,7 +69,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "check_request_utils_lib", srcs = ["check_request_utils.cc"], hdrs = ["check_request_utils.h"], diff --git a/source/extensions/filters/common/fault/BUILD b/source/extensions/filters/common/fault/BUILD index d64605085fc44..cf784995f8b5c 100644 --- a/source/extensions/filters/common/fault/BUILD +++ b/source/extensions/filters/common/fault/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "fault_config_lib", srcs = ["fault_config.cc"], hdrs = ["fault_config.h"], diff --git a/source/extensions/filters/common/lua/BUILD b/source/extensions/filters/common/lua/BUILD index b36d7b7414c71..9afcdec78675e 100644 --- a/source/extensions/filters/common/lua/BUILD +++ b/source/extensions/filters/common/lua/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) load("//bazel:envoy_internal.bzl", "envoy_external_dep_path") @@ -22,7 +22,7 @@ config_setting( }, ) -envoy_cc_library( +envoy_cc_extension_library( name = "lua_lib", srcs = ["lua.cc"], hdrs = ["lua.h"], @@ -37,7 +37,7 @@ envoy_cc_library( }), ) -envoy_cc_library( +envoy_cc_extension_library( name = "wrappers_lib", srcs = ["wrappers.cc"], hdrs = ["wrappers.h"], diff --git a/source/extensions/filters/common/original_src/BUILD b/source/extensions/filters/common/original_src/BUILD index 76662376ee0cb..768c311d4d8bb 100644 --- a/source/extensions/filters/common/original_src/BUILD +++ b/source/extensions/filters/common/original_src/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "original_src_socket_option_lib", srcs = ["original_src_socket_option.cc"], hdrs = ["original_src_socket_option.h"], @@ -24,7 +24,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "socket_option_factory_lib", srcs = ["socket_option_factory.cc"], hdrs = ["socket_option_factory.h"], diff --git a/source/extensions/filters/common/ratelimit/BUILD b/source/extensions/filters/common/ratelimit/BUILD index 726bdf338f9a9..1fcae78afca43 100644 --- a/source/extensions/filters/common/ratelimit/BUILD +++ b/source/extensions/filters/common/ratelimit/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ratelimit_lib", srcs = ["ratelimit_impl.cc"], hdrs = ["ratelimit_impl.h"], @@ -30,7 +30,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "ratelimit_client_interface", hdrs = ["ratelimit.h"], external_deps = ["abseil_optional"], @@ -42,7 +42,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "stat_names_lib", hdrs = ["stat_names.h"], deps = [ diff --git a/source/extensions/filters/common/rbac/BUILD b/source/extensions/filters/common/rbac/BUILD index 9a9bbc1057495..4062001a9e2e8 100644 --- a/source/extensions/filters/common/rbac/BUILD +++ b/source/extensions/filters/common/rbac/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -19,7 +19,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "matchers_lib", srcs = ["matchers.cc"], hdrs = ["matchers.h"], @@ -39,7 +39,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "engine_interface", hdrs = ["engine.h"], deps = [ @@ -49,7 +49,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "engine_lib", srcs = ["engine_impl.cc"], hdrs = ["engine_impl.h"], diff --git a/source/extensions/filters/http/BUILD b/source/extensions/filters/http/BUILD index ee5bcf6bc186d..ab57f2a943574 100644 --- a/source/extensions/filters/http/BUILD +++ b/source/extensions/filters/http/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # Well known names are public. + visibility = ["//visibility:public"], deps = [ "//source/common/config:well_known_names", "//source/common/singleton:const_singleton", diff --git a/source/extensions/filters/http/adaptive_concurrency/BUILD b/source/extensions/filters/http/adaptive_concurrency/BUILD index c6a7a2d4e95f9..882fe1f80c41d 100644 --- a/source/extensions/filters/http/adaptive_concurrency/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -13,7 +13,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "adaptive_concurrency_filter_lib", srcs = ["adaptive_concurrency_filter.cc"], hdrs = ["adaptive_concurrency_filter.h"], diff --git a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD index ae74e71c6b351..9c93679b23d56 100644 --- a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "controller_lib", srcs = ["gradient_controller.cc"], hdrs = [ diff --git a/source/extensions/filters/http/admission_control/evaluators/BUILD b/source/extensions/filters/http/admission_control/evaluators/BUILD index 79910a264e7e5..6430e29f18edc 100644 --- a/source/extensions/filters/http/admission_control/evaluators/BUILD +++ b/source/extensions/filters/http/admission_control/evaluators/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "response_evaluator_lib", srcs = ["success_criteria_evaluator.cc"], hdrs = [ diff --git a/source/extensions/filters/http/aws_lambda/BUILD b/source/extensions/filters/http/aws_lambda/BUILD index 1e3d6006293a0..f15d646b9666b 100644 --- a/source/extensions/filters/http/aws_lambda/BUILD +++ b/source/extensions/filters/http/aws_lambda/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", "envoy_proto_library", ) @@ -18,7 +18,7 @@ envoy_proto_library( srcs = ["request_response.proto"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "aws_lambda_filter_lib", srcs = ["aws_lambda_filter.cc"], hdrs = ["aws_lambda_filter.h"], diff --git a/source/extensions/filters/http/aws_request_signing/BUILD b/source/extensions/filters/http/aws_request_signing/BUILD index a83efef61e982..904ca3b07f778 100644 --- a/source/extensions/filters/http/aws_request_signing/BUILD +++ b/source/extensions/filters/http/aws_request_signing/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "aws_request_signing_filter_lib", srcs = ["aws_request_signing_filter.cc"], hdrs = ["aws_request_signing_filter.h"], diff --git a/source/extensions/filters/http/buffer/BUILD b/source/extensions/filters/http/buffer/BUILD index eeb4a403931e6..d5fc6a345b6b5 100644 --- a/source/extensions/filters/http/buffer/BUILD +++ b/source/extensions/filters/http/buffer/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "buffer_filter_lib", srcs = ["buffer_filter.cc"], hdrs = ["buffer_filter.h"], diff --git a/source/extensions/filters/http/cache/BUILD b/source/extensions/filters/http/cache/BUILD index ee97d6f0a9a87..3dafe2f5472ae 100644 --- a/source/extensions/filters/http/cache/BUILD +++ b/source/extensions/filters/http/cache/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", "envoy_proto_library", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "cache_filter_lib", srcs = ["cache_filter.cc"], hdrs = ["cache_filter.h"], @@ -29,7 +29,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "cacheability_utils_lib", srcs = ["cacheability_utils.cc"], hdrs = ["cacheability_utils.h"], @@ -45,7 +45,7 @@ envoy_proto_library( srcs = ["key.proto"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "http_cache_lib", srcs = ["http_cache.cc"], hdrs = ["http_cache.h"], @@ -64,7 +64,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "cache_headers_utils_lib", srcs = ["cache_headers_utils.cc"], hdrs = ["cache_headers_utils.h"], diff --git a/source/extensions/filters/http/common/BUILD b/source/extensions/filters/http/common/BUILD index 7a3ccda3d2c17..406b94c29aacf 100644 --- a/source/extensions/filters/http/common/BUILD +++ b/source/extensions/filters/http/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,15 +8,20 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "pass_through_filter_lib", hdrs = ["pass_through_filter.h"], + # A thin shim used by test and prod filters. + visibility = [ + "//source:__subpackages__", + "//test:__subpackages__", + ], deps = [ "//include/envoy/server:filter_config_interface", ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -24,7 +29,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "jwks_fetcher_lib", srcs = ["jwks_fetcher.cc"], hdrs = ["jwks_fetcher.h"], @@ -38,9 +43,14 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", hdrs = ["utility.h"], + # Used by the router filter. TODO(#9953) clean up. + visibility = [ + "//source:__subpackages__", + "//test:__subpackages__", + ], deps = [ "//include/envoy/runtime:runtime_interface", "//source/common/common:macros", diff --git a/source/extensions/filters/http/common/compressor/BUILD b/source/extensions/filters/http/common/compressor/BUILD index 56468881c8f26..bceba1e346590 100644 --- a/source/extensions/filters/http/common/compressor/BUILD +++ b/source/extensions/filters/http/common/compressor/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() # TODO(rojkov): move this library to source/extensions/filters/http/compressor/. -envoy_cc_library( +envoy_cc_extension_library( name = "compressor_lib", srcs = ["compressor.cc"], hdrs = ["compressor.h"], diff --git a/source/extensions/filters/http/compressor/BUILD b/source/extensions/filters/http/compressor/BUILD index ea1d38801a5ed..e7bd57c3da318 100644 --- a/source/extensions/filters/http/compressor/BUILD +++ b/source/extensions/filters/http/compressor/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "compressor_filter_lib", srcs = ["compressor_filter.cc"], hdrs = ["compressor_filter.h"], diff --git a/source/extensions/filters/http/cors/BUILD b/source/extensions/filters/http/cors/BUILD index 0685c0e41f271..b937ba24f5cbf 100644 --- a/source/extensions/filters/http/cors/BUILD +++ b/source/extensions/filters/http/cors/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "cors_filter_lib", srcs = ["cors_filter.cc"], hdrs = ["cors_filter.h"], diff --git a/source/extensions/filters/http/csrf/BUILD b/source/extensions/filters/http/csrf/BUILD index c82dbf9764e2a..66c3e6cc3dc32 100644 --- a/source/extensions/filters/http/csrf/BUILD +++ b/source/extensions/filters/http/csrf/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "csrf_filter_lib", srcs = ["csrf_filter.cc"], hdrs = ["csrf_filter.h"], diff --git a/source/extensions/filters/http/decompressor/BUILD b/source/extensions/filters/http/decompressor/BUILD index b4665ca09b7b7..5e9e708253035 100644 --- a/source/extensions/filters/http/decompressor/BUILD +++ b/source/extensions/filters/http/decompressor/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "decompressor_filter_lib", srcs = ["decompressor_filter.cc"], hdrs = ["decompressor_filter.h"], diff --git a/source/extensions/filters/http/dynamic_forward_proxy/BUILD b/source/extensions/filters/http/dynamic_forward_proxy/BUILD index 56d4ff9be0b6b..0d63b52c490bb 100644 --- a/source/extensions/filters/http/dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/http/dynamic_forward_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], diff --git a/source/extensions/filters/http/dynamo/BUILD b/source/extensions/filters/http/dynamo/BUILD index ad5f2fc3b97e0..fa90b2ccd2fd3 100644 --- a/source/extensions/filters/http/dynamo/BUILD +++ b/source/extensions/filters/http/dynamo/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "dynamo_filter_lib", srcs = ["dynamo_filter.cc"], hdrs = ["dynamo_filter.h"], @@ -27,7 +27,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dynamo_request_parser_lib", srcs = ["dynamo_request_parser.cc"], hdrs = ["dynamo_request_parser.h"], @@ -53,7 +53,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dynamo_stats_lib", srcs = ["dynamo_stats.cc"], hdrs = ["dynamo_stats.h"], diff --git a/source/extensions/filters/http/ext_authz/BUILD b/source/extensions/filters/http/ext_authz/BUILD index 559363edcf7b2..8c794ad1f98a3 100644 --- a/source/extensions/filters/http/ext_authz/BUILD +++ b/source/extensions/filters/http/ext_authz/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ext_authz", srcs = ["ext_authz.cc"], hdrs = ["ext_authz.h"], diff --git a/source/extensions/filters/http/fault/BUILD b/source/extensions/filters/http/fault/BUILD index 726cda5785d04..2cf6355b7f91c 100644 --- a/source/extensions/filters/http/fault/BUILD +++ b/source/extensions/filters/http/fault/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "fault_filter_lib", srcs = ["fault_filter.cc"], hdrs = ["fault_filter.h"], diff --git a/source/extensions/filters/http/grpc_http1_bridge/BUILD b/source/extensions/filters/http/grpc_http1_bridge/BUILD index 486904e2f8a5d..92e298de4a1ba 100644 --- a/source/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_bridge/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "http1_bridge_filter_lib", srcs = ["http1_bridge_filter.cc"], hdrs = ["http1_bridge_filter.h"], diff --git a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD index 1a80fefdb45c0..8e1508def1bc5 100644 --- a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "filter_lib", srcs = ["filter.cc"], hdrs = ["filter.h"], diff --git a/source/extensions/filters/http/grpc_json_transcoder/BUILD b/source/extensions/filters/http/grpc_json_transcoder/BUILD index 3b7ab0a09d222..660af08a8aec8 100644 --- a/source/extensions/filters/http/grpc_json_transcoder/BUILD +++ b/source/extensions/filters/http/grpc_json_transcoder/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "json_transcoder_filter_lib", srcs = ["json_transcoder_filter.cc"], hdrs = ["json_transcoder_filter.h"], @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "http_body_utils_lib", srcs = ["http_body_utils.cc"], hdrs = ["http_body_utils.h"], @@ -47,7 +47,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "transcoder_input_stream_lib", srcs = ["transcoder_input_stream_impl.cc"], hdrs = ["transcoder_input_stream_impl.h"], diff --git a/source/extensions/filters/http/grpc_web/BUILD b/source/extensions/filters/http/grpc_web/BUILD index 1f69105909070..9514288989f66 100644 --- a/source/extensions/filters/http/grpc_web/BUILD +++ b/source/extensions/filters/http/grpc_web/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "grpc_web_filter_lib", srcs = ["grpc_web_filter.cc"], hdrs = ["grpc_web_filter.h"], diff --git a/source/extensions/filters/http/gzip/BUILD b/source/extensions/filters/http/gzip/BUILD index 3844addc83b60..5a79613527e9c 100644 --- a/source/extensions/filters/http/gzip/BUILD +++ b/source/extensions/filters/http/gzip/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "gzip_filter_lib", srcs = ["gzip_filter.cc"], hdrs = ["gzip_filter.h"], diff --git a/source/extensions/filters/http/header_to_metadata/BUILD b/source/extensions/filters/http/header_to_metadata/BUILD index e0232d4d8d1cf..5d8f2432545c8 100644 --- a/source/extensions/filters/http/header_to_metadata/BUILD +++ b/source/extensions/filters/http/header_to_metadata/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "header_to_metadata_filter_lib", srcs = ["header_to_metadata_filter.cc"], hdrs = ["header_to_metadata_filter.h"], diff --git a/source/extensions/filters/http/health_check/BUILD b/source/extensions/filters/http/health_check/BUILD index f0841d388b485..95e5348c2caf2 100644 --- a/source/extensions/filters/http/health_check/BUILD +++ b/source/extensions/filters/http/health_check/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "health_check_lib", srcs = ["health_check.cc"], hdrs = ["health_check.h"], diff --git a/source/extensions/filters/http/ip_tagging/BUILD b/source/extensions/filters/http/ip_tagging/BUILD index cbcf98b1d5169..b9e176fef405c 100644 --- a/source/extensions/filters/http/ip_tagging/BUILD +++ b/source/extensions/filters/http/ip_tagging/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ip_tagging_filter_lib", srcs = ["ip_tagging_filter.cc"], hdrs = ["ip_tagging_filter.h"], diff --git a/source/extensions/filters/http/jwt_authn/BUILD b/source/extensions/filters/http/jwt_authn/BUILD index a2967b9901328..84bc8b3db3680 100644 --- a/source/extensions/filters/http/jwt_authn/BUILD +++ b/source/extensions/filters/http/jwt_authn/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "extractor_lib", srcs = ["extractor.cc"], hdrs = ["extractor.h"], @@ -19,7 +19,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "jwks_cache_lib", srcs = ["jwks_cache.cc"], hdrs = ["jwks_cache.h"], @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "authenticator_lib", srcs = ["authenticator.cc"], hdrs = ["authenticator.h"], @@ -49,7 +49,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "filter_lib", srcs = ["filter.cc"], hdrs = ["filter.h"], @@ -80,7 +80,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "matchers_lib", srcs = ["matcher.cc"], hdrs = ["matcher.h"], @@ -94,7 +94,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "verifier_lib", srcs = ["verifier.cc"], hdrs = ["verifier.h"], @@ -106,7 +106,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "filter_config_interface", srcs = ["filter_config.cc"], hdrs = ["filter_config.h"], diff --git a/source/extensions/filters/http/lua/BUILD b/source/extensions/filters/http/lua/BUILD index 657e3472a88f6..46b7cef3412b7 100644 --- a/source/extensions/filters/http/lua/BUILD +++ b/source/extensions/filters/http/lua/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "lua_filter_lib", srcs = ["lua_filter.cc"], hdrs = ["lua_filter.h"], @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "wrappers_lib", srcs = ["wrappers.cc"], hdrs = ["wrappers.h"], diff --git a/source/extensions/filters/http/on_demand/BUILD b/source/extensions/filters/http/on_demand/BUILD index 3f4ef02c1dbaa..2d1f60f44301a 100644 --- a/source/extensions/filters/http/on_demand/BUILD +++ b/source/extensions/filters/http/on_demand/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "on_demand_update_lib", srcs = ["on_demand_update.cc"], hdrs = ["on_demand_update.h"], diff --git a/source/extensions/filters/http/original_src/BUILD b/source/extensions/filters/http/original_src/BUILD index eff7f4cf9679b..12f9763d09638 100644 --- a/source/extensions/filters/http/original_src/BUILD +++ b/source/extensions/filters/http/original_src/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,14 +11,14 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "config_lib", srcs = ["config.cc"], hdrs = ["config.h"], deps = ["@envoy_api//envoy/extensions/filters/http/original_src/v3:pkg_cc_proto"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "original_src_lib", srcs = ["original_src.cc"], hdrs = ["original_src.h"], diff --git a/source/extensions/filters/http/ratelimit/BUILD b/source/extensions/filters/http/ratelimit/BUILD index 4a8c7a8c35d57..2c3e4b1bce928 100644 --- a/source/extensions/filters/http/ratelimit/BUILD +++ b/source/extensions/filters/http/ratelimit/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ratelimit_lib", srcs = ["ratelimit.cc"], hdrs = ["ratelimit.h"], diff --git a/source/extensions/filters/http/rbac/BUILD b/source/extensions/filters/http/rbac/BUILD index 9554a910a16ca..10fa53b1a8cbe 100644 --- a/source/extensions/filters/http/rbac/BUILD +++ b/source/extensions/filters/http/rbac/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -23,7 +23,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "rbac_filter_lib", srcs = ["rbac_filter.cc"], hdrs = ["rbac_filter.h"], diff --git a/source/extensions/filters/http/squash/BUILD b/source/extensions/filters/http/squash/BUILD index 8579d7a2860a6..ae08c62a475df 100644 --- a/source/extensions/filters/http/squash/BUILD +++ b/source/extensions/filters/http/squash/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "squash_filter_lib", srcs = ["squash_filter.cc"], hdrs = ["squash_filter.h"], diff --git a/source/extensions/filters/http/tap/BUILD b/source/extensions/filters/http/tap/BUILD index 62a8d2f36f5aa..02cb74c9cd082 100644 --- a/source/extensions/filters/http/tap/BUILD +++ b/source/extensions/filters/http/tap/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "tap_config_interface", hdrs = ["tap_config.h"], deps = [ @@ -22,7 +22,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_config_impl", srcs = ["tap_config_impl.cc"], hdrs = ["tap_config_impl.h"], @@ -35,7 +35,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_filter_lib", srcs = ["tap_filter.cc"], hdrs = ["tap_filter.h"], diff --git a/source/extensions/filters/listener/BUILD b/source/extensions/filters/listener/BUILD index 06456dbbcb5e7..ab183ebfb7f16 100644 --- a/source/extensions/filters/listener/BUILD +++ b/source/extensions/filters/listener/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # Well known names are public. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/filters/listener/http_inspector/BUILD b/source/extensions/filters/listener/http_inspector/BUILD index 87e808230bd19..a242b11592376 100644 --- a/source/extensions/filters/listener/http_inspector/BUILD +++ b/source/extensions/filters/listener/http_inspector/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "http_inspector_lib", srcs = ["http_inspector.cc"], hdrs = ["http_inspector.h"], diff --git a/source/extensions/filters/listener/original_dst/BUILD b/source/extensions/filters/listener/original_dst/BUILD index a940d212c9872..1b54a0c157cc2 100644 --- a/source/extensions/filters/listener/original_dst/BUILD +++ b/source/extensions/filters/listener/original_dst/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "original_dst_lib", srcs = ["original_dst.cc"], hdrs = ["original_dst.h"], diff --git a/source/extensions/filters/listener/original_src/BUILD b/source/extensions/filters/listener/original_src/BUILD index 4bed07cc6619b..6ed3a80204bd0 100644 --- a/source/extensions/filters/listener/original_src/BUILD +++ b/source/extensions/filters/listener/original_src/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,14 +11,14 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "config_lib", srcs = ["config.cc"], hdrs = ["config.h"], deps = ["@envoy_api//envoy/extensions/filters/listener/original_src/v3:pkg_cc_proto"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "original_src_lib", srcs = ["original_src.cc"], hdrs = ["original_src.h"], diff --git a/source/extensions/filters/listener/proxy_protocol/BUILD b/source/extensions/filters/listener/proxy_protocol/BUILD index 407d05e434680..01e4ff08af197 100644 --- a/source/extensions/filters/listener/proxy_protocol/BUILD +++ b/source/extensions/filters/listener/proxy_protocol/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_protocol_lib", srcs = ["proxy_protocol.cc"], hdrs = [ diff --git a/source/extensions/filters/network/BUILD b/source/extensions/filters/network/BUILD index ee5bcf6bc186d..ab57f2a943574 100644 --- a/source/extensions/filters/network/BUILD +++ b/source/extensions/filters/network/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # Well known names are public. + visibility = ["//visibility:public"], deps = [ "//source/common/config:well_known_names", "//source/common/singleton:const_singleton", diff --git a/source/extensions/filters/network/client_ssl_auth/BUILD b/source/extensions/filters/network/client_ssl_auth/BUILD index 2a120e0308665..a4b1822b7e143 100644 --- a/source/extensions/filters/network/client_ssl_auth/BUILD +++ b/source/extensions/filters/network/client_ssl_auth/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "client_ssl_auth", srcs = ["client_ssl_auth.cc"], hdrs = ["client_ssl_auth.h"], diff --git a/source/extensions/filters/network/common/BUILD b/source/extensions/filters/network/common/BUILD index 4e70e2aa414d1..0838e8486b795 100644 --- a/source/extensions/filters/network/common/BUILD +++ b/source/extensions/filters/network/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,17 +8,21 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], + # Used by core. TODO(#9953) clean up. + visibility = ["//visibility:public"], deps = [ "//include/envoy/server:filter_config_interface", ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", hdrs = ["utility.h"], + # Used by core. TODO(#9953) clean up. + visibility = ["//visibility:public"], deps = [ "//include/envoy/runtime:runtime_interface", "//source/common/common:macros", diff --git a/source/extensions/filters/network/common/redis/BUILD b/source/extensions/filters/network/common/redis/BUILD index 8c9c9e32d3ac7..d579eac7cfad6 100644 --- a/source/extensions/filters/network/common/redis/BUILD +++ b/source/extensions/filters/network/common/redis/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "codec_interface", hdrs = ["codec.h"], deps = [ @@ -17,13 +17,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_interface", hdrs = ["utility.h"], deps = [":codec_interface"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -35,7 +35,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "supported_commands_lib", hdrs = ["supported_commands.h"], deps = [ @@ -43,7 +43,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "client_interface", hdrs = ["client.h"], deps = [ @@ -53,7 +53,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "client_lib", srcs = ["client_impl.cc"], hdrs = ["client_impl.h"], @@ -75,7 +75,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -85,7 +85,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "redis_command_stats_lib", srcs = ["redis_command_stats.cc"], hdrs = ["redis_command_stats.h"], @@ -101,7 +101,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "fault_interface", hdrs = ["fault.h"], deps = [ @@ -109,7 +109,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "fault_lib", srcs = ["fault_impl.cc"], hdrs = ["fault_impl.h"], diff --git a/source/extensions/filters/network/direct_response/BUILD b/source/extensions/filters/network/direct_response/BUILD index fe6244a5c19dc..73c0501037723 100644 --- a/source/extensions/filters/network/direct_response/BUILD +++ b/source/extensions/filters/network/direct_response/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "filter", srcs = ["filter.cc"], hdrs = ["filter.h"], diff --git a/source/extensions/filters/network/dubbo_proxy/BUILD b/source/extensions/filters/network/dubbo_proxy/BUILD index 6b2affdd7d724..87296ec24e107 100644 --- a/source/extensions/filters/network/dubbo_proxy/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "buffer_helper_lib", srcs = ["buffer_helper.cc"], hdrs = ["buffer_helper.h"], @@ -20,7 +20,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "hessian_utils_lib", srcs = ["hessian_utils.cc"], hdrs = ["hessian_utils.h"], @@ -30,7 +30,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "protocol_interface", hdrs = ["protocol.h"], deps = [ @@ -45,7 +45,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dubbo_protocol_impl_lib", srcs = ["dubbo_protocol_impl.cc"], hdrs = ["dubbo_protocol_impl.h"], @@ -56,7 +56,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "serializer_interface", srcs = ["serializer_impl.cc"], hdrs = [ @@ -75,7 +75,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "dubbo_hessian2_serializer_impl_lib", srcs = ["dubbo_hessian2_serializer_impl.cc"], hdrs = [ @@ -89,7 +89,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "decoder_lib", srcs = ["decoder.cc"], hdrs = ["decoder.h"], @@ -126,7 +126,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], @@ -137,7 +137,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "message_lib", hdrs = [ "message.h", @@ -148,7 +148,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "decoder_events_lib", hdrs = ["decoder_event_handler.h"], deps = [ @@ -159,7 +159,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "stats_lib", hdrs = ["stats.h"], deps = [ @@ -168,7 +168,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "app_exception_lib", srcs = ["app_exception.cc"], hdrs = ["app_exception.h"], @@ -183,7 +183,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "heartbeat_response_lib", srcs = ["heartbeat_response.cc"], hdrs = ["heartbeat_response.h"], @@ -196,7 +196,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_manager_lib", srcs = [ "active_message.cc", diff --git a/source/extensions/filters/network/dubbo_proxy/filters/BUILD b/source/extensions/filters/network/dubbo_proxy/filters/BUILD index 2fc5922c92ead..4ac59b4bbc58f 100644 --- a/source/extensions/filters/network/dubbo_proxy/filters/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/filters/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "filter_interface", hdrs = ["filter.h"], deps = [ @@ -23,7 +23,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "filter_config_interface", hdrs = ["filter_config.h"], deps = [ @@ -35,7 +35,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -44,7 +44,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/filters/network/dubbo_proxy/router/BUILD b/source/extensions/filters/network/dubbo_proxy/router/BUILD index 9dd2cf7e46c87..d6173e2edfb1c 100644 --- a/source/extensions/filters/network/dubbo_proxy/router/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/router/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "router_interface", hdrs = ["router.h"], deps = [ @@ -17,7 +17,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "route_matcher_interface", hdrs = ["route.h"], deps = [ @@ -31,7 +31,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "route_matcher", srcs = ["route_matcher.cc"], hdrs = ["route_matcher.h"], @@ -51,7 +51,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], @@ -65,7 +65,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], diff --git a/source/extensions/filters/network/echo/BUILD b/source/extensions/filters/network/echo/BUILD index 6d39336775b00..0babbd8a1f3a3 100644 --- a/source/extensions/filters/network/echo/BUILD +++ b/source/extensions/filters/network/echo/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "echo", srcs = ["echo.cc"], hdrs = ["echo.h"], diff --git a/source/extensions/filters/network/ext_authz/BUILD b/source/extensions/filters/network/ext_authz/BUILD index 1a7277d7ac4d8..03cd044337b23 100644 --- a/source/extensions/filters/network/ext_authz/BUILD +++ b/source/extensions/filters/network/ext_authz/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ext_authz", srcs = ["ext_authz.cc"], hdrs = ["ext_authz.h"], diff --git a/source/extensions/filters/network/kafka/BUILD b/source/extensions/filters/network/kafka/BUILD index 495a94a7bad65..95affeb7b5fa7 100644 --- a/source/extensions/filters/network/kafka/BUILD +++ b/source/extensions/filters/network/kafka/BUILD @@ -2,7 +2,7 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library") load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -27,7 +27,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_broker_filter_lib", srcs = ["broker/filter.cc"], hdrs = [ @@ -46,7 +46,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "abstract_codec_lib", srcs = [], hdrs = [ @@ -57,7 +57,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_request_codec_lib", srcs = ["request_codec.cc"], hdrs = [ @@ -69,7 +69,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_request_parser_lib", srcs = [ "external/kafka_request_resolver.cc", @@ -88,7 +88,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_request_lib", srcs = [ ], @@ -120,7 +120,7 @@ genrule( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_response_codec_lib", srcs = ["response_codec.cc"], hdrs = [ @@ -132,7 +132,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_response_parser_lib", srcs = [ "external/kafka_response_resolver.cc", @@ -151,7 +151,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_response_lib", srcs = [ ], @@ -199,7 +199,7 @@ py_library( srcs = ["protocol/generator.py"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "parser_lib", hdrs = ["parser.h"], deps = [ @@ -207,13 +207,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tagged_fields_lib", hdrs = ["tagged_fields.h"], deps = [":serialization_lib"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "serialization_lib", srcs = [ "serialization.cc", @@ -260,7 +260,7 @@ py_library( srcs = ["serialization/generator.py"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "kafka_types_lib", hdrs = [ "kafka_types.h", diff --git a/source/extensions/filters/network/local_ratelimit/BUILD b/source/extensions/filters/network/local_ratelimit/BUILD index 052b817726d9b..0565da9339a50 100644 --- a/source/extensions/filters/network/local_ratelimit/BUILD +++ b/source/extensions/filters/network/local_ratelimit/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "local_ratelimit_lib", srcs = ["local_ratelimit.cc"], hdrs = ["local_ratelimit.h"], diff --git a/source/extensions/filters/network/mongo_proxy/BUILD b/source/extensions/filters/network/mongo_proxy/BUILD index 04c14c2c610ca..e79c39e8b9ff7 100644 --- a/source/extensions/filters/network/mongo_proxy/BUILD +++ b/source/extensions/filters/network/mongo_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,19 +12,19 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "bson_interface", hdrs = ["bson.h"], deps = ["//include/envoy/buffer:buffer_interface"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "codec_interface", hdrs = ["codec.h"], deps = [":bson_interface"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "bson_lib", srcs = ["bson_impl.cc"], hdrs = ["bson_impl.h"], @@ -39,7 +39,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -52,7 +52,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_lib", srcs = ["proxy.cc"], hdrs = ["proxy.h"], @@ -82,7 +82,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "mongo_stats_lib", srcs = ["mongo_stats.cc"], hdrs = ["mongo_stats.h"], @@ -93,7 +93,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], diff --git a/source/extensions/filters/network/mysql_proxy/BUILD b/source/extensions/filters/network/mysql_proxy/BUILD index 152584385054a..467346f645c55 100644 --- a/source/extensions/filters/network/mysql_proxy/BUILD +++ b/source/extensions/filters/network/mysql_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_lib", srcs = [ "mysql_codec_clogin.cc", diff --git a/source/extensions/filters/network/postgres_proxy/BUILD b/source/extensions/filters/network/postgres_proxy/BUILD index a3c13b7c1633e..10d210393a7bd 100644 --- a/source/extensions/filters/network/postgres_proxy/BUILD +++ b/source/extensions/filters/network/postgres_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -14,7 +14,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "filter", srcs = [ "postgres_decoder.cc", diff --git a/source/extensions/filters/network/ratelimit/BUILD b/source/extensions/filters/network/ratelimit/BUILD index 68f54558afa4c..fbd7350aacd11 100644 --- a/source/extensions/filters/network/ratelimit/BUILD +++ b/source/extensions/filters/network/ratelimit/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,10 +12,16 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "ratelimit_lib", srcs = ["ratelimit.cc"], hdrs = ["ratelimit.h"], + # Legacy test use. TODO(#9953) clean up. + visibility = [ + "//source/extensions:__subpackages__", + "//test/common/network:__pkg__", + "//test/extensions:__subpackages__", + ], deps = [ "//include/envoy/network:connection_interface", "//include/envoy/network:filter_interface", diff --git a/source/extensions/filters/network/rbac/BUILD b/source/extensions/filters/network/rbac/BUILD index 367104e913d86..dd7669046a82c 100644 --- a/source/extensions/filters/network/rbac/BUILD +++ b/source/extensions/filters/network/rbac/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "rbac_filter", srcs = ["rbac_filter.cc"], hdrs = ["rbac_filter.h"], diff --git a/source/extensions/filters/network/redis_proxy/BUILD b/source/extensions/filters/network/redis_proxy/BUILD index b7503144a5f8b..f605d4d4151a2 100644 --- a/source/extensions/filters/network/redis_proxy/BUILD +++ b/source/extensions/filters/network/redis_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -13,7 +13,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "command_splitter_interface", hdrs = ["command_splitter.h"], deps = [ @@ -22,7 +22,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "config_interface", hdrs = ["config.h"], deps = [ @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_pool_interface", hdrs = ["conn_pool.h"], deps = [ @@ -44,13 +44,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_interface", hdrs = ["router.h"], deps = [":conn_pool_interface"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "command_splitter_lib", srcs = ["command_splitter_impl.cc"], hdrs = ["command_splitter_impl.h"], @@ -71,7 +71,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_pool_lib", srcs = ["conn_pool_impl.cc"], hdrs = ["conn_pool_impl.h"], @@ -98,7 +98,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], @@ -138,7 +138,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], diff --git a/source/extensions/filters/network/rocketmq_proxy/BUILD b/source/extensions/filters/network/rocketmq_proxy/BUILD index 7ce5e971d74a1..ab523ee02e2f2 100644 --- a/source/extensions/filters/network/rocketmq_proxy/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,13 +9,13 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = ["//source/common/singleton:const_singleton"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "stats_interface", hdrs = ["stats.h"], deps = [ @@ -24,7 +24,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "rocketmq_interface", hdrs = [ "topic_route.h", @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "rocketmq_lib", srcs = [ "topic_route.cc", @@ -44,7 +44,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "protocol_interface", hdrs = ["protocol.h"], deps = [ @@ -54,7 +54,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "protocol_lib", srcs = ["protocol.cc"], deps = [ @@ -64,7 +64,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "codec_lib", srcs = [ "codec.cc", @@ -79,7 +79,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_manager_lib", srcs = [ "active_message.cc", @@ -138,7 +138,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], diff --git a/source/extensions/filters/network/rocketmq_proxy/router/BUILD b/source/extensions/filters/network/rocketmq_proxy/router/BUILD index 03f3b70a34be4..2752f51ecbe3b 100644 --- a/source/extensions/filters/network/rocketmq_proxy/router/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/router/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "router_interface", hdrs = ["router.h"], deps = [ @@ -18,7 +18,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], @@ -31,7 +31,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "route_matcher", srcs = ["route_matcher.cc"], hdrs = ["route_matcher.h"], diff --git a/source/extensions/filters/network/sni_cluster/BUILD b/source/extensions/filters/network/sni_cluster/BUILD index 6524b5defe1ee..edfa943751738 100644 --- a/source/extensions/filters/network/sni_cluster/BUILD +++ b/source/extensions/filters/network/sni_cluster/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "sni_cluster", srcs = ["sni_cluster.cc"], hdrs = ["sni_cluster.h"], diff --git a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD index d7f95b44d6bd9..9089c2e9bccb5 100644 --- a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], diff --git a/source/extensions/filters/network/thrift_proxy/BUILD b/source/extensions/filters/network/thrift_proxy/BUILD index baa7337316376..a907011b3670b 100644 --- a/source/extensions/filters/network/thrift_proxy/BUILD +++ b/source/extensions/filters/network/thrift_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "app_exception_lib", srcs = ["app_exception_impl.cc"], hdrs = ["app_exception_impl.h"], @@ -20,7 +20,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "buffer_helper_lib", srcs = ["buffer_helper.cc"], hdrs = ["buffer_helper.h"], @@ -60,7 +60,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_manager_lib", srcs = ["conn_manager.cc"], hdrs = ["conn_manager.h"], @@ -89,7 +89,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "decoder_events_lib", hdrs = ["decoder_events.h"], deps = [ @@ -98,7 +98,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "decoder_lib", srcs = ["decoder.cc"], hdrs = ["decoder.h"], @@ -112,7 +112,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], @@ -125,14 +125,14 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tracing_interface", hdrs = ["tracing.h"], external_deps = ["abseil_optional"], deps = [], ) -envoy_cc_library( +envoy_cc_extension_library( name = "protocol_converter_lib", hdrs = [ "protocol_converter.h", @@ -144,7 +144,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "protocol_interface", hdrs = [ "protocol.h", @@ -166,7 +166,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "auto_protocol_lib", srcs = [ "auto_protocol_impl.cc", @@ -184,7 +184,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "binary_protocol_lib", srcs = [ "binary_protocol_impl.cc", @@ -199,7 +199,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "compact_protocol_lib", srcs = [ "compact_protocol_impl.cc", @@ -215,7 +215,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "twitter_protocol_lib", srcs = [ "twitter_protocol_impl.cc", @@ -232,7 +232,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "stats_lib", hdrs = ["stats.h"], deps = [ @@ -241,7 +241,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "transport_interface", hdrs = ["transport.h"], external_deps = ["abseil_optional"], @@ -258,7 +258,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "conn_state_lib", hdrs = ["conn_state.h"], deps = [ @@ -266,7 +266,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "thrift_lib", hdrs = ["thrift.h"], deps = [ @@ -275,7 +275,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "thrift_object_interface", hdrs = ["thrift_object.h"], deps = [ @@ -284,7 +284,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "thrift_object_lib", srcs = ["thrift_object_impl.cc"], hdrs = ["thrift_object_impl.h"], @@ -297,7 +297,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "auto_transport_lib", srcs = [ "auto_transport_impl.cc", @@ -318,7 +318,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "framed_transport_lib", srcs = [ "framed_transport_impl.cc", @@ -333,7 +333,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "header_transport_lib", srcs = [ "header_transport_impl.cc", @@ -349,7 +349,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "unframed_transport_lib", srcs = [ "unframed_transport_impl.cc", diff --git a/source/extensions/filters/network/thrift_proxy/filters/BUILD b/source/extensions/filters/network/thrift_proxy/filters/BUILD index 808e42dd8e989..0e4b4d2aa2dd8 100644 --- a/source/extensions/filters/network/thrift_proxy/filters/BUILD +++ b/source/extensions/filters/network/thrift_proxy/filters/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "filter_config_interface", hdrs = ["filter_config.h"], deps = [ @@ -20,7 +20,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -29,7 +29,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "filter_interface", hdrs = ["filter.h"], deps = [ @@ -43,7 +43,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ @@ -51,7 +51,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "pass_through_filter_lib", hdrs = ["pass_through_filter.h"], deps = [ diff --git a/source/extensions/filters/network/thrift_proxy/router/BUILD b/source/extensions/filters/network/thrift_proxy/router/BUILD index 74a706741538d..cc5bd22a1b0c2 100644 --- a/source/extensions/filters/network/thrift_proxy/router/BUILD +++ b/source/extensions/filters/network/thrift_proxy/router/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -24,7 +24,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_interface", hdrs = ["router.h"], external_deps = ["abseil_optional"], @@ -34,7 +34,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_ratelimit_interface", hdrs = ["router_ratelimit.h"], deps = [ @@ -44,7 +44,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], @@ -71,7 +71,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "router_ratelimit_lib", srcs = ["router_ratelimit_impl.cc"], hdrs = ["router_ratelimit_impl.h"], diff --git a/source/extensions/filters/network/zookeeper_proxy/BUILD b/source/extensions/filters/network/zookeeper_proxy/BUILD index 301498c6465b7..a5e1084c2c496 100644 --- a/source/extensions/filters/network/zookeeper_proxy/BUILD +++ b/source/extensions/filters/network/zookeeper_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "proxy_lib", srcs = [ "decoder.cc", diff --git a/source/extensions/filters/udp/dns_filter/BUILD b/source/extensions/filters/udp/dns_filter/BUILD index 1d4f8e0ab1fb1..a3e49c53b5e56 100644 --- a/source/extensions/filters/udp/dns_filter/BUILD +++ b/source/extensions/filters/udp/dns_filter/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "dns_filter_lib", srcs = [ "dns_filter.cc", diff --git a/source/extensions/filters/udp/udp_proxy/BUILD b/source/extensions/filters/udp/udp_proxy/BUILD index 7b9efa4498a2f..c2b7aee769306 100644 --- a/source/extensions/filters/udp/udp_proxy/BUILD +++ b/source/extensions/filters/udp/udp_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "udp_proxy_filter_lib", srcs = ["udp_proxy_filter.cc"], hdrs = ["udp_proxy_filter.h"], diff --git a/source/extensions/grpc_credentials/BUILD b/source/extensions/grpc_credentials/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/grpc_credentials/BUILD +++ b/source/extensions/grpc_credentials/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/grpc_credentials/example/BUILD b/source/extensions/grpc_credentials/example/BUILD index 30025a7c046e7..f80834028f810 100644 --- a/source/extensions/grpc_credentials/example/BUILD +++ b/source/extensions/grpc_credentials/example/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -10,11 +10,17 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], external_deps = ["grpc"], + # Legacy test use. + visibility = [ + "//source/extensions:__subpackages__", + "//test/common/grpc:__subpackages__", + "//test/extensions:__subpackages__", + ], deps = [ "//include/envoy/grpc:google_grpc_creds_interface", "//include/envoy/registry", diff --git a/source/extensions/health_checkers/BUILD b/source/extensions/health_checkers/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/health_checkers/BUILD +++ b/source/extensions/health_checkers/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/health_checkers/redis/BUILD b/source/extensions/health_checkers/redis/BUILD index 3dd32163468ac..95e205d822149 100644 --- a/source/extensions/health_checkers/redis/BUILD +++ b/source/extensions/health_checkers/redis/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "redis", srcs = ["redis.cc"], hdrs = ["redis.h"], @@ -45,7 +45,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility", hdrs = ["utility.h"], deps = [ diff --git a/source/extensions/internal_redirect/BUILD b/source/extensions/internal_redirect/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/internal_redirect/BUILD +++ b/source/extensions/internal_redirect/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/internal_redirect/allow_listed_routes/BUILD b/source/extensions/internal_redirect/allow_listed_routes/BUILD index c2ee85a134ac9..1dc69578c92af 100644 --- a/source/extensions/internal_redirect/allow_listed_routes/BUILD +++ b/source/extensions/internal_redirect/allow_listed_routes/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "allow_listed_routes_lib", hdrs = ["allow_listed_routes.h"], deps = [ diff --git a/source/extensions/internal_redirect/previous_routes/BUILD b/source/extensions/internal_redirect/previous_routes/BUILD index 91f76aebc1353..bcab6ebd2be36 100644 --- a/source/extensions/internal_redirect/previous_routes/BUILD +++ b/source/extensions/internal_redirect/previous_routes/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "previous_routes_lib", srcs = ["previous_routes.cc"], hdrs = ["previous_routes.h"], diff --git a/source/extensions/internal_redirect/safe_cross_scheme/BUILD b/source/extensions/internal_redirect/safe_cross_scheme/BUILD index 50433bf8fb427..254a26af6fe7a 100644 --- a/source/extensions/internal_redirect/safe_cross_scheme/BUILD +++ b/source/extensions/internal_redirect/safe_cross_scheme/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "safe_cross_scheme_lib", hdrs = ["safe_cross_scheme.h"], deps = [ diff --git a/source/extensions/quic_listeners/quiche/BUILD b/source/extensions/quic_listeners/quiche/BUILD index eb2e1922e182f..c2e04e9f96c18 100644 --- a/source/extensions/quic_listeners/quiche/BUILD +++ b/source/extensions/quic_listeners/quiche/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_alarm_lib", srcs = ["envoy_quic_alarm.cc"], hdrs = ["envoy_quic_alarm.h"], @@ -23,7 +23,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_alarm_factory_lib", srcs = ["envoy_quic_alarm_factory.cc"], hdrs = ["envoy_quic_alarm_factory.h"], @@ -37,7 +37,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_connection_helper_lib", hdrs = ["envoy_quic_connection_helper.h"], tags = ["nofips"], @@ -49,7 +49,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_packet_writer_lib", srcs = ["envoy_quic_packet_writer.cc"], hdrs = ["envoy_quic_packet_writer.h"], @@ -61,7 +61,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_fake_proof_source_lib", hdrs = ["envoy_quic_fake_proof_source.h"], external_deps = ["quiche_quic_platform"], @@ -72,7 +72,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_proof_source_lib", srcs = ["envoy_quic_proof_source.cc"], hdrs = ["envoy_quic_proof_source.h"], @@ -90,7 +90,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_proof_verifier_lib", hdrs = ["envoy_quic_fake_proof_verifier.h"], external_deps = ["quiche_quic_platform"], @@ -101,7 +101,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "spdy_server_push_utils_for_envoy_lib", srcs = ["spdy_server_push_utils_for_envoy.cc"], tags = ["nofips"], @@ -112,7 +112,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_stream_lib", hdrs = ["envoy_quic_stream.h"], tags = ["nofips"], @@ -125,7 +125,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -141,7 +141,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_filter_manager_connection_lib", srcs = ["quic_filter_manager_connection_impl.cc"], hdrs = ["quic_filter_manager_connection_impl.h"], @@ -160,7 +160,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_server_session_lib", srcs = [ "envoy_quic_server_session.cc", @@ -184,7 +184,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_client_session_lib", srcs = [ "envoy_quic_client_session.cc", @@ -208,7 +208,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_io_handle_wrapper_lib", hdrs = ["quic_io_handle_wrapper.h"], deps = [ @@ -217,7 +217,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_connection_lib", srcs = ["envoy_quic_connection.cc"], hdrs = ["envoy_quic_connection.h"], @@ -232,7 +232,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_server_connection_lib", srcs = ["envoy_quic_server_connection.cc"], hdrs = ["envoy_quic_server_connection.h"], @@ -243,7 +243,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_client_connection_lib", srcs = ["envoy_quic_client_connection.cc"], hdrs = ["envoy_quic_client_connection.h"], @@ -257,7 +257,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_dispatcher_lib", srcs = ["envoy_quic_dispatcher.cc"], hdrs = ["envoy_quic_dispatcher.h"], @@ -274,13 +274,13 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_simulated_watermark_buffer_lib", hdrs = ["envoy_quic_simulated_watermark_buffer.h"], deps = ["//source/common/common:assert_lib"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "active_quic_listener_lib", srcs = ["active_quic_listener.cc"], hdrs = ["active_quic_listener.h"], @@ -301,11 +301,17 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "active_quic_listener_config_lib", srcs = ["active_quic_listener_config.cc"], hdrs = ["active_quic_listener_config.h"], tags = ["nofips"], + # TODO(#9953) this should be cleaned up + visibility = [ + "//source/extensions:__subpackages__", + "//test/extensions:__subpackages__", + "//test/server:__subpackages__", + ], deps = [ ":active_quic_listener_lib", "//include/envoy/registry", @@ -313,7 +319,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_utils_lib", srcs = ["envoy_quic_utils.cc"], hdrs = ["envoy_quic_utils.h"], @@ -347,7 +353,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_crypto_server_stream_lib", srcs = ["envoy_quic_crypto_server_stream.cc"], hdrs = ["envoy_quic_crypto_server_stream.h"], diff --git a/source/extensions/quic_listeners/quiche/platform/BUILD b/source/extensions/quic_listeners/quiche/platform/BUILD index 9c9857842e75c..74798ee8acfbe 100644 --- a/source/extensions/quic_listeners/quiche/platform/BUILD +++ b/source/extensions/quic_listeners/quiche/platform/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -33,7 +33,7 @@ envoy_package() # TODO: add build target for quic_platform_impl_lib -envoy_cc_library( +envoy_cc_extension_library( name = "flags_impl_lib", srcs = ["flags_impl.cc"], hdrs = [ @@ -47,7 +47,7 @@ envoy_cc_library( visibility = ["//visibility:public"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "string_utils_lib", srcs = ["string_utils.cc"], hdrs = ["string_utils.h"], @@ -59,7 +59,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "http2_platform_impl_lib", hdrs = [ "http2_arraysize_impl.h", @@ -85,14 +85,14 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_export_impl_lib", hdrs = ["quic_export_impl.h"], tags = ["nofips"], visibility = ["//visibility:public"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_logging_impl_lib", srcs = ["quic_logging_impl.cc"], hdrs = [ @@ -108,7 +108,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_base_impl_lib", srcs = [ "quic_mem_slice_impl.cc", @@ -160,7 +160,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_impl_lib", srcs = [ "quic_cert_utils_impl.cc", @@ -192,7 +192,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_mem_slice_span_impl_lib", srcs = ["quic_mem_slice_span_impl.cc"], hdrs = ["quic_mem_slice_span_impl.h"], @@ -209,7 +209,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_mem_slice_storage_impl_lib", srcs = ["quic_mem_slice_storage_impl.cc"], hdrs = ["quic_mem_slice_storage_impl.h"], @@ -229,7 +229,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quic_platform_udp_socket_impl_lib", hdrs = select({ "//bazel:linux": ["quic_udp_socket_platform_impl.h"], @@ -239,7 +239,7 @@ envoy_cc_library( tags = ["nofips"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "envoy_quic_clock_lib", srcs = ["envoy_quic_clock.cc"], hdrs = ["envoy_quic_clock.h"], @@ -251,7 +251,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quiche_common_platform_optional_impl_lib", hdrs = ["quiche_optional_impl.h"], external_deps = [ @@ -260,7 +260,7 @@ envoy_cc_library( visibility = ["//visibility:public"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quiche_common_platform_impl_lib", srcs = ["quiche_time_utils_impl.cc"], hdrs = [ @@ -286,7 +286,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "spdy_platform_impl_lib", hdrs = [ "spdy_arraysize_impl.h", @@ -319,21 +319,21 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "spdy_platform_unsafe_arena_impl_lib", hdrs = ["spdy_unsafe_arena_impl.h"], visibility = ["//visibility:public"], deps = ["@com_googlesource_quiche//:spdy_simple_arena_lib"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quiche_common_platform_export_impl_lib", hdrs = ["quiche_export_impl.h"], tags = ["nofips"], visibility = ["//visibility:public"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "quiche_common_platform_endian_impl_lib", hdrs = ["quiche_endian_impl.h"], tags = ["nofips"], diff --git a/source/extensions/resource_monitors/BUILD b/source/extensions/resource_monitors/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/resource_monitors/BUILD +++ b/source/extensions/resource_monitors/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/resource_monitors/common/BUILD b/source/extensions/resource_monitors/common/BUILD index 7e759d696abd0..6d9c092d27cb5 100644 --- a/source/extensions/resource_monitors/common/BUILD +++ b/source/extensions/resource_monitors/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], + # This resource monitoring library is considered core code. + visibility = ["//visibility:public"], deps = [ "//include/envoy/server:resource_monitor_config_interface", "//source/common/protobuf:utility_lib", diff --git a/source/extensions/resource_monitors/fixed_heap/BUILD b/source/extensions/resource_monitors/fixed_heap/BUILD index 4feb2a6e7cd2e..c633cc06e1801 100644 --- a/source/extensions/resource_monitors/fixed_heap/BUILD +++ b/source/extensions/resource_monitors/fixed_heap/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "fixed_heap_monitor", srcs = ["fixed_heap_monitor.cc"], hdrs = ["fixed_heap_monitor.h"], diff --git a/source/extensions/resource_monitors/injected_resource/BUILD b/source/extensions/resource_monitors/injected_resource/BUILD index 4b3702afffdf1..d87194ccd2309 100644 --- a/source/extensions/resource_monitors/injected_resource/BUILD +++ b/source/extensions/resource_monitors/injected_resource/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "injected_resource_monitor", srcs = ["injected_resource_monitor.cc"], hdrs = ["injected_resource_monitor.h"], diff --git a/source/extensions/retry/host/BUILD b/source/extensions/retry/host/BUILD index 06456dbbcb5e7..f11bd2e165fe5 100644 --- a/source/extensions/retry/host/BUILD +++ b/source/extensions/retry/host/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/retry/host/omit_canary_hosts/BUILD b/source/extensions/retry/host/omit_canary_hosts/BUILD index 1f4f6fed89a73..994d82a42478e 100644 --- a/source/extensions/retry/host/omit_canary_hosts/BUILD +++ b/source/extensions/retry/host/omit_canary_hosts/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "omit_canary_hosts_predicate_lib", hdrs = ["omit_canary_hosts.h"], deps = [ diff --git a/source/extensions/retry/host/omit_host_metadata/BUILD b/source/extensions/retry/host/omit_host_metadata/BUILD index f0e4013ecb941..749241137c92d 100644 --- a/source/extensions/retry/host/omit_host_metadata/BUILD +++ b/source/extensions/retry/host/omit_host_metadata/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "omit_host_metadata_predicate_lib", srcs = ["omit_host_metadata.cc"], hdrs = ["omit_host_metadata.h"], diff --git a/source/extensions/retry/host/previous_hosts/BUILD b/source/extensions/retry/host/previous_hosts/BUILD index 7ec06c64c7050..d89f3f605d3ec 100644 --- a/source/extensions/retry/host/previous_hosts/BUILD +++ b/source/extensions/retry/host/previous_hosts/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "previous_hosts_predicate_lib", hdrs = ["previous_hosts.h"], deps = [ diff --git a/source/extensions/retry/priority/BUILD b/source/extensions/retry/priority/BUILD index 06456dbbcb5e7..f11bd2e165fe5 100644 --- a/source/extensions/retry/priority/BUILD +++ b/source/extensions/retry/priority/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/retry/priority/previous_priorities/BUILD b/source/extensions/retry/priority/previous_priorities/BUILD index 65061e5740dac..8b381ff89f258 100644 --- a/source/extensions/retry/priority/previous_priorities/BUILD +++ b/source/extensions/retry/priority/previous_priorities/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "previous_priorities_lib", srcs = ["previous_priorities.cc"], hdrs = ["previous_priorities.h"], diff --git a/source/extensions/stat_sinks/BUILD b/source/extensions/stat_sinks/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/stat_sinks/BUILD +++ b/source/extensions/stat_sinks/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/stat_sinks/common/statsd/BUILD b/source/extensions/stat_sinks/common/statsd/BUILD index 378a7146234d1..1a0c7d4f8a3ef 100644 --- a/source/extensions/stat_sinks/common/statsd/BUILD +++ b/source/extensions/stat_sinks/common/statsd/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "statsd_lib", srcs = ["statsd.cc"], hdrs = ["statsd.h"], diff --git a/source/extensions/stat_sinks/hystrix/BUILD b/source/extensions/stat_sinks/hystrix/BUILD index 463576dd757cd..db527e18a2065 100644 --- a/source/extensions/stat_sinks/hystrix/BUILD +++ b/source/extensions/stat_sinks/hystrix/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -27,7 +27,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "hystrix_lib", srcs = ["hystrix.cc"], hdrs = ["hystrix.h"], diff --git a/source/extensions/stat_sinks/metrics_service/BUILD b/source/extensions/stat_sinks/metrics_service/BUILD index ecd35309b7fb2..0f2fb9ee28db6 100644 --- a/source/extensions/stat_sinks/metrics_service/BUILD +++ b/source/extensions/stat_sinks/metrics_service/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "metrics_service_grpc_lib", srcs = ["grpc_metrics_service_impl.cc"], hdrs = ["grpc_metrics_service_impl.h"], @@ -26,7 +26,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "metrics_proto_descriptors_lib", srcs = ["grpc_metrics_proto_descriptors.cc"], hdrs = ["grpc_metrics_proto_descriptors.h"], diff --git a/source/extensions/tracers/common/BUILD b/source/extensions/tracers/common/BUILD index f31e56bc9cd68..9112080211eee 100644 --- a/source/extensions/tracers/common/BUILD +++ b/source/extensions/tracers/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/tracers/common/ot/BUILD b/source/extensions/tracers/common/ot/BUILD index 16a0a36429052..76a51767f2067 100644 --- a/source/extensions/tracers/common/ot/BUILD +++ b/source/extensions/tracers/common/ot/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "opentracing_driver_lib", srcs = [ "opentracing_driver_impl.cc", diff --git a/source/extensions/tracers/datadog/BUILD b/source/extensions/tracers/datadog/BUILD index 325f4345a7170..49d1cb75acff6 100644 --- a/source/extensions/tracers/datadog/BUILD +++ b/source/extensions/tracers/datadog/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "datadog_tracer_lib", srcs = [ "datadog_tracer_impl.cc", diff --git a/source/extensions/tracers/dynamic_ot/BUILD b/source/extensions/tracers/dynamic_ot/BUILD index eb9cc5ee24c64..3b186fd958fc8 100644 --- a/source/extensions/tracers/dynamic_ot/BUILD +++ b/source/extensions/tracers/dynamic_ot/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "dynamic_opentracing_driver_lib", srcs = [ "dynamic_opentracing_driver_impl.cc", diff --git a/source/extensions/tracers/lightstep/BUILD b/source/extensions/tracers/lightstep/BUILD index 1fb5d0e30171c..9ec89c6c71971 100644 --- a/source/extensions/tracers/lightstep/BUILD +++ b/source/extensions/tracers/lightstep/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "lightstep_tracer_lib", srcs = [ "lightstep_tracer_impl.cc", diff --git a/source/extensions/tracers/opencensus/BUILD b/source/extensions/tracers/opencensus/BUILD index 3494746500a11..a5327d22102d5 100644 --- a/source/extensions/tracers/opencensus/BUILD +++ b/source/extensions/tracers/opencensus/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", "envoy_select_google_grpc", ) @@ -24,7 +24,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "opencensus_tracer_impl", srcs = ["opencensus_tracer_impl.cc"], hdrs = ["opencensus_tracer_impl.h"], diff --git a/source/extensions/tracers/xray/BUILD b/source/extensions/tracers/xray/BUILD index a186e661eaad2..e2b2a707011fe 100644 --- a/source/extensions/tracers/xray/BUILD +++ b/source/extensions/tracers/xray/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", "envoy_proto_library", ) @@ -17,7 +17,7 @@ envoy_proto_library( srcs = ["daemon.proto"], ) -envoy_cc_library( +envoy_cc_extension_library( name = "xray_lib", srcs = [ "daemon_broker.cc", diff --git a/source/extensions/tracers/zipkin/BUILD b/source/extensions/tracers/zipkin/BUILD index ee0328353fa06..70f5fd4af6956 100644 --- a/source/extensions/tracers/zipkin/BUILD +++ b/source/extensions/tracers/zipkin/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "zipkin_lib", srcs = [ "span_buffer.cc", diff --git a/source/extensions/transport_sockets/BUILD b/source/extensions/transport_sockets/BUILD index 06456dbbcb5e7..c3f77cd9bc822 100644 --- a/source/extensions/transport_sockets/BUILD +++ b/source/extensions/transport_sockets/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,9 +8,11 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "well_known_names", hdrs = ["well_known_names.h"], + # well known names files are public as long as they exist. + visibility = ["//visibility:public"], deps = [ "//source/common/singleton:const_singleton", ], diff --git a/source/extensions/transport_sockets/alts/BUILD b/source/extensions/transport_sockets/alts/BUILD index a667fac37e142..ea44dea23eccd 100644 --- a/source/extensions/transport_sockets/alts/BUILD +++ b/source/extensions/transport_sockets/alts/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -12,7 +12,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "grpc_tsi_wrapper", hdrs = [ "grpc_tsi.h", @@ -49,7 +49,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tsi_frame_protector", srcs = [ "tsi_frame_protector.cc", @@ -63,7 +63,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tsi_handshaker", srcs = [ "tsi_handshaker.cc", @@ -78,7 +78,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tsi_socket", srcs = [ "tsi_socket.cc", @@ -101,7 +101,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "noop_transport_socket_callbacks_lib", hdrs = ["noop_transport_socket_callbacks.h"], deps = [ diff --git a/source/extensions/transport_sockets/common/BUILD b/source/extensions/transport_sockets/common/BUILD index 8aacce0fdd157..7af5ddf77e5f2 100644 --- a/source/extensions/transport_sockets/common/BUILD +++ b/source/extensions/transport_sockets/common/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "passthrough_lib", srcs = ["passthrough.cc"], hdrs = ["passthrough.h"], diff --git a/source/extensions/transport_sockets/tap/BUILD b/source/extensions/transport_sockets/tap/BUILD index a241afa2df245..457fe5362002c 100644 --- a/source/extensions/transport_sockets/tap/BUILD +++ b/source/extensions/transport_sockets/tap/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "tap_config_interface", hdrs = ["tap_config.h"], deps = [ @@ -20,7 +20,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_config_impl", srcs = ["tap_config_impl.cc"], hdrs = ["tap_config_impl.h"], @@ -33,7 +33,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "tap_lib", srcs = ["tap.cc"], hdrs = ["tap.h"], diff --git a/source/extensions/transport_sockets/tls/BUILD b/source/extensions/transport_sockets/tls/BUILD index 6b14b5b0a8708..ffa9dadfbc887 100644 --- a/source/extensions/transport_sockets/tls/BUILD +++ b/source/extensions/transport_sockets/tls/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -26,7 +26,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "ssl_socket_lib", srcs = ["ssl_socket.cc"], hdrs = ["ssl_socket.h"], @@ -37,6 +37,8 @@ envoy_cc_library( "abseil_synchronization", "ssl", ], + # TLS is core functionality. + visibility = ["//visibility:public"], deps = [ ":context_config_lib", ":context_lib", @@ -55,13 +57,15 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "context_config_lib", srcs = ["context_config_impl.cc"], hdrs = ["context_config_impl.h"], external_deps = [ "ssl", ], + # TLS is core functionality. + visibility = ["//visibility:public"], deps = [ "//include/envoy/secret:secret_callbacks_interface", "//include/envoy/secret:secret_provider_interface", @@ -80,7 +84,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "context_lib", srcs = [ "context_impl.cc", @@ -95,6 +99,8 @@ envoy_cc_library( "abseil_synchronization", "ssl", ], + # TLS is core functionality. + visibility = ["//visibility:public"], deps = [ ":utility_lib", "//include/envoy/ssl:context_config_interface", @@ -119,7 +125,7 @@ envoy_cc_library( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], diff --git a/source/extensions/transport_sockets/tls/private_key/BUILD b/source/extensions/transport_sockets/tls/private_key/BUILD index 8b0563f5e06d1..dac439c7ad4c7 100644 --- a/source/extensions/transport_sockets/tls/private_key/BUILD +++ b/source/extensions/transport_sockets/tls/private_key/BUILD @@ -1,6 +1,6 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -8,7 +8,7 @@ licenses(["notice"]) # Apache 2 envoy_package() -envoy_cc_library( +envoy_cc_extension_library( name = "private_key_manager_lib", srcs = [ "private_key_manager_impl.cc", diff --git a/source/extensions/upstreams/http/http/BUILD b/source/extensions/upstreams/http/http/BUILD index f97f894d3294c..72b3dc56b8585 100644 --- a/source/extensions/upstreams/http/http/BUILD +++ b/source/extensions/upstreams/http/http/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "upstream_request_lib", srcs = [ "upstream_request.cc", diff --git a/source/extensions/upstreams/http/tcp/BUILD b/source/extensions/upstreams/http/tcp/BUILD index 82b0422fad705..477d833fbe5ac 100644 --- a/source/extensions/upstreams/http/tcp/BUILD +++ b/source/extensions/upstreams/http/tcp/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_library", + "envoy_cc_extension_library", "envoy_package", ) @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_library( +envoy_cc_extension_library( name = "upstream_request_lib", srcs = [ "upstream_request.cc", From 83d00545ca64f7d739fa17d1b79d6b88fdc5c00a Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Tue, 28 Jul 2020 14:56:08 -0400 Subject: [PATCH 2/9] and the rest Signed-off-by: Alyssa Wilk --- bazel/envoy_library.bzl | 7 ++++++- source/extensions/access_loggers/file/BUILD | 4 ++++ source/extensions/access_loggers/grpc/BUILD | 10 ++++++++++ source/extensions/common/crypto/BUILD | 5 +++++ source/extensions/filters/http/buffer/BUILD | 4 ++++ source/extensions/filters/http/cors/BUILD | 4 ++++ source/extensions/filters/http/grpc_http1_bridge/BUILD | 6 ++++++ source/extensions/filters/http/health_check/BUILD | 6 ++++++ source/extensions/filters/http/ip_tagging/BUILD | 4 ++++ source/extensions/filters/http/on_demand/BUILD | 5 +++++ source/extensions/filters/http/rbac/BUILD | 4 ++++ source/extensions/filters/http/router/BUILD | 2 ++ source/extensions/filters/listener/original_dst/BUILD | 4 ++++ .../extensions/filters/listener/proxy_protocol/BUILD | 5 +++++ source/extensions/filters/listener/tls_inspector/BUILD | 4 ++++ source/extensions/filters/network/echo/BUILD | 4 ++++ .../filters/network/http_connection_manager/BUILD | 2 ++ source/extensions/filters/network/redis_proxy/BUILD | 4 ++++ source/extensions/filters/network/tcp_proxy/BUILD | 2 ++ .../internal_redirect/allow_listed_routes/BUILD | 4 ++++ .../extensions/internal_redirect/previous_routes/BUILD | 4 ++++ .../internal_redirect/safe_cross_scheme/BUILD | 4 ++++ .../resource_monitors/injected_resource/BUILD | 4 ++++ source/extensions/stat_sinks/statsd/BUILD | 4 ++++ source/extensions/tracers/zipkin/BUILD | 4 ++++ source/extensions/transport_sockets/raw_buffer/BUILD | 2 ++ source/extensions/transport_sockets/tap/BUILD | 5 +++++ source/extensions/transport_sockets/tls/BUILD | 2 ++ 28 files changed, 118 insertions(+), 1 deletion(-) diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index c9373094de4ea..c180b6501853e 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -70,12 +70,17 @@ def envoy_cc_extension( undocumented = False, status = "stable", tags = [], + # TODO(#9953) //test/config_test:__pkg__ should probably be split up and removed. + # TODO(#9953) the config fuzz tests should be moved somewhere local and //test/config_test and //test/server removed. + extra_visibility = [], + visibility = ["//source/extensions:__subpackages__", "//test/extensions:__subpackages__", "//source/exe:__pkg__", "//test/config_test:__pkg__", "//test/server:__pkg__", "//test/server/config_validation:__pkg__"], **kwargs): + visibility = visibility + extra_visibility if security_posture not in EXTENSION_SECURITY_POSTURES: fail("Unknown extension security posture: " + security_posture) if status not in EXTENSION_STATUS_VALUES: fail("Unknown extension status: " + status) - envoy_cc_library(name, tags = tags, **kwargs) + envoy_cc_library(name, tags = tags, visibility = visibility, **kwargs) def envoy_cc_extension_library( name, diff --git a/source/extensions/access_loggers/file/BUILD b/source/extensions/access_loggers/file/BUILD index 25b20e8c3a8be..792662effcf52 100644 --- a/source/extensions/access_loggers/file/BUILD +++ b/source/extensions/access_loggers/file/BUILD @@ -27,6 +27,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) determine if this is core or should be cleaned up. + extra_visibility = [ + "//test:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ ":file_access_log_lib", diff --git a/source/extensions/access_loggers/grpc/BUILD b/source/extensions/access_loggers/grpc/BUILD index f61590ff2352c..4dfd98bea4243 100644 --- a/source/extensions/access_loggers/grpc/BUILD +++ b/source/extensions/access_loggers/grpc/BUILD @@ -97,6 +97,11 @@ envoy_cc_extension( name = "http_config", srcs = ["http_config.cc"], hdrs = ["http_config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/common/access_log:__subpackages__", + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ ":config_utils", @@ -114,6 +119,11 @@ envoy_cc_extension( name = "tcp_config", srcs = ["tcp_config.cc"], hdrs = ["tcp_config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + "//test/common/access_log:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ ":config_utils", diff --git a/source/extensions/common/crypto/BUILD b/source/extensions/common/crypto/BUILD index 836c8320a5236..339ca59dc3bfa 100644 --- a/source/extensions/common/crypto/BUILD +++ b/source/extensions/common/crypto/BUILD @@ -21,6 +21,11 @@ envoy_cc_extension( external_deps = [ "ssl", ], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//test/common/crypto:__subpackages__", + "//test/common/config:__subpackages__", + ], security_posture = "unknown", undocumented = True, deps = [ diff --git a/source/extensions/filters/http/buffer/BUILD b/source/extensions/filters/http/buffer/BUILD index d5fc6a345b6b5..c4ee4b6291f43 100644 --- a/source/extensions/filters/http/buffer/BUILD +++ b/source/extensions/filters/http/buffer/BUILD @@ -37,6 +37,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//test:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/cors/BUILD b/source/extensions/filters/http/cors/BUILD index b937ba24f5cbf..91b5eba72316e 100644 --- a/source/extensions/filters/http/cors/BUILD +++ b/source/extensions/filters/http/cors/BUILD @@ -31,6 +31,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/grpc_http1_bridge/BUILD b/source/extensions/filters/http/grpc_http1_bridge/BUILD index 92e298de4a1ba..31007b6596538 100644 --- a/source/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_bridge/BUILD @@ -33,6 +33,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//source/exe:__pkg__", + "//test/server:__subpackages__", + "//test/integration:__subpackages__", + ], security_posture = "unknown", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/health_check/BUILD b/source/extensions/filters/http/health_check/BUILD index 95e5348c2caf2..fcbf71c683b9a 100644 --- a/source/extensions/filters/http/health_check/BUILD +++ b/source/extensions/filters/http/health_check/BUILD @@ -37,6 +37,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + "//test/common/filter/http:__subpackages__", + "//test/server:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/ip_tagging/BUILD b/source/extensions/filters/http/ip_tagging/BUILD index b9e176fef405c..3bb925b06c20e 100644 --- a/source/extensions/filters/http/ip_tagging/BUILD +++ b/source/extensions/filters/http/ip_tagging/BUILD @@ -33,6 +33,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/on_demand/BUILD b/source/extensions/filters/http/on_demand/BUILD index 2d1f60f44301a..4951b9799f444 100644 --- a/source/extensions/filters/http/on_demand/BUILD +++ b/source/extensions/filters/http/on_demand/BUILD @@ -30,6 +30,11 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) classify and clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + "//test/common/access_log:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/rbac/BUILD b/source/extensions/filters/http/rbac/BUILD index 10fa53b1a8cbe..0540eb8c8148d 100644 --- a/source/extensions/filters/http/rbac/BUILD +++ b/source/extensions/filters/http/rbac/BUILD @@ -13,6 +13,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/http/router/BUILD b/source/extensions/filters/http/router/BUILD index ab7487d00b6a2..ff3b67ad53569 100644 --- a/source/extensions/filters/http/router/BUILD +++ b/source/extensions/filters/http/router/BUILD @@ -16,6 +16,8 @@ envoy_cc_extension( srcs = ["config.cc"], hdrs = ["config.h"], security_posture = "robust_to_untrusted_downstream", + # This is core Envoy config. + visibility = ["//visibility:public"], deps = [ "//include/envoy/registry", "//source/common/router:router_lib", diff --git a/source/extensions/filters/listener/original_dst/BUILD b/source/extensions/filters/listener/original_dst/BUILD index 1b54a0c157cc2..088eb7f1828de 100644 --- a/source/extensions/filters/listener/original_dst/BUILD +++ b/source/extensions/filters/listener/original_dst/BUILD @@ -28,6 +28,10 @@ envoy_cc_extension_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ ":original_dst_lib", diff --git a/source/extensions/filters/listener/proxy_protocol/BUILD b/source/extensions/filters/listener/proxy_protocol/BUILD index 01e4ff08af197..e9f1084a21f3a 100644 --- a/source/extensions/filters/listener/proxy_protocol/BUILD +++ b/source/extensions/filters/listener/proxy_protocol/BUILD @@ -18,6 +18,7 @@ envoy_cc_extension_library( "proxy_protocol.h", "proxy_protocol_header.h", ], + visibility = ["//visibility:public"], deps = [ "//include/envoy/event:dispatcher_interface", "//include/envoy/network:filter_interface", @@ -38,6 +39,10 @@ envoy_cc_extension_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/listener/tls_inspector/BUILD b/source/extensions/filters/listener/tls_inspector/BUILD index c751c53156a47..732b80f2f879d 100644 --- a/source/extensions/filters/listener/tls_inspector/BUILD +++ b/source/extensions/filters/listener/tls_inspector/BUILD @@ -32,6 +32,10 @@ envoy_cc_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", diff --git a/source/extensions/filters/network/echo/BUILD b/source/extensions/filters/network/echo/BUILD index 0babbd8a1f3a3..9dd5899defa02 100644 --- a/source/extensions/filters/network/echo/BUILD +++ b/source/extensions/filters/network/echo/BUILD @@ -28,6 +28,10 @@ envoy_cc_extension_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + # TODO(#9953) move echo integration test to extensions. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "unknown", deps = [ ":echo", diff --git a/source/extensions/filters/network/http_connection_manager/BUILD b/source/extensions/filters/network/http_connection_manager/BUILD index 5d03f03ecc4aa..03c0a1538b9c6 100644 --- a/source/extensions/filters/network/http_connection_manager/BUILD +++ b/source/extensions/filters/network/http_connection_manager/BUILD @@ -17,6 +17,8 @@ envoy_cc_extension( srcs = ["config.cc"], hdrs = ["config.h"], security_posture = "robust_to_untrusted_downstream", + # This is core Envoy config. + visibility = ["//visibility:public"], deps = [ "//include/envoy/config:config_provider_manager_interface", "//include/envoy/filesystem:filesystem_interface", diff --git a/source/extensions/filters/network/redis_proxy/BUILD b/source/extensions/filters/network/redis_proxy/BUILD index f605d4d4151a2..6d3a33812a316 100644 --- a/source/extensions/filters/network/redis_proxy/BUILD +++ b/source/extensions/filters/network/redis_proxy/BUILD @@ -120,6 +120,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "requires_trusted_downstream_and_upstream", deps = [ "//include/envoy/upstream:upstream_interface", diff --git a/source/extensions/filters/network/tcp_proxy/BUILD b/source/extensions/filters/network/tcp_proxy/BUILD index 312b3233b10d7..30380940f8b58 100644 --- a/source/extensions/filters/network/tcp_proxy/BUILD +++ b/source/extensions/filters/network/tcp_proxy/BUILD @@ -16,6 +16,8 @@ envoy_cc_extension( srcs = ["config.cc"], hdrs = ["config.h"], security_posture = "robust_to_untrusted_downstream", + # This is core Envoy config. + visibility = ["//visibility:public"], deps = [ "//include/envoy/registry", "//source/common/tcp_proxy", diff --git a/source/extensions/internal_redirect/allow_listed_routes/BUILD b/source/extensions/internal_redirect/allow_listed_routes/BUILD index 1dc69578c92af..7e8d54ccb2f97 100644 --- a/source/extensions/internal_redirect/allow_listed_routes/BUILD +++ b/source/extensions/internal_redirect/allow_listed_routes/BUILD @@ -24,6 +24,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up by moving the redirect test to extensions. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":allow_listed_routes_lib", diff --git a/source/extensions/internal_redirect/previous_routes/BUILD b/source/extensions/internal_redirect/previous_routes/BUILD index bcab6ebd2be36..1156aac277ebf 100644 --- a/source/extensions/internal_redirect/previous_routes/BUILD +++ b/source/extensions/internal_redirect/previous_routes/BUILD @@ -24,6 +24,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up by moving the redirect test to extensions. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":previous_routes_lib", diff --git a/source/extensions/internal_redirect/safe_cross_scheme/BUILD b/source/extensions/internal_redirect/safe_cross_scheme/BUILD index 254a26af6fe7a..60c6f7bc20fd3 100644 --- a/source/extensions/internal_redirect/safe_cross_scheme/BUILD +++ b/source/extensions/internal_redirect/safe_cross_scheme/BUILD @@ -23,6 +23,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up by moving the redirect test to extensions. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":safe_cross_scheme_lib", diff --git a/source/extensions/resource_monitors/injected_resource/BUILD b/source/extensions/resource_monitors/injected_resource/BUILD index d87194ccd2309..c9be4dd581628 100644 --- a/source/extensions/resource_monitors/injected_resource/BUILD +++ b/source/extensions/resource_monitors/injected_resource/BUILD @@ -26,6 +26,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + ], security_posture = "data_plane_agnostic", status = "alpha", deps = [ diff --git a/source/extensions/stat_sinks/statsd/BUILD b/source/extensions/stat_sinks/statsd/BUILD index a9c862e12e8b1..b9f8b7270a96a 100644 --- a/source/extensions/stat_sinks/statsd/BUILD +++ b/source/extensions/stat_sinks/statsd/BUILD @@ -14,6 +14,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//test/server:__subpackages__", + ], security_posture = "data_plane_agnostic", deps = [ "//include/envoy/registry", diff --git a/source/extensions/tracers/zipkin/BUILD b/source/extensions/tracers/zipkin/BUILD index 70f5fd4af6956..e9b067664f3d2 100644 --- a/source/extensions/tracers/zipkin/BUILD +++ b/source/extensions/tracers/zipkin/BUILD @@ -67,6 +67,10 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # Legacy test use. TODO(#9953) clean up. + extra_visibility = [ + "//test/server:__subpackages__", + ], security_posture = "robust_to_untrusted_downstream", deps = [ ":zipkin_lib", diff --git a/source/extensions/transport_sockets/raw_buffer/BUILD b/source/extensions/transport_sockets/raw_buffer/BUILD index 4d5bdacbe88cf..179ca04883f83 100644 --- a/source/extensions/transport_sockets/raw_buffer/BUILD +++ b/source/extensions/transport_sockets/raw_buffer/BUILD @@ -15,6 +15,8 @@ envoy_cc_extension( srcs = ["config.cc"], hdrs = ["config.h"], security_posture = "requires_trusted_downstream_and_upstream", + # This is core Envoy config. + visibility = ["//visibility:public"], deps = [ "//include/envoy/network:transport_socket_interface", "//include/envoy/registry", diff --git a/source/extensions/transport_sockets/tap/BUILD b/source/extensions/transport_sockets/tap/BUILD index 457fe5362002c..2a4cb80b899d6 100644 --- a/source/extensions/transport_sockets/tap/BUILD +++ b/source/extensions/transport_sockets/tap/BUILD @@ -51,6 +51,11 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + # TODO(#9953) clean up. + extra_visibility = [ + "//test/integration:__subpackages__", + "//test/common/access_log:__subpackages__", + ], security_posture = "requires_trusted_downstream_and_upstream", status = "alpha", deps = [ diff --git a/source/extensions/transport_sockets/tls/BUILD b/source/extensions/transport_sockets/tls/BUILD index ffa9dadfbc887..6d8cfa4c2c478 100644 --- a/source/extensions/transport_sockets/tls/BUILD +++ b/source/extensions/transport_sockets/tls/BUILD @@ -16,6 +16,8 @@ envoy_cc_extension( srcs = ["config.cc"], hdrs = ["config.h"], security_posture = "robust_to_untrusted_downstream_and_upstream", + # TLS is core functionality. + visibility = ["//visibility:public"], deps = [ ":ssl_socket_lib", "//include/envoy/network:transport_socket_interface", From 0fd2556308b44f3312bed8978e8d6fc80c0b5eae Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Wed, 29 Jul 2020 08:24:17 -0400 Subject: [PATCH 3/9] improvements for downstream Signed-off-by: Alyssa Wilk --- BUILD | 25 +++++++++++++++++++++++++ bazel/envoy_library.bzl | 6 ++---- docs/root/version_history/current.rst | 2 ++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/BUILD b/BUILD index 4dc2cadee42d0..cbe4a80382fae 100644 --- a/BUILD +++ b/BUILD @@ -4,3 +4,28 @@ exports_files([ "VERSION", ".clang-format", ]) + +# These two definitions exist to help reduce Envoy upstream core code depending on extensions. +# To avoid visibility problems, one can replace the package lists below with "//visibility:public" +# +# TODO(#9953) //test/config_test:__pkg__ should probably be split up and removed. +# TODO(#9953) the config fuzz tests should be moved somewhere local and //test/config_test and //test/server removed. +package_group( + name = "extension_config", + packages = [ + "//source/exe", + "//source/extensions/...", + "//test/config_test", + "//test/extensions/...", + "//test/server", + "//test/server/config_validation", + ], +) + +package_group( + name = "extension_library", + packages = [ + "//source/extensions/...", + "//test/extensions/...", + ], +) diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index c180b6501853e..68ad0b7ec6517 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -70,10 +70,8 @@ def envoy_cc_extension( undocumented = False, status = "stable", tags = [], - # TODO(#9953) //test/config_test:__pkg__ should probably be split up and removed. - # TODO(#9953) the config fuzz tests should be moved somewhere local and //test/config_test and //test/server removed. extra_visibility = [], - visibility = ["//source/extensions:__subpackages__", "//test/extensions:__subpackages__", "//source/exe:__pkg__", "//test/config_test:__pkg__", "//test/server:__pkg__", "//test/server/config_validation:__pkg__"], + visibility = ["//:extension_config"], **kwargs): visibility = visibility + extra_visibility if security_posture not in EXTENSION_SECURITY_POSTURES: @@ -87,7 +85,7 @@ def envoy_cc_extension_library( srcs = [], hdrs = [], copts = [], - visibility = ["//source/extensions:__subpackages__", "//test/extensions:__subpackages__"], + visibility = ["//:extension_library"], external_deps = [], tcmalloc_dep = None, repository = "", diff --git a/docs/root/version_history/current.rst b/docs/root/version_history/current.rst index de0307a2c4bfc..cd1a1ddcf642b 100644 --- a/docs/root/version_history/current.rst +++ b/docs/root/version_history/current.rst @@ -5,6 +5,8 @@ Incompatible Behavior Changes ----------------------------- *Changes that are expected to cause an incompatibility if applicable; deployment changes are likely required* +* build: added visibility rules for upstream. If these cause visibility related breakage, see notes in //BUILD. + Minor Behavior Changes ---------------------- *Changes that may cause incompatibilities for some users, but should not for most* From 1b46b1102e28310f02215aced6831f5abc7b48ed Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Thu, 30 Jul 2020 15:09:50 -0400 Subject: [PATCH 4/9] package Signed-off-by: Alyssa Wilk --- bazel/envoy_build_system.bzl | 3 ++ bazel/envoy_library.bzl | 28 ---------- source/common/http/conn_manager_impl.cc | 8 +-- source/extensions/access_loggers/BUILD | 8 +-- source/extensions/access_loggers/common/BUILD | 8 +-- source/extensions/access_loggers/file/BUILD | 8 +-- source/extensions/access_loggers/grpc/BUILD | 18 +++---- source/extensions/clusters/BUILD | 8 +-- source/extensions/clusters/aggregate/BUILD | 4 +- .../clusters/dynamic_forward_proxy/BUILD | 4 +- source/extensions/clusters/redis/BUILD | 10 ++-- source/extensions/common/BUILD | 8 +-- source/extensions/common/aws/BUILD | 20 +++---- source/extensions/common/crypto/BUILD | 4 +- .../common/dynamic_forward_proxy/BUILD | 14 ++--- source/extensions/common/proxy_protocol/BUILD | 8 +-- source/extensions/common/redis/BUILD | 10 ++-- source/extensions/common/sqlutils/BUILD | 8 +-- source/extensions/common/tap/BUILD | 16 +++--- source/extensions/common/wasm/BUILD | 14 ++--- source/extensions/common/wasm/null/BUILD | 12 ++--- source/extensions/common/wasm/v8/BUILD | 8 +-- .../compression/common/compressor/BUILD | 8 +-- .../compression/common/decompressor/BUILD | 8 +-- .../extensions/compression/gzip/common/BUILD | 8 +-- .../compression/gzip/compressor/BUILD | 8 +-- .../compression/gzip/decompressor/BUILD | 8 +-- source/extensions/filters/common/expr/BUILD | 10 ++-- .../extensions/filters/common/ext_authz/BUILD | 14 ++--- source/extensions/filters/common/fault/BUILD | 8 +-- source/extensions/filters/common/lua/BUILD | 10 ++-- .../filters/common/original_src/BUILD | 10 ++-- .../extensions/filters/common/ratelimit/BUILD | 12 ++--- source/extensions/filters/common/rbac/BUILD | 14 ++--- source/extensions/filters/http/BUILD | 8 +-- .../filters/http/adaptive_concurrency/BUILD | 8 +-- .../adaptive_concurrency/controller/BUILD | 8 +-- .../filters/http/admission_control/BUILD | 4 +- .../http/admission_control/evaluators/BUILD | 8 +-- .../extensions/filters/http/aws_lambda/BUILD | 8 +-- .../filters/http/aws_request_signing/BUILD | 8 +-- source/extensions/filters/http/buffer/BUILD | 8 +-- source/extensions/filters/http/cache/BUILD | 14 ++--- .../http/cache/simple_http_cache/BUILD | 4 +- source/extensions/filters/http/common/BUILD | 14 ++--- .../filters/http/common/compressor/BUILD | 8 +-- .../extensions/filters/http/compressor/BUILD | 8 +-- source/extensions/filters/http/cors/BUILD | 8 +-- source/extensions/filters/http/csrf/BUILD | 8 +-- .../filters/http/decompressor/BUILD | 8 +-- .../filters/http/dynamic_forward_proxy/BUILD | 8 +-- source/extensions/filters/http/dynamo/BUILD | 12 ++--- .../extensions/filters/http/ext_authz/BUILD | 8 +-- source/extensions/filters/http/fault/BUILD | 8 +-- .../filters/http/grpc_http1_bridge/BUILD | 8 +-- .../http/grpc_http1_reverse_bridge/BUILD | 8 +-- .../filters/http/grpc_json_transcoder/BUILD | 12 ++--- .../extensions/filters/http/grpc_stats/BUILD | 4 +- source/extensions/filters/http/grpc_web/BUILD | 8 +-- source/extensions/filters/http/gzip/BUILD | 8 +-- .../filters/http/header_to_metadata/BUILD | 8 +-- .../filters/http/health_check/BUILD | 8 +-- .../extensions/filters/http/ip_tagging/BUILD | 8 +-- .../extensions/filters/http/jwt_authn/BUILD | 20 +++---- source/extensions/filters/http/lua/BUILD | 10 ++-- .../extensions/filters/http/on_demand/BUILD | 8 +-- .../filters/http/original_src/BUILD | 10 ++-- .../extensions/filters/http/ratelimit/BUILD | 8 +-- source/extensions/filters/http/rbac/BUILD | 8 +-- source/extensions/filters/http/router/BUILD | 4 +- source/extensions/filters/http/squash/BUILD | 8 +-- source/extensions/filters/http/tap/BUILD | 12 ++--- source/extensions/filters/listener/BUILD | 8 +-- .../filters/listener/http_inspector/BUILD | 8 +-- .../filters/listener/original_dst/BUILD | 8 +-- .../filters/listener/original_src/BUILD | 10 ++-- .../filters/listener/proxy_protocol/BUILD | 8 +-- .../filters/listener/tls_inspector/BUILD | 4 +- source/extensions/filters/network/BUILD | 8 +-- .../filters/network/client_ssl_auth/BUILD | 8 +-- .../extensions/filters/network/common/BUILD | 10 ++-- .../filters/network/common/redis/BUILD | 22 ++++---- .../filters/network/direct_response/BUILD | 8 +-- .../filters/network/dubbo_proxy/BUILD | 34 ++++++------ .../filters/network/dubbo_proxy/filters/BUILD | 14 ++--- .../filters/network/dubbo_proxy/router/BUILD | 16 +++--- source/extensions/filters/network/echo/BUILD | 8 +-- .../filters/network/ext_authz/BUILD | 8 +-- .../network/http_connection_manager/BUILD | 4 +- source/extensions/filters/network/kafka/BUILD | 30 +++++------ .../filters/network/local_ratelimit/BUILD | 8 +-- .../filters/network/mongo_proxy/BUILD | 20 +++---- .../filters/network/mysql_proxy/BUILD | 8 +-- .../filters/network/postgres_proxy/BUILD | 8 +-- .../filters/network/ratelimit/BUILD | 8 +-- source/extensions/filters/network/rbac/BUILD | 8 +-- .../filters/network/redis_proxy/BUILD | 22 ++++---- .../filters/network/rocketmq_proxy/BUILD | 24 ++++----- .../network/rocketmq_proxy/router/BUILD | 12 ++--- .../filters/network/sni_cluster/BUILD | 8 +-- .../network/sni_dynamic_forward_proxy/BUILD | 8 +-- .../filters/network/tcp_proxy/BUILD | 4 +- .../filters/network/thrift_proxy/BUILD | 52 +++++++++---------- .../network/thrift_proxy/filters/BUILD | 16 +++--- .../thrift_proxy/filters/ratelimit/BUILD | 4 +- .../filters/network/thrift_proxy/router/BUILD | 14 ++--- .../filters/network/zookeeper_proxy/BUILD | 8 +-- .../extensions/filters/udp/dns_filter/BUILD | 8 +-- source/extensions/filters/udp/udp_proxy/BUILD | 8 +-- source/extensions/grpc_credentials/BUILD | 8 +-- .../extensions/grpc_credentials/aws_iam/BUILD | 4 +- .../extensions/grpc_credentials/example/BUILD | 8 +-- .../file_based_metadata/BUILD | 4 +- source/extensions/health_checkers/BUILD | 8 +-- source/extensions/health_checkers/redis/BUILD | 10 ++-- source/extensions/internal_redirect/BUILD | 8 +-- .../allow_listed_routes/BUILD | 8 +-- .../internal_redirect/previous_routes/BUILD | 8 +-- .../internal_redirect/safe_cross_scheme/BUILD | 8 +-- source/extensions/quic_listeners/quiche/BUILD | 52 +++++++++---------- .../quic_listeners/quiche/platform/BUILD | 40 +++++++------- source/extensions/resource_monitors/BUILD | 8 +-- .../extensions/resource_monitors/common/BUILD | 8 +-- .../resource_monitors/fixed_heap/BUILD | 8 +-- .../resource_monitors/injected_resource/BUILD | 8 +-- source/extensions/retry/host/BUILD | 8 +-- .../retry/host/omit_canary_hosts/BUILD | 8 +-- .../retry/host/omit_host_metadata/BUILD | 8 +-- .../retry/host/previous_hosts/BUILD | 8 +-- source/extensions/retry/priority/BUILD | 8 +-- .../retry/priority/previous_priorities/BUILD | 8 +-- source/extensions/stat_sinks/BUILD | 8 +-- .../extensions/stat_sinks/common/statsd/BUILD | 8 +-- source/extensions/stat_sinks/dog_statsd/BUILD | 4 +- source/extensions/stat_sinks/hystrix/BUILD | 8 +-- .../stat_sinks/metrics_service/BUILD | 10 ++-- source/extensions/stat_sinks/statsd/BUILD | 4 +- source/extensions/tracers/common/BUILD | 8 +-- source/extensions/tracers/common/ot/BUILD | 8 +-- source/extensions/tracers/datadog/BUILD | 8 +-- source/extensions/tracers/dynamic_ot/BUILD | 8 +-- source/extensions/tracers/lightstep/BUILD | 8 +-- source/extensions/tracers/opencensus/BUILD | 8 +-- source/extensions/tracers/xray/BUILD | 8 +-- source/extensions/tracers/zipkin/BUILD | 8 +-- source/extensions/transport_sockets/BUILD | 8 +-- .../extensions/transport_sockets/alts/BUILD | 16 +++--- .../extensions/transport_sockets/common/BUILD | 8 +-- .../transport_sockets/proxy_protocol/BUILD | 4 +- .../transport_sockets/raw_buffer/BUILD | 4 +- source/extensions/transport_sockets/tap/BUILD | 12 ++--- source/extensions/transport_sockets/tls/BUILD | 14 ++--- .../transport_sockets/tls/private_key/BUILD | 8 +-- .../extensions/upstreams/http/generic/BUILD | 4 +- source/extensions/upstreams/http/http/BUILD | 8 +-- source/extensions/upstreams/http/tcp/BUILD | 8 +-- tools/code_format/envoy_build_fixer.py | 30 +++++++---- 157 files changed, 800 insertions(+), 815 deletions(-) diff --git a/bazel/envoy_build_system.bzl b/bazel/envoy_build_system.bzl index e491289ca1bf8..81cfe2e042e21 100644 --- a/bazel/envoy_build_system.bzl +++ b/bazel/envoy_build_system.bzl @@ -37,6 +37,9 @@ load( def envoy_package(): native.package(default_visibility = ["//visibility:public"]) +def envoy_extension_package(): + native.package(default_visibility = ["//:extension_library"]) + # A genrule variant that can output a directory. This is useful when doing things like # generating a fuzz corpus mechanically. def _envoy_directory_genrule_impl(ctx): diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index 68ad0b7ec6517..5b7832d8f6df8 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -80,34 +80,6 @@ def envoy_cc_extension( fail("Unknown extension status: " + status) envoy_cc_library(name, tags = tags, visibility = visibility, **kwargs) -def envoy_cc_extension_library( - name, - srcs = [], - hdrs = [], - copts = [], - visibility = ["//:extension_library"], - external_deps = [], - tcmalloc_dep = None, - repository = "", - tags = [], - deps = [], - strip_include_prefix = None, - textual_hdrs = None): - envoy_cc_library( - name = name, - srcs = srcs, - hdrs = hdrs, - copts = copts, - visibility = visibility, - external_deps = external_deps, - tcmalloc_dep = tcmalloc_dep, - repository = repository, - tags = tags, - deps = deps, - strip_include_prefix = strip_include_prefix, - textual_hdrs = textual_hdrs, - ) - # Envoy C++ library targets should be specified with this function. def envoy_cc_library( name, diff --git a/source/common/http/conn_manager_impl.cc b/source/common/http/conn_manager_impl.cc index 4c11cdd2d1102..493c0e2d60cca 100644 --- a/source/common/http/conn_manager_impl.cc +++ b/source/common/http/conn_manager_impl.cc @@ -693,10 +693,10 @@ void ConnectionManagerImpl::ActiveStream::onStreamMaxDurationReached() { ENVOY_STREAM_LOG(debug, "Stream max duration time reached", *this); connection_manager_.stats_.named_.downstream_rq_max_duration_reached_.inc(); if (Runtime::runtimeFeatureEnabled("envoy.reloadable_features.allow_response_for_timeout")) { - sendLocalReply( - request_headers_ != nullptr && Grpc::Common::isGrpcRequestHeaders(*request_headers_), - Http::Code::RequestTimeout, "downstream duration timeout", nullptr, state_.is_head_request_, - absl::nullopt, StreamInfo::ResponseCodeDetails::get().MaxDurationTimeout); + sendLocalReply(request_headers_ != nullptr && + Grpc::Common::isGrpcRequestHeaders(*request_headers_), + Http::Code::RequestTimeout, "downstream duration timeout", nullptr, + absl::nullopt, StreamInfo::ResponseCodeDetails::get().MaxDurationTimeout); } else { stream_info_.setResponseCodeDetails(StreamInfo::ResponseCodeDetails::get().MaxDurationTimeout); connection_manager_.doEndStream(*this); diff --git a/source/extensions/access_loggers/BUILD b/source/extensions/access_loggers/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/access_loggers/BUILD +++ b/source/extensions/access_loggers/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/access_loggers/common/BUILD b/source/extensions/access_loggers/common/BUILD index d600f57df4e88..1afb1f270a429 100644 --- a/source/extensions/access_loggers/common/BUILD +++ b/source/extensions/access_loggers/common/BUILD @@ -1,16 +1,16 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Base class for implementations of AccessLog::Instance. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "access_log_base", srcs = ["access_log_base.cc"], hdrs = ["access_log_base.h"], diff --git a/source/extensions/access_loggers/file/BUILD b/source/extensions/access_loggers/file/BUILD index 792662effcf52..93e2ad5b5c614 100644 --- a/source/extensions/access_loggers/file/BUILD +++ b/source/extensions/access_loggers/file/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Access log implementation that writes to a file. # Public docs: docs/root/configuration/access_log.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "file_access_log_lib", srcs = ["file_access_log_impl.cc"], hdrs = ["file_access_log_impl.h"], diff --git a/source/extensions/access_loggers/grpc/BUILD b/source/extensions/access_loggers/grpc/BUILD index 4dfd98bea4243..0592f6c34b19c 100644 --- a/source/extensions/access_loggers/grpc/BUILD +++ b/source/extensions/access_loggers/grpc/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Access log implementation that writes to a gRPC service. # Public docs: TODO(rodaine): Docs needed. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "config_utils", srcs = ["config_utils.cc"], hdrs = ["config_utils.h"], @@ -24,7 +24,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "grpc_access_log_lib", srcs = ["grpc_access_log_impl.cc"], hdrs = ["grpc_access_log_impl.h"], @@ -44,7 +44,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "grpc_access_log_utils", srcs = ["grpc_access_log_utils.cc"], hdrs = ["grpc_access_log_utils.h"], @@ -58,7 +58,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "http_grpc_access_log_lib", srcs = ["http_grpc_access_log_impl.cc"], hdrs = ["http_grpc_access_log_impl.h"], @@ -71,7 +71,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tcp_grpc_access_log_lib", srcs = ["tcp_grpc_access_log_impl.cc"], hdrs = ["tcp_grpc_access_log_impl.h"], @@ -83,7 +83,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "grpc_access_log_proto_descriptors_lib", srcs = ["grpc_access_log_proto_descriptors.cc"], hdrs = ["grpc_access_log_proto_descriptors.h"], diff --git a/source/extensions/clusters/BUILD b/source/extensions/clusters/BUILD index 523f5c3cb0bcc..46709ec0c238c 100644 --- a/source/extensions/clusters/BUILD +++ b/source/extensions/clusters/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/clusters/aggregate/BUILD b/source/extensions/clusters/aggregate/BUILD index d6c7d4d1a515b..d23dd525625af 100644 --- a/source/extensions/clusters/aggregate/BUILD +++ b/source/extensions/clusters/aggregate/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "cluster", diff --git a/source/extensions/clusters/dynamic_forward_proxy/BUILD b/source/extensions/clusters/dynamic_forward_proxy/BUILD index 744f1e1bfca8a..0dc4780118e1d 100644 --- a/source/extensions/clusters/dynamic_forward_proxy/BUILD +++ b/source/extensions/clusters/dynamic_forward_proxy/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "cluster", diff --git a/source/extensions/clusters/redis/BUILD b/source/extensions/clusters/redis/BUILD index 65717fa8a7d2c..784103719061e 100644 --- a/source/extensions/clusters/redis/BUILD +++ b/source/extensions/clusters/redis/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "crc16_lib", srcs = [ "crc16.cc", @@ -17,7 +17,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "redis_cluster_lb", srcs = [ "redis_cluster_lb.cc", diff --git a/source/extensions/common/BUILD b/source/extensions/common/BUILD index 551d28dce5323..abc0d81c2d50b 100644 --- a/source/extensions/common/BUILD +++ b/source/extensions/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", hdrs = ["utility.h"], # Legacy. TODO(#9953) clean up. diff --git a/source/extensions/common/aws/BUILD b/source/extensions/common/aws/BUILD index 4436d95c26c69..621d60806d548 100644 --- a/source/extensions/common/aws/BUILD +++ b/source/extensions/common/aws/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "signer_interface", hdrs = ["signer.h"], deps = [ @@ -16,7 +16,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "signer_impl_lib", srcs = ["signer_impl.cc"], hdrs = ["signer_impl.h"], @@ -35,13 +35,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "credentials_provider_interface", hdrs = ["credentials_provider.h"], external_deps = ["abseil_optional"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "credentials_provider_impl_lib", srcs = ["credentials_provider_impl.cc"], hdrs = ["credentials_provider_impl.h"], @@ -56,7 +56,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -67,13 +67,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "region_provider_interface", hdrs = ["region_provider.h"], external_deps = ["abseil_optional"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "region_provider_impl_lib", srcs = ["region_provider_impl.cc"], hdrs = ["region_provider_impl.h"], diff --git a/source/extensions/common/crypto/BUILD b/source/extensions/common/crypto/BUILD index 339ca59dc3bfa..eed35256229ab 100644 --- a/source/extensions/common/crypto/BUILD +++ b/source/extensions/common/crypto/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "utility_lib", diff --git a/source/extensions/common/dynamic_forward_proxy/BUILD b/source/extensions/common/dynamic_forward_proxy/BUILD index 84ec35aaa6a79..19d6138696182 100644 --- a/source/extensions/common/dynamic_forward_proxy/BUILD +++ b/source/extensions/common/dynamic_forward_proxy/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "dns_cache_interface", hdrs = ["dns_cache.h"], deps = [ @@ -22,7 +22,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dns_cache_manager_impl", srcs = ["dns_cache_manager_impl.cc"], hdrs = ["dns_cache_manager_impl.h"], @@ -33,7 +33,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dns_cache_impl", srcs = ["dns_cache_impl.cc"], hdrs = ["dns_cache_impl.h"], @@ -50,7 +50,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dns_cache_resource_manager", srcs = ["dns_cache_resource_manager.cc"], hdrs = ["dns_cache_resource_manager.h"], diff --git a/source/extensions/common/proxy_protocol/BUILD b/source/extensions/common/proxy_protocol/BUILD index 34c999838b3fd..7a2b9bf66d034 100644 --- a/source/extensions/common/proxy_protocol/BUILD +++ b/source/extensions/common/proxy_protocol/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_protocol_header_lib", srcs = ["proxy_protocol_header.cc"], hdrs = ["proxy_protocol_header.h"], diff --git a/source/extensions/common/redis/BUILD b/source/extensions/common/redis/BUILD index 353b2d34d628a..f7427e61ad2e8 100644 --- a/source/extensions/common/redis/BUILD +++ b/source/extensions/common/redis/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,16 +10,16 @@ licenses(["notice"]) # Apache 2 # clusters. # Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "cluster_refresh_manager_interface", hdrs = ["cluster_refresh_manager.h"], deps = [ ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "cluster_refresh_manager_lib", srcs = ["cluster_refresh_manager_impl.cc"], hdrs = ["cluster_refresh_manager_impl.h"], diff --git a/source/extensions/common/sqlutils/BUILD b/source/extensions/common/sqlutils/BUILD index 2a5597fbf3276..f477e6a422080 100644 --- a/source/extensions/common/sqlutils/BUILD +++ b/source/extensions/common/sqlutils/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "sqlutils_lib", srcs = ["sqlutils.cc"], hdrs = ["sqlutils.h"], diff --git a/source/extensions/common/tap/BUILD b/source/extensions/common/tap/BUILD index 2bb99ced0b82e..8cf381c67deec 100644 --- a/source/extensions/common/tap/BUILD +++ b/source/extensions/common/tap/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "tap_interface", hdrs = ["tap.h"], deps = [ @@ -19,7 +19,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_config_base", srcs = ["tap_config_base.cc"], hdrs = ["tap_config_base.h"], @@ -33,7 +33,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_matcher", srcs = ["tap_matcher.cc"], hdrs = ["tap_matcher.h"], @@ -45,7 +45,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "admin", srcs = ["admin.cc"], hdrs = ["admin.h"], @@ -60,7 +60,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "extension_config_base", srcs = ["extension_config_base.cc"], hdrs = ["extension_config_base.h"], diff --git a/source/extensions/common/wasm/BUILD b/source/extensions/common/wasm/BUILD index a8e59e594eb36..6e034dbda256d 100644 --- a/source/extensions/common/wasm/BUILD +++ b/source/extensions/common/wasm/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ @@ -16,7 +16,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "wasm_vm_interface", hdrs = ["wasm_vm.h"], deps = [ @@ -26,7 +26,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "wasm_vm_base", hdrs = ["wasm_vm_base.h"], deps = [ @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "wasm_vm_lib", srcs = ["wasm_vm.cc"], deps = [ diff --git a/source/extensions/common/wasm/null/BUILD b/source/extensions/common/wasm/null/BUILD index b1609559e4327..31a33d8f4d49d 100644 --- a/source/extensions/common/wasm/null/BUILD +++ b/source/extensions/common/wasm/null/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "null_vm_plugin_interface", hdrs = ["null_vm_plugin.h"], deps = [ @@ -18,7 +18,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "null_vm_lib", srcs = ["null_vm.cc"], hdrs = ["null_vm.h"], @@ -33,7 +33,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "null_lib", srcs = ["null.cc"], hdrs = ["null.h"], diff --git a/source/extensions/common/wasm/v8/BUILD b/source/extensions/common/wasm/v8/BUILD index a6dc9d32dac03..4ff62d112f2ff 100644 --- a/source/extensions/common/wasm/v8/BUILD +++ b/source/extensions/common/wasm/v8/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "v8_lib", srcs = ["v8.cc"], hdrs = ["v8.h"], diff --git a/source/extensions/compression/common/compressor/BUILD b/source/extensions/compression/common/compressor/BUILD index 2960766975419..db3d5c88ae16f 100644 --- a/source/extensions/compression/common/compressor/BUILD +++ b/source/extensions/compression/common/compressor/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "compressor_factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/compression/common/decompressor/BUILD b/source/extensions/compression/common/decompressor/BUILD index fcee86f3b1843..0d69c90a8acdc 100644 --- a/source/extensions/compression/common/decompressor/BUILD +++ b/source/extensions/compression/common/decompressor/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "decompressor_factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/compression/gzip/common/BUILD b/source/extensions/compression/gzip/common/BUILD index b6064bdc2c495..5c301a6a9abe8 100644 --- a/source/extensions/compression/gzip/common/BUILD +++ b/source/extensions/compression/gzip/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "zlib_base_lib", srcs = ["base.cc"], hdrs = ["base.h"], diff --git a/source/extensions/compression/gzip/compressor/BUILD b/source/extensions/compression/gzip/compressor/BUILD index 334fe63c065f9..e8918d1fcbc8d 100644 --- a/source/extensions/compression/gzip/compressor/BUILD +++ b/source/extensions/compression/gzip/compressor/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "compressor_lib", srcs = ["zlib_compressor_impl.cc"], hdrs = ["zlib_compressor_impl.h"], diff --git a/source/extensions/compression/gzip/decompressor/BUILD b/source/extensions/compression/gzip/decompressor/BUILD index 04ad350d020e0..b4c6fb375d459 100644 --- a/source/extensions/compression/gzip/decompressor/BUILD +++ b/source/extensions/compression/gzip/decompressor/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "zlib_decompressor_impl_lib", srcs = ["zlib_decompressor_impl.cc"], hdrs = ["zlib_decompressor_impl.h"], diff --git a/source/extensions/filters/common/expr/BUILD b/source/extensions/filters/common/expr/BUILD index 236aae26e150e..fbbcd725ba43d 100644 --- a/source/extensions/filters/common/expr/BUILD +++ b/source/extensions/filters/common/expr/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "evaluator_lib", srcs = ["evaluator.cc"], hdrs = ["evaluator.h"], @@ -23,7 +23,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "context_lib", srcs = ["context.cc"], hdrs = ["context.h"], diff --git a/source/extensions/filters/common/ext_authz/BUILD b/source/extensions/filters/common/ext_authz/BUILD index ba7e59e1515ab..977560fefb203 100644 --- a/source/extensions/filters/common/ext_authz/BUILD +++ b/source/extensions/filters/common/ext_authz/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ext_authz_interface", hdrs = ["ext_authz.h"], deps = [ @@ -19,7 +19,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "ext_authz_grpc_lib", srcs = ["ext_authz_grpc_impl.cc"], hdrs = ["ext_authz_grpc_impl.h"], @@ -49,7 +49,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "ext_authz_http_lib", srcs = ["ext_authz_http_impl.cc"], hdrs = ["ext_authz_http_impl.h"], @@ -69,7 +69,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "check_request_utils_lib", srcs = ["check_request_utils.cc"], hdrs = ["check_request_utils.h"], diff --git a/source/extensions/filters/common/fault/BUILD b/source/extensions/filters/common/fault/BUILD index cf784995f8b5c..bf05af548e013 100644 --- a/source/extensions/filters/common/fault/BUILD +++ b/source/extensions/filters/common/fault/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "fault_config_lib", srcs = ["fault_config.cc"], hdrs = ["fault_config.h"], diff --git a/source/extensions/filters/common/lua/BUILD b/source/extensions/filters/common/lua/BUILD index a96696560951f..769784c89092e 100644 --- a/source/extensions/filters/common/lua/BUILD +++ b/source/extensions/filters/common/lua/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) load("//bazel:envoy_internal.bzl", "envoy_external_dep_path") load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() bool_flag( name = "moonjit", @@ -22,7 +22,7 @@ config_setting( }, ) -envoy_cc_extension_library( +envoy_cc_library( name = "lua_lib", srcs = ["lua.cc"], hdrs = ["lua.h"], @@ -37,7 +37,7 @@ envoy_cc_extension_library( }), ) -envoy_cc_extension_library( +envoy_cc_library( name = "wrappers_lib", srcs = ["wrappers.cc"], hdrs = ["wrappers.h"], diff --git a/source/extensions/filters/common/original_src/BUILD b/source/extensions/filters/common/original_src/BUILD index 768c311d4d8bb..0c4b4832e2e35 100644 --- a/source/extensions/filters/common/original_src/BUILD +++ b/source/extensions/filters/common/original_src/BUILD @@ -1,16 +1,16 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Helprs for filters for mirroring the downstream remote address on the upstream's source. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "original_src_socket_option_lib", srcs = ["original_src_socket_option.cc"], hdrs = ["original_src_socket_option.h"], @@ -24,7 +24,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "socket_option_factory_lib", srcs = ["socket_option_factory.cc"], hdrs = ["socket_option_factory.h"], diff --git a/source/extensions/filters/common/ratelimit/BUILD b/source/extensions/filters/common/ratelimit/BUILD index 1fcae78afca43..e98dc90a89168 100644 --- a/source/extensions/filters/common/ratelimit/BUILD +++ b/source/extensions/filters/common/ratelimit/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ratelimit_lib", srcs = ["ratelimit_impl.cc"], hdrs = ["ratelimit_impl.h"], @@ -30,7 +30,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "ratelimit_client_interface", hdrs = ["ratelimit.h"], external_deps = ["abseil_optional"], @@ -42,7 +42,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "stat_names_lib", hdrs = ["stat_names.h"], deps = [ diff --git a/source/extensions/filters/common/rbac/BUILD b/source/extensions/filters/common/rbac/BUILD index 4062001a9e2e8..14c649ca43406 100644 --- a/source/extensions/filters/common/rbac/BUILD +++ b/source/extensions/filters/common/rbac/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -19,7 +19,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "matchers_lib", srcs = ["matchers.cc"], hdrs = ["matchers.h"], @@ -39,7 +39,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "engine_interface", hdrs = ["engine.h"], deps = [ @@ -49,7 +49,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "engine_lib", srcs = ["engine_impl.cc"], hdrs = ["engine_impl.h"], diff --git a/source/extensions/filters/http/BUILD b/source/extensions/filters/http/BUILD index ab57f2a943574..790ddc806157a 100644 --- a/source/extensions/filters/http/BUILD +++ b/source/extensions/filters/http/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # Well known names are public. diff --git a/source/extensions/filters/http/adaptive_concurrency/BUILD b/source/extensions/filters/http/adaptive_concurrency/BUILD index 882fe1f80c41d..9cef1214ab36f 100644 --- a/source/extensions/filters/http/adaptive_concurrency/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -11,9 +11,9 @@ licenses(["notice"]) # Apache 2 # requests based on sampled latencies. # Public docs: docs/root/configuration/http_filters/adaptive_concurrency_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "adaptive_concurrency_filter_lib", srcs = ["adaptive_concurrency_filter.cc"], hdrs = ["adaptive_concurrency_filter.h"], diff --git a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD index 9c93679b23d56..b9f4475d7af72 100644 --- a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # requests based on sampled latencies. # Public docs: TODO (tonya11en) -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "controller_lib", srcs = ["gradient_controller.cc"], hdrs = [ diff --git a/source/extensions/filters/http/admission_control/BUILD b/source/extensions/filters/http/admission_control/BUILD index 2bfdfb9912a69..07acbda5fe58a 100644 --- a/source/extensions/filters/http/admission_control/BUILD +++ b/source/extensions/filters/http/admission_control/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that probabilistically rejects requests based on upstream success-rate. # Public docs: docs/root/configuration/http_filters/admission_control.rst -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "admission_control_filter_lib", diff --git a/source/extensions/filters/http/admission_control/evaluators/BUILD b/source/extensions/filters/http/admission_control/evaluators/BUILD index 6430e29f18edc..c5c72ee2db5ca 100644 --- a/source/extensions/filters/http/admission_control/evaluators/BUILD +++ b/source/extensions/filters/http/admission_control/evaluators/BUILD @@ -1,16 +1,16 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # HTTP L7 filter that probabilistically rejects requests based on upstream success-rate. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "response_evaluator_lib", srcs = ["success_criteria_evaluator.cc"], hdrs = [ diff --git a/source/extensions/filters/http/aws_lambda/BUILD b/source/extensions/filters/http/aws_lambda/BUILD index f15d646b9666b..86e2cc553f784 100644 --- a/source/extensions/filters/http/aws_lambda/BUILD +++ b/source/extensions/filters/http/aws_lambda/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", "envoy_proto_library", ) @@ -11,14 +11,14 @@ licenses(["notice"]) # Apache 2 # L7 HTTP AWS Lambda filter # Public docs: docs/root/configuration/http_filters/aws_lambda_filter.rst -envoy_package() +envoy_extension_package() envoy_proto_library( name = "request_response", srcs = ["request_response.proto"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "aws_lambda_filter_lib", srcs = ["aws_lambda_filter.cc"], hdrs = ["aws_lambda_filter.h"], diff --git a/source/extensions/filters/http/aws_request_signing/BUILD b/source/extensions/filters/http/aws_request_signing/BUILD index 904ca3b07f778..01b83ecf68656 100644 --- a/source/extensions/filters/http/aws_request_signing/BUILD +++ b/source/extensions/filters/http/aws_request_signing/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP AWS request signing filter # Public docs: docs/root/configuration/http_filters/aws_request_signing_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "aws_request_signing_filter_lib", srcs = ["aws_request_signing_filter.cc"], hdrs = ["aws_request_signing_filter.h"], diff --git a/source/extensions/filters/http/buffer/BUILD b/source/extensions/filters/http/buffer/BUILD index c4ee4b6291f43..0372f84132f67 100644 --- a/source/extensions/filters/http/buffer/BUILD +++ b/source/extensions/filters/http/buffer/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Request buffering and timeout L7 HTTP filter # Public docs: docs/root/configuration/http_filters/buffer_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "buffer_filter_lib", srcs = ["buffer_filter.cc"], hdrs = ["buffer_filter.h"], diff --git a/source/extensions/filters/http/cache/BUILD b/source/extensions/filters/http/cache/BUILD index 3dafe2f5472ae..159fd3e80253b 100644 --- a/source/extensions/filters/http/cache/BUILD +++ b/source/extensions/filters/http/cache/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", "envoy_proto_library", ) @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 ## Pluggable HTTP cache filter -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "cache_filter_lib", srcs = ["cache_filter.cc"], hdrs = ["cache_filter.h"], @@ -29,7 +29,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "cacheability_utils_lib", srcs = ["cacheability_utils.cc"], hdrs = ["cacheability_utils.h"], @@ -45,7 +45,7 @@ envoy_proto_library( srcs = ["key.proto"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "http_cache_lib", srcs = ["http_cache.cc"], hdrs = ["http_cache.h"], @@ -64,7 +64,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "cache_headers_utils_lib", srcs = ["cache_headers_utils.cc"], hdrs = ["cache_headers_utils.h"], diff --git a/source/extensions/filters/http/cache/simple_http_cache/BUILD b/source/extensions/filters/http/cache/simple_http_cache/BUILD index b38c273b26015..f9484060aa97d 100644 --- a/source/extensions/filters/http/cache/simple_http_cache/BUILD +++ b/source/extensions/filters/http/cache/simple_http_cache/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", "envoy_proto_library", ) @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 ## WIP: Simple in-memory cache storage plugin. Not ready for deployment. -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "simple_http_cache_lib", diff --git a/source/extensions/filters/http/common/BUILD b/source/extensions/filters/http/common/BUILD index 406b94c29aacf..39da5c48c58ec 100644 --- a/source/extensions/filters/http/common/BUILD +++ b/source/extensions/filters/http/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "pass_through_filter_lib", hdrs = ["pass_through_filter.h"], # A thin shim used by test and prod filters. @@ -21,7 +21,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -29,7 +29,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "jwks_fetcher_lib", srcs = ["jwks_fetcher.cc"], hdrs = ["jwks_fetcher.h"], @@ -43,7 +43,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", hdrs = ["utility.h"], # Used by the router filter. TODO(#9953) clean up. diff --git a/source/extensions/filters/http/common/compressor/BUILD b/source/extensions/filters/http/common/compressor/BUILD index bceba1e346590..a1c67b984a5eb 100644 --- a/source/extensions/filters/http/common/compressor/BUILD +++ b/source/extensions/filters/http/common/compressor/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() # TODO(rojkov): move this library to source/extensions/filters/http/compressor/. -envoy_cc_extension_library( +envoy_cc_library( name = "compressor_lib", srcs = ["compressor.cc"], hdrs = ["compressor.h"], diff --git a/source/extensions/filters/http/compressor/BUILD b/source/extensions/filters/http/compressor/BUILD index e7bd57c3da318..01855f8eb64a6 100644 --- a/source/extensions/filters/http/compressor/BUILD +++ b/source/extensions/filters/http/compressor/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that performs compression with configurable compression libraries # Public docs: docs/root/configuration/http_filters/compressor_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "compressor_filter_lib", srcs = ["compressor_filter.cc"], hdrs = ["compressor_filter.h"], diff --git a/source/extensions/filters/http/cors/BUILD b/source/extensions/filters/http/cors/BUILD index 91b5eba72316e..bd5ce89be6821 100644 --- a/source/extensions/filters/http/cors/BUILD +++ b/source/extensions/filters/http/cors/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter which implements CORS processing (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) # Public docs: docs/root/configuration/http_filters/cors_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "cors_filter_lib", srcs = ["cors_filter.cc"], hdrs = ["cors_filter.h"], diff --git a/source/extensions/filters/http/csrf/BUILD b/source/extensions/filters/http/csrf/BUILD index 66c3e6cc3dc32..47bea6f6bbf22 100644 --- a/source/extensions/filters/http/csrf/BUILD +++ b/source/extensions/filters/http/csrf/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter which implements CSRF processing (https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)) # Public docs: docs/root/configuration/http_filters/csrf_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "csrf_filter_lib", srcs = ["csrf_filter.cc"], hdrs = ["csrf_filter.h"], diff --git a/source/extensions/filters/http/decompressor/BUILD b/source/extensions/filters/http/decompressor/BUILD index 5e9e708253035..08d224b8b2849 100644 --- a/source/extensions/filters/http/decompressor/BUILD +++ b/source/extensions/filters/http/decompressor/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that performs decompression with configurable decompression libraries # Public docs: docs/root/configuration/http_filters/decompressor_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "decompressor_filter_lib", srcs = ["decompressor_filter.cc"], hdrs = ["decompressor_filter.h"], diff --git a/source/extensions/filters/http/dynamic_forward_proxy/BUILD b/source/extensions/filters/http/dynamic_forward_proxy/BUILD index 0d63b52c490bb..dc15f124ed780 100644 --- a/source/extensions/filters/http/dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/http/dynamic_forward_proxy/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], diff --git a/source/extensions/filters/http/dynamo/BUILD b/source/extensions/filters/http/dynamo/BUILD index fa90b2ccd2fd3..c152863819ed0 100644 --- a/source/extensions/filters/http/dynamo/BUILD +++ b/source/extensions/filters/http/dynamo/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # AWS DynamoDB L7 HTTP filter (observability): https://aws.amazon.com/dynamodb/ # Public docs: docs/root/configuration/http_filters/dynamodb_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "dynamo_filter_lib", srcs = ["dynamo_filter.cc"], hdrs = ["dynamo_filter.h"], @@ -27,7 +27,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dynamo_request_parser_lib", srcs = ["dynamo_request_parser.cc"], hdrs = ["dynamo_request_parser.h"], @@ -53,7 +53,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dynamo_stats_lib", srcs = ["dynamo_stats.cc"], hdrs = ["dynamo_stats.h"], diff --git a/source/extensions/filters/http/ext_authz/BUILD b/source/extensions/filters/http/ext_authz/BUILD index 8c794ad1f98a3..0d789c30c0489 100644 --- a/source/extensions/filters/http/ext_authz/BUILD +++ b/source/extensions/filters/http/ext_authz/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # External authorization L7 HTTP filter # Public docs: TODO(saumoh): Docs needed in docs/root/configuration/http_filters -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ext_authz", srcs = ["ext_authz.cc"], hdrs = ["ext_authz.h"], diff --git a/source/extensions/filters/http/fault/BUILD b/source/extensions/filters/http/fault/BUILD index 2cf6355b7f91c..a518d60f37e13 100644 --- a/source/extensions/filters/http/fault/BUILD +++ b/source/extensions/filters/http/fault/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that injects faults into the request flow # Public docs: docs/root/configuration/http_filters/fault_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "fault_filter_lib", srcs = ["fault_filter.cc"], hdrs = ["fault_filter.h"], diff --git a/source/extensions/filters/http/grpc_http1_bridge/BUILD b/source/extensions/filters/http/grpc_http1_bridge/BUILD index 31007b6596538..dc8a352b218dd 100644 --- a/source/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_bridge/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter that bridges HTTP/1.1 unary "gRPC" to compliant HTTP/2 gRPC. # Public docs: docs/root/configuration/http_filters/grpc_http1_bridge_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "http1_bridge_filter_lib", srcs = ["http1_bridge_filter.cc"], hdrs = ["http1_bridge_filter.h"], diff --git a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD index 8e1508def1bc5..852c3c368a5fe 100644 --- a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "filter_lib", srcs = ["filter.cc"], hdrs = ["filter.h"], diff --git a/source/extensions/filters/http/grpc_json_transcoder/BUILD b/source/extensions/filters/http/grpc_json_transcoder/BUILD index 660af08a8aec8..88429fc0bfc71 100644 --- a/source/extensions/filters/http/grpc_json_transcoder/BUILD +++ b/source/extensions/filters/http/grpc_json_transcoder/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter that implements binary gRPC to JSON transcoding # Public docs: docs/root/configuration/http_filters/grpc_json_transcoder_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "json_transcoder_filter_lib", srcs = ["json_transcoder_filter.cc"], hdrs = ["json_transcoder_filter.h"], @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "http_body_utils_lib", srcs = ["http_body_utils.cc"], hdrs = ["http_body_utils.h"], @@ -47,7 +47,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "transcoder_input_stream_lib", srcs = ["transcoder_input_stream_impl.cc"], hdrs = ["transcoder_input_stream_impl.h"], diff --git a/source/extensions/filters/http/grpc_stats/BUILD b/source/extensions/filters/http/grpc_stats/BUILD index 62bc49e8be017..ac38af9751369 100644 --- a/source/extensions/filters/http/grpc_stats/BUILD +++ b/source/extensions/filters/http/grpc_stats/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # L7 HTTP filter that implements gRPC telemetry -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/filters/http/grpc_web/BUILD b/source/extensions/filters/http/grpc_web/BUILD index 9514288989f66..d18eb56ed01d0 100644 --- a/source/extensions/filters/http/grpc_web/BUILD +++ b/source/extensions/filters/http/grpc_web/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter that implements the grpc-web protocol (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md) # Public docs: docs/root/configuration/http_filters/grpc_web_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "grpc_web_filter_lib", srcs = ["grpc_web_filter.cc"], hdrs = ["grpc_web_filter.h"], diff --git a/source/extensions/filters/http/gzip/BUILD b/source/extensions/filters/http/gzip/BUILD index 5a79613527e9c..39b1459d45bef 100644 --- a/source/extensions/filters/http/gzip/BUILD +++ b/source/extensions/filters/http/gzip/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that performs gzip compression # Public docs: docs/root/configuration/http_filters/gzip_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "gzip_filter_lib", srcs = ["gzip_filter.cc"], hdrs = ["gzip_filter.h"], diff --git a/source/extensions/filters/http/header_to_metadata/BUILD b/source/extensions/filters/http/header_to_metadata/BUILD index 5d8f2432545c8..1bbe574312e60 100644 --- a/source/extensions/filters/http/header_to_metadata/BUILD +++ b/source/extensions/filters/http/header_to_metadata/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that transforms request data into dynamic metadata # Public docs: docs/root/configuration/http_filters/header_to_metadata_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "header_to_metadata_filter_lib", srcs = ["header_to_metadata_filter.cc"], hdrs = ["header_to_metadata_filter.h"], diff --git a/source/extensions/filters/http/health_check/BUILD b/source/extensions/filters/http/health_check/BUILD index fcbf71c683b9a..4964130e5545c 100644 --- a/source/extensions/filters/http/health_check/BUILD +++ b/source/extensions/filters/http/health_check/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter that implements health check responses # Public docs: docs/root/configuration/http_filters/health_check_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "health_check_lib", srcs = ["health_check.cc"], hdrs = ["health_check.h"], diff --git a/source/extensions/filters/http/ip_tagging/BUILD b/source/extensions/filters/http/ip_tagging/BUILD index 3bb925b06c20e..6ee659df773cf 100644 --- a/source/extensions/filters/http/ip_tagging/BUILD +++ b/source/extensions/filters/http/ip_tagging/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter that writes an IP tagging header based on IP trie data # Public docs: docs/root/configuration/http_filters/ip_tagging_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ip_tagging_filter_lib", srcs = ["ip_tagging_filter.cc"], hdrs = ["ip_tagging_filter.h"], diff --git a/source/extensions/filters/http/jwt_authn/BUILD b/source/extensions/filters/http/jwt_authn/BUILD index 84bc8b3db3680..f0249b014ea11 100644 --- a/source/extensions/filters/http/jwt_authn/BUILD +++ b/source/extensions/filters/http/jwt_authn/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "extractor_lib", srcs = ["extractor.cc"], hdrs = ["extractor.h"], @@ -19,7 +19,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "jwks_cache_lib", srcs = ["jwks_cache.cc"], hdrs = ["jwks_cache.h"], @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "authenticator_lib", srcs = ["authenticator.cc"], hdrs = ["authenticator.h"], @@ -49,7 +49,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "filter_lib", srcs = ["filter.cc"], hdrs = ["filter.h"], @@ -80,7 +80,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "matchers_lib", srcs = ["matcher.cc"], hdrs = ["matcher.h"], @@ -94,7 +94,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "verifier_lib", srcs = ["verifier.cc"], hdrs = ["verifier.h"], @@ -106,7 +106,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "filter_config_interface", srcs = ["filter_config.cc"], hdrs = ["filter_config.h"], diff --git a/source/extensions/filters/http/lua/BUILD b/source/extensions/filters/http/lua/BUILD index 46b7cef3412b7..2e08db0ad5636 100644 --- a/source/extensions/filters/http/lua/BUILD +++ b/source/extensions/filters/http/lua/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Lua scripting L7 HTTP filter (https://www.lua.org/, http://luajit.org/) # Public docs: docs/root/configuration/http_filters/lua_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "lua_filter_lib", srcs = ["lua_filter.cc"], hdrs = ["lua_filter.h"], @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "wrappers_lib", srcs = ["wrappers.cc"], hdrs = ["wrappers.h"], diff --git a/source/extensions/filters/http/on_demand/BUILD b/source/extensions/filters/http/on_demand/BUILD index 4951b9799f444..052f892696e7f 100644 --- a/source/extensions/filters/http/on_demand/BUILD +++ b/source/extensions/filters/http/on_demand/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # On-demand RDS update HTTP filter -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "on_demand_update_lib", srcs = ["on_demand_update.cc"], hdrs = ["on_demand_update.h"], diff --git a/source/extensions/filters/http/original_src/BUILD b/source/extensions/filters/http/original_src/BUILD index 12f9763d09638..b88a1d8df9ffe 100644 --- a/source/extensions/filters/http/original_src/BUILD +++ b/source/extensions/filters/http/original_src/BUILD @@ -1,24 +1,24 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # A filter for mirroring the downstream remote address on the upstream's source. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "config_lib", srcs = ["config.cc"], hdrs = ["config.h"], deps = ["@envoy_api//envoy/extensions/filters/http/original_src/v3:pkg_cc_proto"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "original_src_lib", srcs = ["original_src.cc"], hdrs = ["original_src.h"], diff --git a/source/extensions/filters/http/ratelimit/BUILD b/source/extensions/filters/http/ratelimit/BUILD index 2c3e4b1bce928..9119aa35a26de 100644 --- a/source/extensions/filters/http/ratelimit/BUILD +++ b/source/extensions/filters/http/ratelimit/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Ratelimit L7 HTTP filter # Public docs: docs/root/configuration/http_filters/rate_limit_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ratelimit_lib", srcs = ["ratelimit.cc"], hdrs = ["ratelimit.h"], diff --git a/source/extensions/filters/http/rbac/BUILD b/source/extensions/filters/http/rbac/BUILD index 0540eb8c8148d..31dbbad82db10 100644 --- a/source/extensions/filters/http/rbac/BUILD +++ b/source/extensions/filters/http/rbac/BUILD @@ -1,13 +1,13 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -27,7 +27,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "rbac_filter_lib", srcs = ["rbac_filter.cc"], hdrs = ["rbac_filter.h"], diff --git a/source/extensions/filters/http/router/BUILD b/source/extensions/filters/http/router/BUILD index ff3b67ad53569..6402dc14c8802 100644 --- a/source/extensions/filters/http/router/BUILD +++ b/source/extensions/filters/http/router/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 # HTTP L7 filter responsible for routing to upstream connection pools # Public docs: docs/root/configuration/http_filters/router_filter.rst -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/filters/http/squash/BUILD b/source/extensions/filters/http/squash/BUILD index ae08c62a475df..ea2bdcd1242b1 100644 --- a/source/extensions/filters/http/squash/BUILD +++ b/source/extensions/filters/http/squash/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP filter that implements the Squash microservice debugger # Public docs: docs/root/configuration/http_filters/squash_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "squash_filter_lib", srcs = ["squash_filter.cc"], hdrs = ["squash_filter.h"], diff --git a/source/extensions/filters/http/tap/BUILD b/source/extensions/filters/http/tap/BUILD index 02cb74c9cd082..73d4237cd0192 100644 --- a/source/extensions/filters/http/tap/BUILD +++ b/source/extensions/filters/http/tap/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # L7 HTTP Tap filter # Public docs: docs/root/configuration/http_filters/tap_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "tap_config_interface", hdrs = ["tap_config.h"], deps = [ @@ -22,7 +22,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_config_impl", srcs = ["tap_config_impl.cc"], hdrs = ["tap_config_impl.h"], @@ -35,7 +35,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_filter_lib", srcs = ["tap_filter.cc"], hdrs = ["tap_filter.h"], diff --git a/source/extensions/filters/listener/BUILD b/source/extensions/filters/listener/BUILD index ab183ebfb7f16..9a2ee9ad75cbc 100644 --- a/source/extensions/filters/listener/BUILD +++ b/source/extensions/filters/listener/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # Well known names are public. diff --git a/source/extensions/filters/listener/http_inspector/BUILD b/source/extensions/filters/listener/http_inspector/BUILD index a242b11592376..0f3c7f50eb40d 100644 --- a/source/extensions/filters/listener/http_inspector/BUILD +++ b/source/extensions/filters/listener/http_inspector/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # HTTP inspector filter for sniffing HTTP protocol and setting HTTP version to a FilterChain. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "http_inspector_lib", srcs = ["http_inspector.cc"], hdrs = ["http_inspector.h"], diff --git a/source/extensions/filters/listener/original_dst/BUILD b/source/extensions/filters/listener/original_dst/BUILD index 088eb7f1828de..185605baa2104 100644 --- a/source/extensions/filters/listener/original_dst/BUILD +++ b/source/extensions/filters/listener/original_dst/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # ORIGINAL_DST iptables redirection listener filter # Public docs: docs/root/configuration/listener_filters/original_dst_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "original_dst_lib", srcs = ["original_dst.cc"], hdrs = ["original_dst.h"], diff --git a/source/extensions/filters/listener/original_src/BUILD b/source/extensions/filters/listener/original_src/BUILD index 6ed3a80204bd0..4240bb61f28a2 100644 --- a/source/extensions/filters/listener/original_src/BUILD +++ b/source/extensions/filters/listener/original_src/BUILD @@ -1,24 +1,24 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # A filter for mirroring the downstream remote address on the upstream's source. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "config_lib", srcs = ["config.cc"], hdrs = ["config.h"], deps = ["@envoy_api//envoy/extensions/filters/listener/original_src/v3:pkg_cc_proto"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "original_src_lib", srcs = ["original_src.cc"], hdrs = ["original_src.h"], diff --git a/source/extensions/filters/listener/proxy_protocol/BUILD b/source/extensions/filters/listener/proxy_protocol/BUILD index e9f1084a21f3a..302940fff6b79 100644 --- a/source/extensions/filters/listener/proxy_protocol/BUILD +++ b/source/extensions/filters/listener/proxy_protocol/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Proxy protocol listener filter: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_protocol_lib", srcs = ["proxy_protocol.cc"], hdrs = [ diff --git a/source/extensions/filters/listener/tls_inspector/BUILD b/source/extensions/filters/listener/tls_inspector/BUILD index 732b80f2f879d..deaaa243f82d8 100644 --- a/source/extensions/filters/listener/tls_inspector/BUILD +++ b/source/extensions/filters/listener/tls_inspector/BUILD @@ -2,7 +2,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_cc_library", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 # TLS inspector filter for examining various TLS parameters before routing to a FilterChain. # Public docs: docs/root/configuration/listener_filters/tls_inspector.rst -envoy_package() +envoy_extension_package() envoy_cc_library( name = "tls_inspector_lib", diff --git a/source/extensions/filters/network/BUILD b/source/extensions/filters/network/BUILD index ab57f2a943574..790ddc806157a 100644 --- a/source/extensions/filters/network/BUILD +++ b/source/extensions/filters/network/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # Well known names are public. diff --git a/source/extensions/filters/network/client_ssl_auth/BUILD b/source/extensions/filters/network/client_ssl_auth/BUILD index a4b1822b7e143..d77c4abae5949 100644 --- a/source/extensions/filters/network/client_ssl_auth/BUILD +++ b/source/extensions/filters/network/client_ssl_auth/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Client SSL authorization L4 network filter # Public docs: docs/root/configuration/network_filters/client_ssl_auth_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "client_ssl_auth", srcs = ["client_ssl_auth.cc"], hdrs = ["client_ssl_auth.h"], diff --git a/source/extensions/filters/network/common/BUILD b/source/extensions/filters/network/common/BUILD index 0838e8486b795..09249e4000508 100644 --- a/source/extensions/filters/network/common/BUILD +++ b/source/extensions/filters/network/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], # Used by core. TODO(#9953) clean up. @@ -18,7 +18,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", hdrs = ["utility.h"], # Used by core. TODO(#9953) clean up. diff --git a/source/extensions/filters/network/common/redis/BUILD b/source/extensions/filters/network/common/redis/BUILD index f3f91c2bd7b87..5c0393d36a627 100644 --- a/source/extensions/filters/network/common/redis/BUILD +++ b/source/extensions/filters/network/common/redis/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "codec_interface", hdrs = ["codec.h"], deps = [ @@ -17,13 +17,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_interface", hdrs = ["utility.h"], deps = [":codec_interface"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -35,7 +35,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "supported_commands_lib", hdrs = ["supported_commands.h"], deps = [ @@ -43,7 +43,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "client_interface", hdrs = ["client.h"], deps = [ @@ -53,7 +53,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "client_lib", srcs = ["client_impl.cc"], hdrs = ["client_impl.h"], @@ -75,7 +75,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], @@ -85,7 +85,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "redis_command_stats_lib", srcs = ["redis_command_stats.cc"], hdrs = ["redis_command_stats.h"], diff --git a/source/extensions/filters/network/direct_response/BUILD b/source/extensions/filters/network/direct_response/BUILD index 73c0501037723..a7ed6d274a1fa 100644 --- a/source/extensions/filters/network/direct_response/BUILD +++ b/source/extensions/filters/network/direct_response/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Direct response L4 network filter. # Public docs: docs/root/configuration/network_filters/direct_response_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "filter", srcs = ["filter.cc"], hdrs = ["filter.h"], diff --git a/source/extensions/filters/network/dubbo_proxy/BUILD b/source/extensions/filters/network/dubbo_proxy/BUILD index 87296ec24e107..bf83e91ad0fd1 100644 --- a/source/extensions/filters/network/dubbo_proxy/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "buffer_helper_lib", srcs = ["buffer_helper.cc"], hdrs = ["buffer_helper.h"], @@ -20,7 +20,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "hessian_utils_lib", srcs = ["hessian_utils.cc"], hdrs = ["hessian_utils.h"], @@ -30,7 +30,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "protocol_interface", hdrs = ["protocol.h"], deps = [ @@ -45,7 +45,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dubbo_protocol_impl_lib", srcs = ["dubbo_protocol_impl.cc"], hdrs = ["dubbo_protocol_impl.h"], @@ -56,7 +56,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "serializer_interface", srcs = ["serializer_impl.cc"], hdrs = [ @@ -75,7 +75,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "dubbo_hessian2_serializer_impl_lib", srcs = ["dubbo_hessian2_serializer_impl.cc"], hdrs = [ @@ -89,7 +89,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "decoder_lib", srcs = ["decoder.cc"], hdrs = ["decoder.h"], @@ -126,7 +126,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], @@ -137,7 +137,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "message_lib", hdrs = [ "message.h", @@ -148,7 +148,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "decoder_events_lib", hdrs = ["decoder_event_handler.h"], deps = [ @@ -159,7 +159,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "stats_lib", hdrs = ["stats.h"], deps = [ @@ -168,7 +168,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "app_exception_lib", srcs = ["app_exception.cc"], hdrs = ["app_exception.h"], @@ -183,7 +183,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "heartbeat_response_lib", srcs = ["heartbeat_response.cc"], hdrs = ["heartbeat_response.h"], @@ -196,7 +196,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_manager_lib", srcs = [ "active_message.cc", diff --git a/source/extensions/filters/network/dubbo_proxy/filters/BUILD b/source/extensions/filters/network/dubbo_proxy/filters/BUILD index 4ac59b4bbc58f..d2c9fd1ff03c1 100644 --- a/source/extensions/filters/network/dubbo_proxy/filters/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/filters/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "filter_interface", hdrs = ["filter.h"], deps = [ @@ -23,7 +23,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "filter_config_interface", hdrs = ["filter_config.h"], deps = [ @@ -35,7 +35,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -44,7 +44,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/filters/network/dubbo_proxy/router/BUILD b/source/extensions/filters/network/dubbo_proxy/router/BUILD index d6173e2edfb1c..4227ca25fcf5a 100644 --- a/source/extensions/filters/network/dubbo_proxy/router/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/router/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "router_interface", hdrs = ["router.h"], deps = [ @@ -17,7 +17,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "route_matcher_interface", hdrs = ["route.h"], deps = [ @@ -31,7 +31,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "route_matcher", srcs = ["route_matcher.cc"], hdrs = ["route_matcher.h"], @@ -51,7 +51,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], @@ -65,7 +65,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], diff --git a/source/extensions/filters/network/echo/BUILD b/source/extensions/filters/network/echo/BUILD index 9dd5899defa02..10105f1621c3d 100644 --- a/source/extensions/filters/network/echo/BUILD +++ b/source/extensions/filters/network/echo/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Echo L4 network filter. This is primarily a simplistic example. # Public docs: docs/root/configuration/network_filters/echo_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "echo", srcs = ["echo.cc"], hdrs = ["echo.h"], diff --git a/source/extensions/filters/network/ext_authz/BUILD b/source/extensions/filters/network/ext_authz/BUILD index 03cd044337b23..ebc6847e28f66 100644 --- a/source/extensions/filters/network/ext_authz/BUILD +++ b/source/extensions/filters/network/ext_authz/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # External authorization L4 network filter # Public docs: TODO(saumoh): Docs needed in docs/root/configuration/network_filters -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ext_authz", srcs = ["ext_authz.cc"], hdrs = ["ext_authz.h"], diff --git a/source/extensions/filters/network/http_connection_manager/BUILD b/source/extensions/filters/network/http_connection_manager/BUILD index 03c0a1538b9c6..012cd2b00cce7 100644 --- a/source/extensions/filters/network/http_connection_manager/BUILD +++ b/source/extensions/filters/network/http_connection_manager/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 # drives all of the L7 HTTP filters. # Public docs: docs/root/configuration/http_conn_man/http_conn_man.rst -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/filters/network/kafka/BUILD b/source/extensions/filters/network/kafka/BUILD index 95affeb7b5fa7..3c338ff751c63 100644 --- a/source/extensions/filters/network/kafka/BUILD +++ b/source/extensions/filters/network/kafka/BUILD @@ -2,8 +2,8 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library") load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -11,7 +11,7 @@ licenses(["notice"]) # Apache 2 # Kafka network filter. # Broker filter public docs: docs/root/configuration/network_filters/kafka_broker_filter.rst -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "kafka_broker_config_lib", @@ -27,7 +27,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_broker_filter_lib", srcs = ["broker/filter.cc"], hdrs = [ @@ -46,7 +46,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "abstract_codec_lib", srcs = [], hdrs = [ @@ -57,7 +57,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_request_codec_lib", srcs = ["request_codec.cc"], hdrs = [ @@ -69,7 +69,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_request_parser_lib", srcs = [ "external/kafka_request_resolver.cc", @@ -88,7 +88,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_request_lib", srcs = [ ], @@ -120,7 +120,7 @@ genrule( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_response_codec_lib", srcs = ["response_codec.cc"], hdrs = [ @@ -132,7 +132,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_response_parser_lib", srcs = [ "external/kafka_response_resolver.cc", @@ -151,7 +151,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_response_lib", srcs = [ ], @@ -199,7 +199,7 @@ py_library( srcs = ["protocol/generator.py"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "parser_lib", hdrs = ["parser.h"], deps = [ @@ -207,13 +207,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tagged_fields_lib", hdrs = ["tagged_fields.h"], deps = [":serialization_lib"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "serialization_lib", srcs = [ "serialization.cc", @@ -260,7 +260,7 @@ py_library( srcs = ["serialization/generator.py"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "kafka_types_lib", hdrs = [ "kafka_types.h", diff --git a/source/extensions/filters/network/local_ratelimit/BUILD b/source/extensions/filters/network/local_ratelimit/BUILD index 0565da9339a50..13389742fa56a 100644 --- a/source/extensions/filters/network/local_ratelimit/BUILD +++ b/source/extensions/filters/network/local_ratelimit/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Local ratelimit L4 network filter # Public docs: docs/root/configuration/network_filters/local_rate_limit_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "local_ratelimit_lib", srcs = ["local_ratelimit.cc"], hdrs = ["local_ratelimit.h"], diff --git a/source/extensions/filters/network/mongo_proxy/BUILD b/source/extensions/filters/network/mongo_proxy/BUILD index e79c39e8b9ff7..2e281e1f67896 100644 --- a/source/extensions/filters/network/mongo_proxy/BUILD +++ b/source/extensions/filters/network/mongo_proxy/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,21 +10,21 @@ licenses(["notice"]) # Apache 2 # Mongo proxy L4 network filter (observability and fault injection). # Public docs: docs/root/configuration/network_filters/mongo_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "bson_interface", hdrs = ["bson.h"], deps = ["//include/envoy/buffer:buffer_interface"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "codec_interface", hdrs = ["codec.h"], deps = [":bson_interface"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "bson_lib", srcs = ["bson_impl.cc"], hdrs = ["bson_impl.h"], @@ -39,7 +39,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -52,7 +52,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_lib", srcs = ["proxy.cc"], hdrs = ["proxy.h"], @@ -82,7 +82,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "mongo_stats_lib", srcs = ["mongo_stats.cc"], hdrs = ["mongo_stats.h"], @@ -93,7 +93,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], diff --git a/source/extensions/filters/network/mysql_proxy/BUILD b/source/extensions/filters/network/mysql_proxy/BUILD index 467346f645c55..fee8571ea619c 100644 --- a/source/extensions/filters/network/mysql_proxy/BUILD +++ b/source/extensions/filters/network/mysql_proxy/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # MySQL proxy L7 network filter. # Public docs: docs/root/configuration/network_filters/mysql_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_lib", srcs = [ "mysql_codec_clogin.cc", diff --git a/source/extensions/filters/network/postgres_proxy/BUILD b/source/extensions/filters/network/postgres_proxy/BUILD index bf684600cfccd..aa397da9b55fd 100644 --- a/source/extensions/filters/network/postgres_proxy/BUILD +++ b/source/extensions/filters/network/postgres_proxy/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -12,9 +12,9 @@ licenses(["notice"]) # Apache 2 # PostgresSQL proxy L7 network filter. # Public docs: docs/root/configuration/network_filters/postgres_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "filter", srcs = [ "postgres_decoder.cc", diff --git a/source/extensions/filters/network/ratelimit/BUILD b/source/extensions/filters/network/ratelimit/BUILD index fbd7350aacd11..f653adf348fb8 100644 --- a/source/extensions/filters/network/ratelimit/BUILD +++ b/source/extensions/filters/network/ratelimit/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # Ratelimit L4 network filter # Public docs: docs/root/configuration/network_filters/rate_limit_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "ratelimit_lib", srcs = ["ratelimit.cc"], hdrs = ["ratelimit.h"], diff --git a/source/extensions/filters/network/rbac/BUILD b/source/extensions/filters/network/rbac/BUILD index dd7669046a82c..75e98406cf268 100644 --- a/source/extensions/filters/network/rbac/BUILD +++ b/source/extensions/filters/network/rbac/BUILD @@ -1,13 +1,13 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "rbac_filter", srcs = ["rbac_filter.cc"], hdrs = ["rbac_filter.h"], diff --git a/source/extensions/filters/network/redis_proxy/BUILD b/source/extensions/filters/network/redis_proxy/BUILD index 6c5f6999f3128..f162a8bf9b766 100644 --- a/source/extensions/filters/network/redis_proxy/BUILD +++ b/source/extensions/filters/network/redis_proxy/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -11,9 +11,9 @@ licenses(["notice"]) # Apache 2 # clusters. # Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "command_splitter_interface", hdrs = ["command_splitter.h"], deps = [ @@ -21,7 +21,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "config_interface", hdrs = ["config.h"], deps = [ @@ -33,7 +33,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_pool_interface", hdrs = ["conn_pool.h"], deps = [ @@ -43,13 +43,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_interface", hdrs = ["router.h"], deps = [":conn_pool_interface"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "command_splitter_lib", srcs = ["command_splitter_impl.cc"], hdrs = ["command_splitter_impl.h"], @@ -69,7 +69,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_pool_lib", srcs = ["conn_pool_impl.cc"], hdrs = ["conn_pool_impl.h"], @@ -96,7 +96,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], @@ -139,7 +139,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], diff --git a/source/extensions/filters/network/rocketmq_proxy/BUILD b/source/extensions/filters/network/rocketmq_proxy/BUILD index ab523ee02e2f2..f837b9bf83f8d 100644 --- a/source/extensions/filters/network/rocketmq_proxy/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/BUILD @@ -1,21 +1,21 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = ["//source/common/singleton:const_singleton"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "stats_interface", hdrs = ["stats.h"], deps = [ @@ -24,7 +24,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "rocketmq_interface", hdrs = [ "topic_route.h", @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "rocketmq_lib", srcs = [ "topic_route.cc", @@ -44,7 +44,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "protocol_interface", hdrs = ["protocol.h"], deps = [ @@ -54,7 +54,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "protocol_lib", srcs = ["protocol.cc"], deps = [ @@ -64,7 +64,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "codec_lib", srcs = [ "codec.cc", @@ -79,7 +79,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_manager_lib", srcs = [ "active_message.cc", @@ -138,7 +138,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], diff --git a/source/extensions/filters/network/rocketmq_proxy/router/BUILD b/source/extensions/filters/network/rocketmq_proxy/router/BUILD index 2752f51ecbe3b..8f303861daae2 100644 --- a/source/extensions/filters/network/rocketmq_proxy/router/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/router/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "router_interface", hdrs = ["router.h"], deps = [ @@ -18,7 +18,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], @@ -31,7 +31,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "route_matcher", srcs = ["route_matcher.cc"], hdrs = ["route_matcher.h"], diff --git a/source/extensions/filters/network/sni_cluster/BUILD b/source/extensions/filters/network/sni_cluster/BUILD index edfa943751738..e6670b8e42601 100644 --- a/source/extensions/filters/network/sni_cluster/BUILD +++ b/source/extensions/filters/network/sni_cluster/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "sni_cluster", srcs = ["sni_cluster.cc"], hdrs = ["sni_cluster.h"], diff --git a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD index 9089c2e9bccb5..372fce9155e2b 100644 --- a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_filter_lib", srcs = ["proxy_filter.cc"], hdrs = ["proxy_filter.h"], diff --git a/source/extensions/filters/network/tcp_proxy/BUILD b/source/extensions/filters/network/tcp_proxy/BUILD index 30380940f8b58..d6d7495e9122e 100644 --- a/source/extensions/filters/network/tcp_proxy/BUILD +++ b/source/extensions/filters/network/tcp_proxy/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 # TCP proxy L4 network filter. # Public docs: docs/root/configuration/network_filters/tcp_proxy_filter.rst -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/filters/network/thrift_proxy/BUILD b/source/extensions/filters/network/thrift_proxy/BUILD index a907011b3670b..78f484da3f9e8 100644 --- a/source/extensions/filters/network/thrift_proxy/BUILD +++ b/source/extensions/filters/network/thrift_proxy/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "app_exception_lib", srcs = ["app_exception_impl.cc"], hdrs = ["app_exception_impl.h"], @@ -20,7 +20,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "buffer_helper_lib", srcs = ["buffer_helper.cc"], hdrs = ["buffer_helper.h"], @@ -60,7 +60,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_manager_lib", srcs = ["conn_manager.cc"], hdrs = ["conn_manager.h"], @@ -89,7 +89,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "decoder_events_lib", hdrs = ["decoder_events.h"], deps = [ @@ -98,7 +98,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "decoder_lib", srcs = ["decoder.cc"], hdrs = ["decoder.h"], @@ -112,7 +112,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "metadata_lib", hdrs = ["metadata.h"], external_deps = ["abseil_optional"], @@ -125,14 +125,14 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tracing_interface", hdrs = ["tracing.h"], external_deps = ["abseil_optional"], deps = [], ) -envoy_cc_extension_library( +envoy_cc_library( name = "protocol_converter_lib", hdrs = [ "protocol_converter.h", @@ -144,7 +144,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "protocol_interface", hdrs = [ "protocol.h", @@ -166,7 +166,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "auto_protocol_lib", srcs = [ "auto_protocol_impl.cc", @@ -184,7 +184,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "binary_protocol_lib", srcs = [ "binary_protocol_impl.cc", @@ -199,7 +199,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "compact_protocol_lib", srcs = [ "compact_protocol_impl.cc", @@ -215,7 +215,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "twitter_protocol_lib", srcs = [ "twitter_protocol_impl.cc", @@ -232,7 +232,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "stats_lib", hdrs = ["stats.h"], deps = [ @@ -241,7 +241,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "transport_interface", hdrs = ["transport.h"], external_deps = ["abseil_optional"], @@ -258,7 +258,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "conn_state_lib", hdrs = ["conn_state.h"], deps = [ @@ -266,7 +266,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "thrift_lib", hdrs = ["thrift.h"], deps = [ @@ -275,7 +275,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "thrift_object_interface", hdrs = ["thrift_object.h"], deps = [ @@ -284,7 +284,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "thrift_object_lib", srcs = ["thrift_object_impl.cc"], hdrs = ["thrift_object_impl.h"], @@ -297,7 +297,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "auto_transport_lib", srcs = [ "auto_transport_impl.cc", @@ -318,7 +318,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "framed_transport_lib", srcs = [ "framed_transport_impl.cc", @@ -333,7 +333,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "header_transport_lib", srcs = [ "header_transport_impl.cc", @@ -349,7 +349,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "unframed_transport_lib", srcs = [ "unframed_transport_impl.cc", diff --git a/source/extensions/filters/network/thrift_proxy/filters/BUILD b/source/extensions/filters/network/thrift_proxy/filters/BUILD index 0e4b4d2aa2dd8..a1b91d2868090 100644 --- a/source/extensions/filters/network/thrift_proxy/filters/BUILD +++ b/source/extensions/filters/network/thrift_proxy/filters/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "filter_config_interface", hdrs = ["filter_config.h"], deps = [ @@ -20,7 +20,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ @@ -29,7 +29,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "filter_interface", hdrs = ["filter.h"], deps = [ @@ -43,7 +43,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ @@ -51,7 +51,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "pass_through_filter_lib", hdrs = ["pass_through_filter.h"], deps = [ diff --git a/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD b/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD index 5c136b0a03533..7252afc340a74 100644 --- a/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD +++ b/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD @@ -2,12 +2,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_cc_library", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_library( name = "ratelimit_lib", diff --git a/source/extensions/filters/network/thrift_proxy/router/BUILD b/source/extensions/filters/network/thrift_proxy/router/BUILD index cc5bd22a1b0c2..00e32bbf06a25 100644 --- a/source/extensions/filters/network/thrift_proxy/router/BUILD +++ b/source/extensions/filters/network/thrift_proxy/router/BUILD @@ -1,13 +1,13 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -24,7 +24,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_interface", hdrs = ["router.h"], external_deps = ["abseil_optional"], @@ -34,7 +34,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_ratelimit_interface", hdrs = ["router_ratelimit.h"], deps = [ @@ -44,7 +44,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_lib", srcs = ["router_impl.cc"], hdrs = ["router_impl.h"], @@ -71,7 +71,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "router_ratelimit_lib", srcs = ["router_ratelimit_impl.cc"], hdrs = ["router_ratelimit_impl.h"], diff --git a/source/extensions/filters/network/zookeeper_proxy/BUILD b/source/extensions/filters/network/zookeeper_proxy/BUILD index a5e1084c2c496..8dc6e07913921 100644 --- a/source/extensions/filters/network/zookeeper_proxy/BUILD +++ b/source/extensions/filters/network/zookeeper_proxy/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # ZooKeeper proxy L7 network filter. # Public docs: docs/root/configuration/network_filters/zookeeper_proxy_filter.rst -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "proxy_lib", srcs = [ "decoder.cc", diff --git a/source/extensions/filters/udp/dns_filter/BUILD b/source/extensions/filters/udp/dns_filter/BUILD index a3e49c53b5e56..4511fb6380da4 100644 --- a/source/extensions/filters/udp/dns_filter/BUILD +++ b/source/extensions/filters/udp/dns_filter/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "dns_filter_lib", srcs = [ "dns_filter.cc", diff --git a/source/extensions/filters/udp/udp_proxy/BUILD b/source/extensions/filters/udp/udp_proxy/BUILD index c2b7aee769306..834c8ed66a0a0 100644 --- a/source/extensions/filters/udp/udp_proxy/BUILD +++ b/source/extensions/filters/udp/udp_proxy/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "udp_proxy_filter_lib", srcs = ["udp_proxy_filter.cc"], hdrs = ["udp_proxy_filter.h"], diff --git a/source/extensions/grpc_credentials/BUILD b/source/extensions/grpc_credentials/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/grpc_credentials/BUILD +++ b/source/extensions/grpc_credentials/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/grpc_credentials/aws_iam/BUILD b/source/extensions/grpc_credentials/aws_iam/BUILD index 4c3e179096b18..ab920487e2641 100644 --- a/source/extensions/grpc_credentials/aws_iam/BUILD +++ b/source/extensions/grpc_credentials/aws_iam/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # AWS IAM gRPC Credentials -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/grpc_credentials/example/BUILD b/source/extensions/grpc_credentials/example/BUILD index f80834028f810..8c43f6c275323 100644 --- a/source/extensions/grpc_credentials/example/BUILD +++ b/source/extensions/grpc_credentials/example/BUILD @@ -1,16 +1,16 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Example gRPC Credentials -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], diff --git a/source/extensions/grpc_credentials/file_based_metadata/BUILD b/source/extensions/grpc_credentials/file_based_metadata/BUILD index b41ac277c73f6..d6c8b8d5e5fb6 100644 --- a/source/extensions/grpc_credentials/file_based_metadata/BUILD +++ b/source/extensions/grpc_credentials/file_based_metadata/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # File Based Metadata gRPC Credentials -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/health_checkers/BUILD b/source/extensions/health_checkers/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/health_checkers/BUILD +++ b/source/extensions/health_checkers/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/health_checkers/redis/BUILD b/source/extensions/health_checkers/redis/BUILD index 95e205d822149..cd852d4f78ec8 100644 --- a/source/extensions/health_checkers/redis/BUILD +++ b/source/extensions/health_checkers/redis/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Redis custom health checker. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "redis", srcs = ["redis.cc"], hdrs = ["redis.h"], @@ -45,7 +45,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility", hdrs = ["utility.h"], deps = [ diff --git a/source/extensions/internal_redirect/BUILD b/source/extensions/internal_redirect/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/internal_redirect/BUILD +++ b/source/extensions/internal_redirect/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/internal_redirect/allow_listed_routes/BUILD b/source/extensions/internal_redirect/allow_listed_routes/BUILD index 7e8d54ccb2f97..2d8148b2335ea 100644 --- a/source/extensions/internal_redirect/allow_listed_routes/BUILD +++ b/source/extensions/internal_redirect/allow_listed_routes/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "allow_listed_routes_lib", hdrs = ["allow_listed_routes.h"], deps = [ diff --git a/source/extensions/internal_redirect/previous_routes/BUILD b/source/extensions/internal_redirect/previous_routes/BUILD index 1156aac277ebf..ef2601fdfb500 100644 --- a/source/extensions/internal_redirect/previous_routes/BUILD +++ b/source/extensions/internal_redirect/previous_routes/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "previous_routes_lib", srcs = ["previous_routes.cc"], hdrs = ["previous_routes.h"], diff --git a/source/extensions/internal_redirect/safe_cross_scheme/BUILD b/source/extensions/internal_redirect/safe_cross_scheme/BUILD index 60c6f7bc20fd3..045e81c5252de 100644 --- a/source/extensions/internal_redirect/safe_cross_scheme/BUILD +++ b/source/extensions/internal_redirect/safe_cross_scheme/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "safe_cross_scheme_lib", hdrs = ["safe_cross_scheme.h"], deps = [ diff --git a/source/extensions/quic_listeners/quiche/BUILD b/source/extensions/quic_listeners/quiche/BUILD index c2e04e9f96c18..1099eb26deb8a 100644 --- a/source/extensions/quic_listeners/quiche/BUILD +++ b/source/extensions/quic_listeners/quiche/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_alarm_lib", srcs = ["envoy_quic_alarm.cc"], hdrs = ["envoy_quic_alarm.h"], @@ -23,7 +23,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_alarm_factory_lib", srcs = ["envoy_quic_alarm_factory.cc"], hdrs = ["envoy_quic_alarm_factory.h"], @@ -37,7 +37,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_connection_helper_lib", hdrs = ["envoy_quic_connection_helper.h"], tags = ["nofips"], @@ -49,7 +49,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_packet_writer_lib", srcs = ["envoy_quic_packet_writer.cc"], hdrs = ["envoy_quic_packet_writer.h"], @@ -61,7 +61,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_fake_proof_source_lib", hdrs = ["envoy_quic_fake_proof_source.h"], external_deps = ["quiche_quic_platform"], @@ -72,7 +72,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_proof_source_lib", srcs = ["envoy_quic_proof_source.cc"], hdrs = ["envoy_quic_proof_source.h"], @@ -90,7 +90,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_proof_verifier_lib", hdrs = ["envoy_quic_fake_proof_verifier.h"], external_deps = ["quiche_quic_platform"], @@ -101,7 +101,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "spdy_server_push_utils_for_envoy_lib", srcs = ["spdy_server_push_utils_for_envoy.cc"], tags = ["nofips"], @@ -112,7 +112,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_stream_lib", hdrs = ["envoy_quic_stream.h"], tags = ["nofips"], @@ -125,7 +125,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "codec_lib", srcs = ["codec_impl.cc"], hdrs = ["codec_impl.h"], @@ -141,7 +141,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_filter_manager_connection_lib", srcs = ["quic_filter_manager_connection_impl.cc"], hdrs = ["quic_filter_manager_connection_impl.h"], @@ -160,7 +160,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_server_session_lib", srcs = [ "envoy_quic_server_session.cc", @@ -184,7 +184,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_client_session_lib", srcs = [ "envoy_quic_client_session.cc", @@ -208,7 +208,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_io_handle_wrapper_lib", hdrs = ["quic_io_handle_wrapper.h"], deps = [ @@ -217,7 +217,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_connection_lib", srcs = ["envoy_quic_connection.cc"], hdrs = ["envoy_quic_connection.h"], @@ -232,7 +232,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_server_connection_lib", srcs = ["envoy_quic_server_connection.cc"], hdrs = ["envoy_quic_server_connection.h"], @@ -243,7 +243,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_client_connection_lib", srcs = ["envoy_quic_client_connection.cc"], hdrs = ["envoy_quic_client_connection.h"], @@ -257,7 +257,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_dispatcher_lib", srcs = ["envoy_quic_dispatcher.cc"], hdrs = ["envoy_quic_dispatcher.h"], @@ -274,13 +274,13 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_simulated_watermark_buffer_lib", hdrs = ["envoy_quic_simulated_watermark_buffer.h"], deps = ["//source/common/common:assert_lib"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "active_quic_listener_lib", srcs = ["active_quic_listener.cc"], hdrs = ["active_quic_listener.h"], @@ -301,7 +301,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "active_quic_listener_config_lib", srcs = ["active_quic_listener_config.cc"], hdrs = ["active_quic_listener_config.h"], @@ -319,7 +319,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_utils_lib", srcs = ["envoy_quic_utils.cc"], hdrs = ["envoy_quic_utils.h"], @@ -353,7 +353,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_crypto_server_stream_lib", srcs = ["envoy_quic_crypto_server_stream.cc"], hdrs = ["envoy_quic_crypto_server_stream.h"], diff --git a/source/extensions/quic_listeners/quiche/platform/BUILD b/source/extensions/quic_listeners/quiche/platform/BUILD index 74798ee8acfbe..e7f70f86cb264 100644 --- a/source/extensions/quic_listeners/quiche/platform/BUILD +++ b/source/extensions/quic_listeners/quiche/platform/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() # Build targets in this package are part of the QUICHE platform implementation. # These implementations are the infrastructure building block for QUIC. They are @@ -33,7 +33,7 @@ envoy_package() # TODO: add build target for quic_platform_impl_lib -envoy_cc_extension_library( +envoy_cc_library( name = "flags_impl_lib", srcs = ["flags_impl.cc"], hdrs = [ @@ -47,7 +47,7 @@ envoy_cc_extension_library( visibility = ["//visibility:public"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "string_utils_lib", srcs = ["string_utils.cc"], hdrs = ["string_utils.h"], @@ -59,7 +59,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "http2_platform_impl_lib", hdrs = [ "http2_arraysize_impl.h", @@ -85,14 +85,14 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_export_impl_lib", hdrs = ["quic_export_impl.h"], tags = ["nofips"], visibility = ["//visibility:public"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_logging_impl_lib", srcs = ["quic_logging_impl.cc"], hdrs = [ @@ -108,7 +108,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_base_impl_lib", srcs = [ "quic_mem_slice_impl.cc", @@ -160,7 +160,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_impl_lib", srcs = [ "quic_cert_utils_impl.cc", @@ -192,7 +192,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_mem_slice_span_impl_lib", srcs = ["quic_mem_slice_span_impl.cc"], hdrs = ["quic_mem_slice_span_impl.h"], @@ -209,7 +209,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_mem_slice_storage_impl_lib", srcs = ["quic_mem_slice_storage_impl.cc"], hdrs = ["quic_mem_slice_storage_impl.h"], @@ -229,7 +229,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quic_platform_udp_socket_impl_lib", hdrs = select({ "//bazel:linux": ["quic_udp_socket_platform_impl.h"], @@ -239,7 +239,7 @@ envoy_cc_extension_library( tags = ["nofips"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "envoy_quic_clock_lib", srcs = ["envoy_quic_clock.cc"], hdrs = ["envoy_quic_clock.h"], @@ -251,7 +251,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quiche_common_platform_optional_impl_lib", hdrs = ["quiche_optional_impl.h"], external_deps = [ @@ -260,7 +260,7 @@ envoy_cc_extension_library( visibility = ["//visibility:public"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quiche_common_platform_impl_lib", srcs = ["quiche_time_utils_impl.cc"], hdrs = [ @@ -286,7 +286,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "spdy_platform_impl_lib", hdrs = [ "spdy_arraysize_impl.h", @@ -319,21 +319,21 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "spdy_platform_unsafe_arena_impl_lib", hdrs = ["spdy_unsafe_arena_impl.h"], visibility = ["//visibility:public"], deps = ["@com_googlesource_quiche//:spdy_simple_arena_lib"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quiche_common_platform_export_impl_lib", hdrs = ["quiche_export_impl.h"], tags = ["nofips"], visibility = ["//visibility:public"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "quiche_common_platform_endian_impl_lib", hdrs = ["quiche_endian_impl.h"], tags = ["nofips"], diff --git a/source/extensions/resource_monitors/BUILD b/source/extensions/resource_monitors/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/resource_monitors/BUILD +++ b/source/extensions/resource_monitors/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/resource_monitors/common/BUILD b/source/extensions/resource_monitors/common/BUILD index 6d9c092d27cb5..a17f10b5c3780 100644 --- a/source/extensions/resource_monitors/common/BUILD +++ b/source/extensions/resource_monitors/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], # This resource monitoring library is considered core code. diff --git a/source/extensions/resource_monitors/fixed_heap/BUILD b/source/extensions/resource_monitors/fixed_heap/BUILD index c633cc06e1801..6c2022537d3d7 100644 --- a/source/extensions/resource_monitors/fixed_heap/BUILD +++ b/source/extensions/resource_monitors/fixed_heap/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "fixed_heap_monitor", srcs = ["fixed_heap_monitor.cc"], hdrs = ["fixed_heap_monitor.h"], diff --git a/source/extensions/resource_monitors/injected_resource/BUILD b/source/extensions/resource_monitors/injected_resource/BUILD index c9be4dd581628..6cff7be112ee2 100644 --- a/source/extensions/resource_monitors/injected_resource/BUILD +++ b/source/extensions/resource_monitors/injected_resource/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "injected_resource_monitor", srcs = ["injected_resource_monitor.cc"], hdrs = ["injected_resource_monitor.h"], diff --git a/source/extensions/retry/host/BUILD b/source/extensions/retry/host/BUILD index f11bd2e165fe5..22d835b407061 100644 --- a/source/extensions/retry/host/BUILD +++ b/source/extensions/retry/host/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/retry/host/omit_canary_hosts/BUILD b/source/extensions/retry/host/omit_canary_hosts/BUILD index 54f513baf098a..9427fa9fc5071 100644 --- a/source/extensions/retry/host/omit_canary_hosts/BUILD +++ b/source/extensions/retry/host/omit_canary_hosts/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "omit_canary_hosts_predicate_lib", hdrs = ["omit_canary_hosts.h"], deps = [ diff --git a/source/extensions/retry/host/omit_host_metadata/BUILD b/source/extensions/retry/host/omit_host_metadata/BUILD index 3930137b6fcf0..5e1aaa38c5af5 100644 --- a/source/extensions/retry/host/omit_host_metadata/BUILD +++ b/source/extensions/retry/host/omit_host_metadata/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "omit_host_metadata_predicate_lib", srcs = ["omit_host_metadata.cc"], hdrs = ["omit_host_metadata.h"], diff --git a/source/extensions/retry/host/previous_hosts/BUILD b/source/extensions/retry/host/previous_hosts/BUILD index 94b9c9fe96aaf..78e78b1a330e1 100644 --- a/source/extensions/retry/host/previous_hosts/BUILD +++ b/source/extensions/retry/host/previous_hosts/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "previous_hosts_predicate_lib", hdrs = ["previous_hosts.h"], deps = [ diff --git a/source/extensions/retry/priority/BUILD b/source/extensions/retry/priority/BUILD index f11bd2e165fe5..22d835b407061 100644 --- a/source/extensions/retry/priority/BUILD +++ b/source/extensions/retry/priority/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], deps = [ diff --git a/source/extensions/retry/priority/previous_priorities/BUILD b/source/extensions/retry/priority/previous_priorities/BUILD index 8b381ff89f258..66a592d9c7727 100644 --- a/source/extensions/retry/priority/previous_priorities/BUILD +++ b/source/extensions/retry/priority/previous_priorities/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "previous_priorities_lib", srcs = ["previous_priorities.cc"], hdrs = ["previous_priorities.h"], diff --git a/source/extensions/stat_sinks/BUILD b/source/extensions/stat_sinks/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/stat_sinks/BUILD +++ b/source/extensions/stat_sinks/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/stat_sinks/common/statsd/BUILD b/source/extensions/stat_sinks/common/statsd/BUILD index 1a0c7d4f8a3ef..5e3d6a771d21e 100644 --- a/source/extensions/stat_sinks/common/statsd/BUILD +++ b/source/extensions/stat_sinks/common/statsd/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "statsd_lib", srcs = ["statsd.cc"], hdrs = ["statsd.h"], diff --git a/source/extensions/stat_sinks/dog_statsd/BUILD b/source/extensions/stat_sinks/dog_statsd/BUILD index 2a6e1d7d9c442..662a3c18c24f4 100644 --- a/source/extensions/stat_sinks/dog_statsd/BUILD +++ b/source/extensions/stat_sinks/dog_statsd/BUILD @@ -1,7 +1,7 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -9,7 +9,7 @@ licenses(["notice"]) # Apache 2 # Stats sink for the DataDog (https://www.datadoghq.com/) variant of the statsd protocol # (https://docs.datadoghq.com/developers/dogstatsd/). -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/stat_sinks/hystrix/BUILD b/source/extensions/stat_sinks/hystrix/BUILD index db527e18a2065..7b28f8218c1b9 100644 --- a/source/extensions/stat_sinks/hystrix/BUILD +++ b/source/extensions/stat_sinks/hystrix/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Stats sink for the basic version of the hystrix protocol (https://github.com/b/hystrix_spec). -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -27,7 +27,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "hystrix_lib", srcs = ["hystrix.cc"], hdrs = ["hystrix.h"], diff --git a/source/extensions/stat_sinks/metrics_service/BUILD b/source/extensions/stat_sinks/metrics_service/BUILD index 0f2fb9ee28db6..df78d152ba532 100644 --- a/source/extensions/stat_sinks/metrics_service/BUILD +++ b/source/extensions/stat_sinks/metrics_service/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Stats sink for the gRPC metrics service: api/envoy/service/metrics/v2/metrics_service.proto -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "metrics_service_grpc_lib", srcs = ["grpc_metrics_service_impl.cc"], hdrs = ["grpc_metrics_service_impl.h"], @@ -26,7 +26,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "metrics_proto_descriptors_lib", srcs = ["grpc_metrics_proto_descriptors.cc"], hdrs = ["grpc_metrics_proto_descriptors.h"], diff --git a/source/extensions/stat_sinks/statsd/BUILD b/source/extensions/stat_sinks/statsd/BUILD index b9f8b7270a96a..de6a886773d25 100644 --- a/source/extensions/stat_sinks/statsd/BUILD +++ b/source/extensions/stat_sinks/statsd/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Stats sink for the basic version of the statsd protocol (https://github.com/b/statsd_spec). -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/tracers/common/BUILD b/source/extensions/tracers/common/BUILD index 9112080211eee..450aef98b536f 100644 --- a/source/extensions/tracers/common/BUILD +++ b/source/extensions/tracers/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "factory_base_lib", hdrs = ["factory_base.h"], deps = [ diff --git a/source/extensions/tracers/common/ot/BUILD b/source/extensions/tracers/common/ot/BUILD index 76a51767f2067..beced5b3f219e 100644 --- a/source/extensions/tracers/common/ot/BUILD +++ b/source/extensions/tracers/common/ot/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "opentracing_driver_lib", srcs = [ "opentracing_driver_impl.cc", diff --git a/source/extensions/tracers/datadog/BUILD b/source/extensions/tracers/datadog/BUILD index 49d1cb75acff6..7ad1d164203e9 100644 --- a/source/extensions/tracers/datadog/BUILD +++ b/source/extensions/tracers/datadog/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Trace driver for Datadog (https://datadoghq.com/) -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "datadog_tracer_lib", srcs = [ "datadog_tracer_impl.cc", diff --git a/source/extensions/tracers/dynamic_ot/BUILD b/source/extensions/tracers/dynamic_ot/BUILD index 3b186fd958fc8..95b903be987d6 100644 --- a/source/extensions/tracers/dynamic_ot/BUILD +++ b/source/extensions/tracers/dynamic_ot/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Trace driver for dynamically loadable C++ OpenTracing drivers (http://opentracing.io/). -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "dynamic_opentracing_driver_lib", srcs = [ "dynamic_opentracing_driver_impl.cc", diff --git a/source/extensions/tracers/lightstep/BUILD b/source/extensions/tracers/lightstep/BUILD index 9ec89c6c71971..6c287b4a75fe6 100644 --- a/source/extensions/tracers/lightstep/BUILD +++ b/source/extensions/tracers/lightstep/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Trace driver for LightStep (https://lightstep.com/) -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "lightstep_tracer_lib", srcs = [ "lightstep_tracer_impl.cc", diff --git a/source/extensions/tracers/opencensus/BUILD b/source/extensions/tracers/opencensus/BUILD index a5327d22102d5..2513be7249f6a 100644 --- a/source/extensions/tracers/opencensus/BUILD +++ b/source/extensions/tracers/opencensus/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", "envoy_select_google_grpc", ) @@ -10,7 +10,7 @@ licenses(["notice"]) # Apache 2 # Trace driver for OpenCensus: https://opencensus.io/ -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -24,7 +24,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "opencensus_tracer_impl", srcs = ["opencensus_tracer_impl.cc"], hdrs = ["opencensus_tracer_impl.h"], diff --git a/source/extensions/tracers/xray/BUILD b/source/extensions/tracers/xray/BUILD index e2b2a707011fe..ef486aaac4eb1 100644 --- a/source/extensions/tracers/xray/BUILD +++ b/source/extensions/tracers/xray/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", "envoy_proto_library", ) @@ -10,14 +10,14 @@ licenses(["notice"]) # Apache 2 # Trace driver for AWS X-Ray. -envoy_package() +envoy_extension_package() envoy_proto_library( name = "daemon", srcs = ["daemon.proto"], ) -envoy_cc_extension_library( +envoy_cc_library( name = "xray_lib", srcs = [ "daemon_broker.cc", diff --git a/source/extensions/tracers/zipkin/BUILD b/source/extensions/tracers/zipkin/BUILD index e9b067664f3d2..bb76f9f16ed4f 100644 --- a/source/extensions/tracers/zipkin/BUILD +++ b/source/extensions/tracers/zipkin/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Trace driver for Zipkin (https://zipkin.io/). -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "zipkin_lib", srcs = [ "span_buffer.cc", diff --git a/source/extensions/transport_sockets/BUILD b/source/extensions/transport_sockets/BUILD index c3f77cd9bc822..40a5e79b39d3b 100644 --- a/source/extensions/transport_sockets/BUILD +++ b/source/extensions/transport_sockets/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "well_known_names", hdrs = ["well_known_names.h"], # well known names files are public as long as they exist. diff --git a/source/extensions/transport_sockets/alts/BUILD b/source/extensions/transport_sockets/alts/BUILD index ea44dea23eccd..631c74a1c8d3f 100644 --- a/source/extensions/transport_sockets/alts/BUILD +++ b/source/extensions/transport_sockets/alts/BUILD @@ -1,8 +1,8 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 @@ -10,9 +10,9 @@ licenses(["notice"]) # Apache 2 # ALTS transport socket. This provides Google's ALTS protocol support in GCP to Envoy. # https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security/ -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "grpc_tsi_wrapper", hdrs = [ "grpc_tsi.h", @@ -49,7 +49,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tsi_frame_protector", srcs = [ "tsi_frame_protector.cc", @@ -63,7 +63,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tsi_handshaker", srcs = [ "tsi_handshaker.cc", @@ -78,7 +78,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tsi_socket", srcs = [ "tsi_socket.cc", @@ -101,7 +101,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "noop_transport_socket_callbacks_lib", hdrs = ["noop_transport_socket_callbacks.h"], deps = [ diff --git a/source/extensions/transport_sockets/common/BUILD b/source/extensions/transport_sockets/common/BUILD index 7af5ddf77e5f2..eee229da12fb2 100644 --- a/source/extensions/transport_sockets/common/BUILD +++ b/source/extensions/transport_sockets/common/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "passthrough_lib", srcs = ["passthrough.cc"], hdrs = ["passthrough.h"], diff --git a/source/extensions/transport_sockets/proxy_protocol/BUILD b/source/extensions/transport_sockets/proxy_protocol/BUILD index d44382487e857..251721adfbb4a 100644 --- a/source/extensions/transport_sockets/proxy_protocol/BUILD +++ b/source/extensions/transport_sockets/proxy_protocol/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "upstream_proxy_protocol", diff --git a/source/extensions/transport_sockets/raw_buffer/BUILD b/source/extensions/transport_sockets/raw_buffer/BUILD index 179ca04883f83..3d4b41c96cdee 100644 --- a/source/extensions/transport_sockets/raw_buffer/BUILD +++ b/source/extensions/transport_sockets/raw_buffer/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Built-in plaintext connection transport socket. -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/transport_sockets/tap/BUILD b/source/extensions/transport_sockets/tap/BUILD index 2a4cb80b899d6..ba921cb5ea1b8 100644 --- a/source/extensions/transport_sockets/tap/BUILD +++ b/source/extensions/transport_sockets/tap/BUILD @@ -1,17 +1,17 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # tap wrapper around a transport socket. -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "tap_config_interface", hdrs = ["tap_config.h"], deps = [ @@ -20,7 +20,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_config_impl", srcs = ["tap_config_impl.cc"], hdrs = ["tap_config_impl.h"], @@ -33,7 +33,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "tap_lib", srcs = ["tap.cc"], hdrs = ["tap.h"], diff --git a/source/extensions/transport_sockets/tls/BUILD b/source/extensions/transport_sockets/tls/BUILD index 6d8cfa4c2c478..1cd091050d15a 100644 --- a/source/extensions/transport_sockets/tls/BUILD +++ b/source/extensions/transport_sockets/tls/BUILD @@ -1,15 +1,15 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # Built-in TLS connection transport socket. -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -28,7 +28,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "ssl_socket_lib", srcs = ["ssl_socket.cc"], hdrs = ["ssl_socket.h"], @@ -59,7 +59,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "context_config_lib", srcs = ["context_config_impl.cc"], hdrs = ["context_config_impl.h"], @@ -86,7 +86,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "context_lib", srcs = [ "context_impl.cc", @@ -127,7 +127,7 @@ envoy_cc_extension_library( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "utility_lib", srcs = ["utility.cc"], hdrs = ["utility.h"], diff --git a/source/extensions/transport_sockets/tls/private_key/BUILD b/source/extensions/transport_sockets/tls/private_key/BUILD index dac439c7ad4c7..f6163ca640126 100644 --- a/source/extensions/transport_sockets/tls/private_key/BUILD +++ b/source/extensions/transport_sockets/tls/private_key/BUILD @@ -1,14 +1,14 @@ load( "//bazel:envoy_build_system.bzl", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() -envoy_cc_extension_library( +envoy_cc_library( name = "private_key_manager_lib", srcs = [ "private_key_manager_impl.cc", diff --git a/source/extensions/upstreams/http/generic/BUILD b/source/extensions/upstreams/http/generic/BUILD index 712b0d9632ea1..563b4bf5a9e2b 100644 --- a/source/extensions/upstreams/http/generic/BUILD +++ b/source/extensions/upstreams/http/generic/BUILD @@ -1,12 +1,12 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_package", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", diff --git a/source/extensions/upstreams/http/http/BUILD b/source/extensions/upstreams/http/http/BUILD index 72b3dc56b8585..4c0b5be394b94 100644 --- a/source/extensions/upstreams/http/http/BUILD +++ b/source/extensions/upstreams/http/http/BUILD @@ -1,13 +1,13 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "upstream_request_lib", srcs = [ "upstream_request.cc", diff --git a/source/extensions/upstreams/http/tcp/BUILD b/source/extensions/upstreams/http/tcp/BUILD index 477d833fbe5ac..6daa95ce15d7e 100644 --- a/source/extensions/upstreams/http/tcp/BUILD +++ b/source/extensions/upstreams/http/tcp/BUILD @@ -1,13 +1,13 @@ load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", - "envoy_cc_extension_library", - "envoy_package", + "envoy_cc_library", + "envoy_extension_package", ) licenses(["notice"]) # Apache 2 -envoy_package() +envoy_extension_package() envoy_cc_extension( name = "config", @@ -25,7 +25,7 @@ envoy_cc_extension( ], ) -envoy_cc_extension_library( +envoy_cc_library( name = "upstream_request_lib", srcs = [ "upstream_request.cc", diff --git a/tools/code_format/envoy_build_fixer.py b/tools/code_format/envoy_build_fixer.py index 51f7d0fb866ce..9af90f0f7e219 100755 --- a/tools/code_format/envoy_build_fixer.py +++ b/tools/code_format/envoy_build_fixer.py @@ -2,7 +2,7 @@ # Enforces: # - License headers on Envoy BUILD files -# - envoy_package() top-level invocation for standard Envoy package setup. +# - envoy_package() or envoy_extension_package() top-level invocation for standard Envoy package setup. # - Infers API dependencies from source files. # - Misc. cleanups: avoids redundant blank lines, removes unused loads. # - Maybe more later? @@ -31,8 +31,9 @@ # Match an Envoy rule, e.g. envoy_cc_library( in a BUILD file. ENVOY_RULE_REGEX = re.compile(r'envoy[_\w]+\(') -# Match a load() statement for the envoy_package macro. +# Match a load() statement for the envoy_package macros. PACKAGE_LOAD_BLOCK_REGEX = re.compile('("envoy_package".*?\)\n)', re.DOTALL) +EXTENSION_PACKAGE_LOAD_BLOCK_REGEX = re.compile('("envoy_extension_package".*?\)\n)', re.DOTALL) # Match Buildozer 'print' output. Example of Buildozer print output: # cc_library json_transcoder_filter_lib [json_transcoder_filter.cc] (missing) (missing) @@ -70,20 +71,29 @@ def RunBuildozer(cmds, contents): # Add an Apache 2 license and envoy_package() import and rule as needed. -def FixPackageAndLicense(contents): +def FixPackageAndLicense(path, contents): + regex_to_use = PACKAGE_LOAD_BLOCK_REGEX + package_string = 'envoy_package' + + if 'source/extensions' in path: + regex_to_use = EXTENSION_PACKAGE_LOAD_BLOCK_REGEX + package_string = 'envoy_extension_package' + # Ensure we have an envoy_package import load if this is a real Envoy package. We also allow # the prefix to be overridden if envoy is included in a larger workspace. if re.search(ENVOY_RULE_REGEX, contents): + new_load = 'new_load {}//bazel:envoy_build_system.bzl %s' % package_string contents = RunBuildozer([ - ('new_load {}//bazel:envoy_build_system.bzl envoy_package'.format( - os.getenv("ENVOY_BAZEL_PREFIX", "")), '__pkg__'), + (new_load.format(os.getenv("ENVOY_BAZEL_PREFIX", "")), '__pkg__'), ], contents) # Envoy package is inserted after the load block containing the # envoy_package import. - if 'envoy_package()' not in contents: - contents = re.sub(PACKAGE_LOAD_BLOCK_REGEX, r'\1\nenvoy_package()\n\n', contents) - if 'envoy_package()' not in contents: - raise EnvoyBuildFixerError('Unable to insert envoy_package()') + package_and_parens = package_string + '()' + if package_and_parens not in contents: + contents = re.sub(regex_to_use, r'\1\n%s\n\n' % package_and_parens, contents) + if package_and_parens not in contents: + raise EnvoyBuildFixerError('Unable to insert %s' % package_and_parens) + # Delete old licenses. if re.search(OLD_LICENSES_REGEX, contents): contents = re.sub(OLD_LICENSES_REGEX, '', contents) @@ -173,7 +183,7 @@ def FixBuild(path): with open(path, 'r') as f: contents = f.read() xforms = [ - FixPackageAndLicense, + functools.partial(FixPackageAndLicense, path), functools.partial(FixApiDeps, path), BuildifierLint, ] From 4cc486fbd915d3af820388caaf9f42ab4551ad98 Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Thu, 30 Jul 2020 16:52:27 -0400 Subject: [PATCH 5/9] fix build? Signed-off-by: Alyssa Wilk --- bazel/envoy_build_system.bzl | 1 - 1 file changed, 1 deletion(-) diff --git a/bazel/envoy_build_system.bzl b/bazel/envoy_build_system.bzl index 81cfe2e042e21..500ccece9f1df 100644 --- a/bazel/envoy_build_system.bzl +++ b/bazel/envoy_build_system.bzl @@ -7,7 +7,6 @@ load( ":envoy_library.bzl", _envoy_basic_cc_library = "envoy_basic_cc_library", _envoy_cc_extension = "envoy_cc_extension", - _envoy_cc_extension_library = "envoy_cc_extension_library", _envoy_cc_library = "envoy_cc_library", _envoy_cc_posix_library = "envoy_cc_posix_library", _envoy_cc_win32_library = "envoy_cc_win32_library", From 6ad873314bb382e462f69ad79edb0c0f8f6102b9 Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Thu, 30 Jul 2020 17:00:47 -0400 Subject: [PATCH 6/9] really build fix? Signed-off-by: Alyssa Wilk --- bazel/envoy_build_system.bzl | 1 - 1 file changed, 1 deletion(-) diff --git a/bazel/envoy_build_system.bzl b/bazel/envoy_build_system.bzl index 500ccece9f1df..a96a2cdabc0dc 100644 --- a/bazel/envoy_build_system.bzl +++ b/bazel/envoy_build_system.bzl @@ -181,7 +181,6 @@ envoy_cc_binary = _envoy_cc_binary envoy_basic_cc_library = _envoy_basic_cc_library envoy_cc_extension = _envoy_cc_extension envoy_cc_library = _envoy_cc_library -envoy_cc_extension_library = _envoy_cc_extension_library envoy_cc_posix_library = _envoy_cc_posix_library envoy_cc_win32_library = _envoy_cc_win32_library envoy_include_prefix = _envoy_include_prefix From 6a5fe076a708b7d2a2035e555165f2a56d155b09 Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Thu, 30 Jul 2020 17:38:32 -0400 Subject: [PATCH 7/9] review comments Signed-off-by: Alyssa Wilk --- BUILD | 11 ++++++++--- bazel/envoy_library.bzl | 2 -- source/extensions/access_loggers/file/BUILD | 5 +++-- source/extensions/access_loggers/grpc/BUILD | 12 +++++++----- source/extensions/common/crypto/BUILD | 9 +++++---- source/extensions/extensions_build_config.bzl | 6 ++++++ source/extensions/filters/http/buffer/BUILD | 5 +++-- source/extensions/filters/http/cors/BUILD | 5 +++-- .../extensions/filters/http/grpc_http1_bridge/BUILD | 7 ++++--- source/extensions/filters/http/health_check/BUILD | 7 ++++--- source/extensions/filters/http/ip_tagging/BUILD | 5 +++-- source/extensions/filters/http/on_demand/BUILD | 7 ++++--- source/extensions/filters/http/rbac/BUILD | 5 +++-- .../extensions/filters/listener/original_dst/BUILD | 5 +++-- .../extensions/filters/listener/proxy_protocol/BUILD | 5 +++-- .../extensions/filters/listener/tls_inspector/BUILD | 10 ++++++++-- source/extensions/filters/network/echo/BUILD | 5 +++-- source/extensions/filters/network/redis_proxy/BUILD | 5 +++-- .../internal_redirect/allow_listed_routes/BUILD | 5 +++-- .../internal_redirect/previous_routes/BUILD | 5 +++-- .../internal_redirect/safe_cross_scheme/BUILD | 5 +++-- .../resource_monitors/injected_resource/BUILD | 7 ++++--- source/extensions/stat_sinks/statsd/BUILD | 5 +++-- source/extensions/tracers/zipkin/BUILD | 5 +++-- source/extensions/transport_sockets/tap/BUILD | 9 +++++---- 25 files changed, 97 insertions(+), 60 deletions(-) diff --git a/BUILD b/BUILD index cbe4a80382fae..eaa0f62259111 100644 --- a/BUILD +++ b/BUILD @@ -1,3 +1,8 @@ +load( + "//source/extensions:extensions_build_config.bzl", + "ADDITIONAL_VISIBILITY", +) + licenses(["notice"]) # Apache 2 exports_files([ @@ -6,7 +11,7 @@ exports_files([ ]) # These two definitions exist to help reduce Envoy upstream core code depending on extensions. -# To avoid visibility problems, one can replace the package lists below with "//visibility:public" +# To avoid visibility problems, one can extend ADDITIONAL_VISIBILITY in source/extensions/extensions_build_config.bzl # # TODO(#9953) //test/config_test:__pkg__ should probably be split up and removed. # TODO(#9953) the config fuzz tests should be moved somewhere local and //test/config_test and //test/server removed. @@ -19,7 +24,7 @@ package_group( "//test/extensions/...", "//test/server", "//test/server/config_validation", - ], + ] + ADDITIONAL_VISIBILITY, ) package_group( @@ -27,5 +32,5 @@ package_group( packages = [ "//source/extensions/...", "//test/extensions/...", - ], + ] + ADDITIONAL_VISIBILITY, ) diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index 5b7832d8f6df8..63e4b963bb18d 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -70,10 +70,8 @@ def envoy_cc_extension( undocumented = False, status = "stable", tags = [], - extra_visibility = [], visibility = ["//:extension_config"], **kwargs): - visibility = visibility + extra_visibility if security_posture not in EXTENSION_SECURITY_POSTURES: fail("Unknown extension security posture: " + security_posture) if status not in EXTENSION_STATUS_VALUES: diff --git a/source/extensions/access_loggers/file/BUILD b/source/extensions/access_loggers/file/BUILD index 93e2ad5b5c614..b95be9f7228cc 100644 --- a/source/extensions/access_loggers/file/BUILD +++ b/source/extensions/access_loggers/file/BUILD @@ -27,11 +27,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) determine if this is core or should be cleaned up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ ":file_access_log_lib", "//include/envoy/registry", diff --git a/source/extensions/access_loggers/grpc/BUILD b/source/extensions/access_loggers/grpc/BUILD index 0592f6c34b19c..94683341a2f70 100644 --- a/source/extensions/access_loggers/grpc/BUILD +++ b/source/extensions/access_loggers/grpc/BUILD @@ -97,12 +97,13 @@ envoy_cc_extension( name = "http_config", srcs = ["http_config.cc"], hdrs = ["http_config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/common/access_log:__subpackages__", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ ":config_utils", "//include/envoy/server:access_log_config_interface", @@ -119,12 +120,13 @@ envoy_cc_extension( name = "tcp_config", srcs = ["tcp_config.cc"], hdrs = ["tcp_config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ - "//test/integration:__subpackages__", + visibility = [ + "//:extension_config", "//test/common/access_log:__subpackages__", + "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ ":config_utils", "//include/envoy/server:access_log_config_interface", diff --git a/source/extensions/common/crypto/BUILD b/source/extensions/common/crypto/BUILD index eed35256229ab..ea1802a97570c 100644 --- a/source/extensions/common/crypto/BUILD +++ b/source/extensions/common/crypto/BUILD @@ -21,13 +21,14 @@ envoy_cc_extension( external_deps = [ "ssl", ], + security_posture = "unknown", + undocumented = True, # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ - "//test/common/crypto:__subpackages__", + visibility = [ + "//:extension_config", "//test/common/config:__subpackages__", + "//test/common/crypto:__subpackages__", ], - security_posture = "unknown", - undocumented = True, deps = [ "//include/envoy/buffer:buffer_interface", "//source/common/common:assert_lib", diff --git a/source/extensions/extensions_build_config.bzl b/source/extensions/extensions_build_config.bzl index d69443ada6a0e..0ae05caa57c02 100644 --- a/source/extensions/extensions_build_config.bzl +++ b/source/extensions/extensions_build_config.bzl @@ -198,3 +198,9 @@ EXTENSIONS = { } + +# This can be used to extend the visibility rules for Envoy extensions +# (//:extension_config and //:extension_library in //BUILD) +# if downstream Envoy builds need to directly reference envoy extensions. +ADDITIONAL_VISIBILITY = [ + ] diff --git a/source/extensions/filters/http/buffer/BUILD b/source/extensions/filters/http/buffer/BUILD index 0372f84132f67..9f9364576031c 100644 --- a/source/extensions/filters/http/buffer/BUILD +++ b/source/extensions/filters/http/buffer/BUILD @@ -37,11 +37,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//source/extensions/filters/http:well_known_names", diff --git a/source/extensions/filters/http/cors/BUILD b/source/extensions/filters/http/cors/BUILD index bd5ce89be6821..903fa5599ff01 100644 --- a/source/extensions/filters/http/cors/BUILD +++ b/source/extensions/filters/http/cors/BUILD @@ -31,11 +31,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//include/envoy/server:filter_config_interface", diff --git a/source/extensions/filters/http/grpc_http1_bridge/BUILD b/source/extensions/filters/http/grpc_http1_bridge/BUILD index dc8a352b218dd..1a978232aa069 100644 --- a/source/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_bridge/BUILD @@ -33,13 +33,14 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "unknown", # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//source/exe:__pkg__", - "//test/server:__subpackages__", "//test/integration:__subpackages__", + "//test/server:__subpackages__", ], - security_posture = "unknown", deps = [ "//include/envoy/registry", "//include/envoy/server:filter_config_interface", diff --git a/source/extensions/filters/http/health_check/BUILD b/source/extensions/filters/http/health_check/BUILD index 4964130e5545c..dd4fa02f30b30 100644 --- a/source/extensions/filters/http/health_check/BUILD +++ b/source/extensions/filters/http/health_check/BUILD @@ -37,13 +37,14 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ - "//test/integration:__subpackages__", + visibility = [ + "//:extension_config", "//test/common/filter/http:__subpackages__", + "//test/integration:__subpackages__", "//test/server:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//source/common/http:header_utility_lib", diff --git a/source/extensions/filters/http/ip_tagging/BUILD b/source/extensions/filters/http/ip_tagging/BUILD index 6ee659df773cf..5e27f10bb15c0 100644 --- a/source/extensions/filters/http/ip_tagging/BUILD +++ b/source/extensions/filters/http/ip_tagging/BUILD @@ -33,11 +33,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//source/common/protobuf:utility_lib", diff --git a/source/extensions/filters/http/on_demand/BUILD b/source/extensions/filters/http/on_demand/BUILD index 052f892696e7f..86b029ca21d3d 100644 --- a/source/extensions/filters/http/on_demand/BUILD +++ b/source/extensions/filters/http/on_demand/BUILD @@ -30,12 +30,13 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) classify and clean up. - extra_visibility = [ - "//test/integration:__subpackages__", + visibility = [ + "//:extension_config", "//test/common/access_log:__subpackages__", + "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//source/extensions/filters/http:well_known_names", diff --git a/source/extensions/filters/http/rbac/BUILD b/source/extensions/filters/http/rbac/BUILD index 31dbbad82db10..1f7802394c705 100644 --- a/source/extensions/filters/http/rbac/BUILD +++ b/source/extensions/filters/http/rbac/BUILD @@ -13,11 +13,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//source/extensions/filters/http:well_known_names", diff --git a/source/extensions/filters/listener/original_dst/BUILD b/source/extensions/filters/listener/original_dst/BUILD index 185605baa2104..78c09f58155c3 100644 --- a/source/extensions/filters/listener/original_dst/BUILD +++ b/source/extensions/filters/listener/original_dst/BUILD @@ -28,11 +28,12 @@ envoy_cc_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ ":original_dst_lib", "//include/envoy/registry", diff --git a/source/extensions/filters/listener/proxy_protocol/BUILD b/source/extensions/filters/listener/proxy_protocol/BUILD index 302940fff6b79..810c99d4021f0 100644 --- a/source/extensions/filters/listener/proxy_protocol/BUILD +++ b/source/extensions/filters/listener/proxy_protocol/BUILD @@ -39,11 +39,12 @@ envoy_cc_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//include/envoy/server:filter_config_interface", diff --git a/source/extensions/filters/listener/tls_inspector/BUILD b/source/extensions/filters/listener/tls_inspector/BUILD index deaaa243f82d8..35a163b26b994 100644 --- a/source/extensions/filters/listener/tls_inspector/BUILD +++ b/source/extensions/filters/listener/tls_inspector/BUILD @@ -17,6 +17,11 @@ envoy_cc_library( srcs = ["tls_inspector.cc"], hdrs = ["tls_inspector.h"], external_deps = ["ssl"], + # TODO(#9953) clean up. + visibility = [ + "//:extension_config", + "//test/integration:__subpackages__", + ], deps = [ "//include/envoy/event:dispatcher_interface", "//include/envoy/event:timer_interface", @@ -32,11 +37,12 @@ envoy_cc_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + security_posture = "robust_to_untrusted_downstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ "//include/envoy/registry", "//include/envoy/server:filter_config_interface", diff --git a/source/extensions/filters/network/echo/BUILD b/source/extensions/filters/network/echo/BUILD index 10105f1621c3d..6b136705258c0 100644 --- a/source/extensions/filters/network/echo/BUILD +++ b/source/extensions/filters/network/echo/BUILD @@ -28,11 +28,12 @@ envoy_cc_library( envoy_cc_extension( name = "config", srcs = ["config.cc"], + security_posture = "unknown", # TODO(#9953) move echo integration test to extensions. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "unknown", deps = [ ":echo", "//include/envoy/registry", diff --git a/source/extensions/filters/network/redis_proxy/BUILD b/source/extensions/filters/network/redis_proxy/BUILD index f162a8bf9b766..c0b742efa02e5 100644 --- a/source/extensions/filters/network/redis_proxy/BUILD +++ b/source/extensions/filters/network/redis_proxy/BUILD @@ -118,11 +118,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "requires_trusted_downstream_and_upstream", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "requires_trusted_downstream_and_upstream", deps = [ "//include/envoy/upstream:upstream_interface", "//source/extensions/common/redis:cluster_refresh_manager_lib", diff --git a/source/extensions/internal_redirect/allow_listed_routes/BUILD b/source/extensions/internal_redirect/allow_listed_routes/BUILD index 2d8148b2335ea..6fe252ddf6bb6 100644 --- a/source/extensions/internal_redirect/allow_listed_routes/BUILD +++ b/source/extensions/internal_redirect/allow_listed_routes/BUILD @@ -24,11 +24,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream_and_upstream", # TODO(#9953) clean up by moving the redirect test to extensions. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":allow_listed_routes_lib", "//include/envoy/registry", diff --git a/source/extensions/internal_redirect/previous_routes/BUILD b/source/extensions/internal_redirect/previous_routes/BUILD index ef2601fdfb500..58a0878f09573 100644 --- a/source/extensions/internal_redirect/previous_routes/BUILD +++ b/source/extensions/internal_redirect/previous_routes/BUILD @@ -24,11 +24,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream_and_upstream", # TODO(#9953) clean up by moving the redirect test to extensions. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":previous_routes_lib", "//include/envoy/registry", diff --git a/source/extensions/internal_redirect/safe_cross_scheme/BUILD b/source/extensions/internal_redirect/safe_cross_scheme/BUILD index 045e81c5252de..d957fa57673f1 100644 --- a/source/extensions/internal_redirect/safe_cross_scheme/BUILD +++ b/source/extensions/internal_redirect/safe_cross_scheme/BUILD @@ -23,11 +23,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream_and_upstream", # TODO(#9953) clean up by moving the redirect test to extensions. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream_and_upstream", deps = [ ":safe_cross_scheme_lib", "//include/envoy/registry", diff --git a/source/extensions/resource_monitors/injected_resource/BUILD b/source/extensions/resource_monitors/injected_resource/BUILD index 6cff7be112ee2..6f1c24318cee1 100644 --- a/source/extensions/resource_monitors/injected_resource/BUILD +++ b/source/extensions/resource_monitors/injected_resource/BUILD @@ -26,12 +26,13 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "data_plane_agnostic", + status = "alpha", # TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/integration:__subpackages__", ], - security_posture = "data_plane_agnostic", - status = "alpha", deps = [ ":injected_resource_monitor", "//include/envoy/registry", diff --git a/source/extensions/stat_sinks/statsd/BUILD b/source/extensions/stat_sinks/statsd/BUILD index de6a886773d25..0a8ed4648bca3 100644 --- a/source/extensions/stat_sinks/statsd/BUILD +++ b/source/extensions/stat_sinks/statsd/BUILD @@ -14,11 +14,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "data_plane_agnostic", # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/server:__subpackages__", ], - security_posture = "data_plane_agnostic", deps = [ "//include/envoy/registry", "//source/common/network:address_lib", diff --git a/source/extensions/tracers/zipkin/BUILD b/source/extensions/tracers/zipkin/BUILD index bb76f9f16ed4f..fc2d417c4d1cd 100644 --- a/source/extensions/tracers/zipkin/BUILD +++ b/source/extensions/tracers/zipkin/BUILD @@ -67,11 +67,12 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "robust_to_untrusted_downstream", # Legacy test use. TODO(#9953) clean up. - extra_visibility = [ + visibility = [ + "//:extension_config", "//test/server:__subpackages__", ], - security_posture = "robust_to_untrusted_downstream", deps = [ ":zipkin_lib", "//source/extensions/tracers/common:factory_base_lib", diff --git a/source/extensions/transport_sockets/tap/BUILD b/source/extensions/transport_sockets/tap/BUILD index ba921cb5ea1b8..4adb0db7cb38a 100644 --- a/source/extensions/transport_sockets/tap/BUILD +++ b/source/extensions/transport_sockets/tap/BUILD @@ -51,13 +51,14 @@ envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], + security_posture = "requires_trusted_downstream_and_upstream", + status = "alpha", # TODO(#9953) clean up. - extra_visibility = [ - "//test/integration:__subpackages__", + visibility = [ + "//:extension_config", "//test/common/access_log:__subpackages__", + "//test/integration:__subpackages__", ], - security_posture = "requires_trusted_downstream_and_upstream", - status = "alpha", deps = [ ":tap_config_impl", ":tap_lib", From 8a374acbfe8593ca8ed23cc734b08d3272513740 Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Thu, 30 Jul 2020 20:27:23 -0400 Subject: [PATCH 8/9] comments Signed-off-by: Alyssa Wilk --- BUILD | 2 +- bazel/README.md | 9 +++++++++ source/extensions/retry/host/BUILD | 17 ----------------- 3 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 source/extensions/retry/host/BUILD diff --git a/BUILD b/BUILD index eaa0f62259111..8518272d537fb 100644 --- a/BUILD +++ b/BUILD @@ -1,5 +1,5 @@ load( - "//source/extensions:extensions_build_config.bzl", + "@envoy_build_config//:extensions_build_config.bzl", "ADDITIONAL_VISIBILITY", ) diff --git a/bazel/README.md b/bazel/README.md index 62d7b6e8f2c0c..ca6600351ad74 100644 --- a/bazel/README.md +++ b/bazel/README.md @@ -611,6 +611,15 @@ local_repository( ... ``` +## Extra extensions + +If you are building your own Envoy extensions or custom Envoy builds and encounter visibility +problems with, you may need to adjust the default visibility rules. +By default, Envoy extensions are set up to only be visible to code within the +[//source/extensions](../source/extensions/), or the Envoy server target. To adjust this, +add any additional targets you need to `ADDITIONAL_VISIBILITY` in +[extensions_build_config.bzl](../source/extensions/extensions_build_config.bzl). + # Release builds Release builds should be built in `opt` mode, processed with `strip` and have a diff --git a/source/extensions/retry/host/BUILD b/source/extensions/retry/host/BUILD deleted file mode 100644 index 22d835b407061..0000000000000 --- a/source/extensions/retry/host/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -load( - "//bazel:envoy_build_system.bzl", - "envoy_cc_library", - "envoy_extension_package", -) - -licenses(["notice"]) # Apache 2 - -envoy_extension_package() - -envoy_cc_library( - name = "well_known_names", - hdrs = ["well_known_names.h"], - deps = [ - "//source/common/singleton:const_singleton", - ], -) From ba8d2708b36718cf2eba6f1ab62def80ec66e9ba Mon Sep 17 00:00:00 2001 From: Alyssa Wilk Date: Fri, 31 Jul 2020 07:49:07 -0400 Subject: [PATCH 9/9] comments Signed-off-by: Alyssa Wilk --- bazel/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazel/README.md b/bazel/README.md index ca6600351ad74..0c3e3f9abb9da 100644 --- a/bazel/README.md +++ b/bazel/README.md @@ -619,6 +619,8 @@ By default, Envoy extensions are set up to only be visible to code within the [//source/extensions](../source/extensions/), or the Envoy server target. To adjust this, add any additional targets you need to `ADDITIONAL_VISIBILITY` in [extensions_build_config.bzl](../source/extensions/extensions_build_config.bzl). +See the instructions above about how to create your own custom version of +[extensions_build_config.bzl](../source/extensions/extensions_build_config.bzl). # Release builds