load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_cc_library", "envoy_extension_package", ) licenses(["notice"]) # Apache 2 # tap wrapper around a transport socket. envoy_extension_package() envoy_cc_library( name = "tap_config_interface", hdrs = ["tap_config.h"], deps = [ "//include/envoy/network:connection_interface", "//source/extensions/common/tap:tap_interface", ], ) envoy_cc_library( name = "tap_config_impl", srcs = ["tap_config_impl.cc"], hdrs = ["tap_config_impl.h"], deps = [ ":tap_config_interface", "//source/common/network:utility_lib", "//source/extensions/common/tap:tap_config_base", "@envoy_api//envoy/config/tap/v3:pkg_cc_proto", "@envoy_api//envoy/data/tap/v3:pkg_cc_proto", ], ) envoy_cc_library( name = "tap_lib", srcs = ["tap.cc"], hdrs = ["tap.h"], deps = [ ":tap_config_interface", "//include/envoy/network:transport_socket_interface", "//source/common/buffer:buffer_lib", "//source/extensions/common/tap:extension_config_base", "//source/extensions/transport_sockets/common:passthrough_lib", "@envoy_api//envoy/extensions/transport_sockets/tap/v3:pkg_cc_proto", ], ) envoy_cc_extension( name = "config", srcs = ["config.cc"], hdrs = ["config.h"], # TODO(#9953) clean up. extra_visibility = [ "//test/common/access_log:__subpackages__", "//test/integration:__subpackages__", ], security_posture = "requires_trusted_downstream_and_upstream", status = "alpha", deps = [ ":tap_config_impl", ":tap_lib", "//include/envoy/network:transport_socket_interface", "//include/envoy/registry", "//include/envoy/server:transport_socket_config_interface", "//source/common/config:utility_lib", "//source/common/protobuf:utility_lib", "//source/extensions/transport_sockets:well_known_names", "@envoy_api//envoy/config/tap/v3:pkg_cc_proto", "@envoy_api//envoy/extensions/transport_sockets/tap/v3:pkg_cc_proto", ], )