envoy_build_config/extensions_build_config.bzl (44 lines of code) (raw):

# ESPv2 extension configuration override. # # We do not need all the extensions, so we disable the ones we do not need. This # reduces binary size, compile time, and attack vectors. # This list overrides the default list controlling what extensions are compiled # into envoy. # # See https://github.com/envoyproxy/envoy/tree/master/bazel/README.md # and https://github.com/envoyproxy/envoy/blob/master/source/extensions/extensions_build_config.bzl EXTENSIONS = { # All extensions explicitly referenced by config generator and our tests. "envoy.clusters.static": "//source/extensions/clusters/static:static_cluster_lib", "envoy.clusters.strict_dns": "//source/extensions/clusters/strict_dns:strict_dns_cluster_lib", "envoy.clusters.logical_dns": "//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", "envoy.access_loggers.file": "//source/extensions/access_loggers/file:config", "envoy.compression.gzip.compressor": "//source/extensions/compression/gzip/compressor:config", "envoy.compression.brotli.compressor": "//source/extensions/compression/brotli/compressor:config", "envoy.filters.http.compressor": "//source/extensions/filters/http/compressor:config", "envoy.filters.http.cors": "//source/extensions/filters/http/cors:config", "envoy.filters.http.grpc_json_transcoder": "//source/extensions/filters/http/grpc_json_transcoder:config", "envoy.filters.http.grpc_web": "//source/extensions/filters/http/grpc_web:config", "envoy.filters.http.health_check": "//source/extensions/filters/http/health_check:config", "envoy.filters.http.jwt_authn": "//source/extensions/filters/http/jwt_authn:config", "envoy.filters.http.router": "//source/extensions/filters/http/router:config", "envoy.filters.network.http_connection_manager": "//source/extensions/filters/network/http_connection_manager:config", "envoy.tracers.opencensus": "//source/extensions/tracers/opencensus:config", # Implicitly needed for TLS config. "envoy.transport_sockets.raw_buffer": "//source/extensions/transport_sockets/raw_buffer:config", "envoy.network.dns_resolver.cares": "//source/extensions/network/dns_resolver/cares:config", # Remaining items are for API Gateway and not covered by our tests. Do not remove. "envoy.access_loggers.http_grpc": "//source/extensions/access_loggers/grpc:http_config", "envoy.filters.http.header_to_metadata": "//source/extensions/filters/http/header_to_metadata:config", "envoy.stat_sinks.metrics_service": "//source/extensions/stat_sinks/metrics_service:config", "envoy.stat_sinks.statsd": "//source/extensions/stat_sinks/statsd:config", "envoy.config_mux.grpc_mux_factory": "//source/extensions/config_subscription/grpc:grpc_subscription_lib", "envoy.health_checkers.grpc": "//source/extensions/health_checkers/grpc:health_checker_lib", } EXTENSION_CONFIG_VISIBILITY = ["//visibility:public"] EXTENSION_PACKAGE_VISIBILITY = ["//visibility:public"] CONTRIB_EXTENSION_PACKAGE_VISIBILITY = ["//visibility:public"] MOBILE_PACKAGE_VISIBILITY = ["//visibility:public"] # Set this variable to true to disable alwayslink for envoy_cc_library. # TODO(alyssawilk) audit uses of this in source/ and migrate all libraries to extensions. LEGACY_ALWAYSLINK = 1