Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
dc14f7c
extensions: Add category param/s to envoy_cc_extension/s
phlax Jan 18, 2021
aa112cb
cats
phlax Jan 19, 2021
e682f6a
bazel/
phlax Jan 19, 2021
93c7c75
empty
phlax Jan 19, 2021
0e91ba7
source
phlax Jan 19, 2021
4cbe10d
lint
phlax Jan 19, 2021
15ef6b9
tools/
phlax Jan 19, 2021
576c3dc
tools/
phlax Jan 19, 2021
6c0a3d4
tools/
phlax Jan 19, 2021
8d81ee7
tools/
phlax Jan 19, 2021
1982bdf
tools/
phlax Jan 19, 2021
1cdd307
source/
phlax Jan 19, 2021
b2cf10f
more-cats
phlax Jan 20, 2021
d8f7782
tools/
phlax Jan 20, 2021
8d68036
source/
phlax Jan 20, 2021
0a7c387
source/
phlax Jan 20, 2021
228ca30
source/
phlax Jan 20, 2021
2b996b2
source/
phlax Jan 20, 2021
6e334af
source/
phlax Jan 20, 2021
3bd9238
source/
phlax Jan 20, 2021
37fba55
source/
phlax Jan 21, 2021
c6318a0
source/
phlax Jan 21, 2021
b1064e1
source/
phlax Jan 21, 2021
17ab0c0
generate extension db
phlax Jan 18, 2021
387e6e0
docs/
phlax Jan 22, 2021
9c322e7
Revert "docs/" testing
phlax Jan 22, 2021
eab10a7
bazel/
phlax Jan 22, 2021
0dc0963
bazel/
phlax Jan 22, 2021
577eddc
bazel/
phlax Jan 22, 2021
cdfd929
bazel/
phlax Jan 22, 2021
25634de
bazel/
phlax Jan 22, 2021
0317528
tools/
phlax Jan 22, 2021
ad9a8b8
tools/
phlax Jan 22, 2021
a319232
tools/
phlax Jan 25, 2021
d3a0c02
bazel/
phlax Jan 25, 2021
534b6b6
tools/
phlax Jan 25, 2021
a434681
tools/
phlax Jan 25, 2021
7d633a4
bazel/
phlax Jan 25, 2021
4872531
bazel/
phlax Jan 25, 2021
2895c77
bazel/
phlax Jan 25, 2021
4ee0cf5
bazel/
phlax Jan 25, 2021
30233d2
bazel/
phlax Jan 25, 2021
296db77
tools/
phlax Jan 25, 2021
4550e3c
more
phlax Jan 25, 2021
b5d2a21
tools/
phlax Jan 25, 2021
aa1156b
tools/
phlax Jan 25, 2021
b4da8d6
source/
phlax Jan 25, 2021
c049821
bazel/
phlax Jan 26, 2021
02895d2
Merge branch 'main' into extension-categories
phlax Feb 5, 2021
2adc592
SOMECAT -> DELIBERATELY_OMITTED
phlax Feb 5, 2021
19b3f68
source/
phlax Feb 5, 2021
65b82bd
envoy.io_socket
phlax Feb 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions bazel/envoy_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,38 @@ EXTENSION_SECURITY_POSTURES = [
"data_plane_agnostic",
]

# Extension categories as defined by factories
EXTENSION_CATEGORIES = [
Comment thread
phlax marked this conversation as resolved.
"envoy.access_loggers",
"envoy.bootstrap",
"envoy.clusters",
"envoy.compression.compressor",
"envoy.compression.decompressor",
"envoy.filters.http",
"envoy.filters.listener",
"envoy.filters.network",
"envoy.filters.udp_listener",
"envoy.formatter",
"envoy.grpc_credentials",
"envoy.guarddog_actions",
"envoy.health_checkers",
"envoy.internal_redirect_predicates",
"envoy.io_socket",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htuch i have added envoy.io_socket category reflecting what was in the source/extensions/extensions_build_config.bzl file

afaict there is not a factory for it tho, not sure of the implications

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

"envoy.rate_limit_descriptors",
"envoy.resolvers",
"envoy.resource_monitors",
"envoy.retry_host_predicates",
"envoy.retry_priorities",
"envoy.stats_sinks",
"envoy.thrift_proxy.filters",
"envoy.tracers",
"envoy.transport_sockets.downstream",
"envoy.transport_sockets.upstream",
"envoy.upstreams",
"envoy.wasm.runtime",
"DELIBERATELY_OMITTED",
]

EXTENSION_STATUS_VALUES = [
# This extension is stable and is expected to be production usable.
"stable",
Expand All @@ -80,13 +112,22 @@ EXTENSION_STATUS_VALUES = [
def envoy_cc_extension(
name,
security_posture,
category = None,
# Only set this for internal, undocumented extensions.
undocumented = False,
status = "stable",
tags = [],
extra_visibility = [],
visibility = EXTENSION_CONFIG_VISIBILITY,
**kwargs):
if not category:
fail("Category not set for %s" % name)
Comment thread
phlax marked this conversation as resolved.
if type(category) == "string":
category = (category,)
for cat in category:
if cat not in EXTENSION_CATEGORIES:
fail("Unknown extension category for %s: %s" %
(name, cat))
if security_posture not in EXTENSION_SECURITY_POSTURES:
fail("Unknown extension security posture: " + security_posture)
if status not in EXTENSION_STATUS_VALUES:
Expand Down
1 change: 1 addition & 0 deletions source/extensions/access_loggers/file/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.access_loggers",
# TODO(#9953) determine if this is core or should be cleaned up.
extra_visibility = [
"//test:__subpackages__",
Expand Down
2 changes: 2 additions & 0 deletions source/extensions/access_loggers/grpc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ envoy_cc_extension(
name = "http_config",
srcs = ["http_config.cc"],
hdrs = ["http_config.h"],
category = "envoy.access_loggers",
# TODO(#9953) clean up.
extra_visibility = [
"//test/common/access_log:__subpackages__",
Expand All @@ -120,6 +121,7 @@ envoy_cc_extension(
name = "tcp_config",
srcs = ["tcp_config.cc"],
hdrs = ["tcp_config.h"],
category = "envoy.access_loggers",
# TODO(#9953) clean up.
extra_visibility = [
"//test/common/access_log:__subpackages__",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/access_loggers/wasm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.access_loggers",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/bootstrap/wasm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ envoy_cc_extension(
hdrs = [
"config.h",
],
category = "envoy.bootstrap",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/clusters/aggregate/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ envoy_cc_extension(
"cluster.h",
"lb_context.h",
],
category = "envoy.clusters",
security_posture = "requires_trusted_downstream_and_upstream",
deps = [
"//source/common/upstream:cluster_factory_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/clusters/dynamic_forward_proxy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ envoy_cc_extension(
name = "cluster",
srcs = ["cluster.cc"],
hdrs = ["cluster.h"],
category = "envoy.clusters",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//source/common/network:transport_socket_options_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/clusters/redis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ envoy_cc_extension(
"redis_cluster.cc",
"redis_cluster.h",
],
category = "envoy.clusters",
security_posture = "requires_trusted_downstream_and_upstream",
deps = [
"redis_cluster_lb",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/common/crypto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ envoy_cc_extension(
"crypto_impl.h",
"utility_impl.h",
],
category = "DELIBERATELY_OMITTED",
external_deps = [
"ssl",
],
Expand Down
1 change: 1 addition & 0 deletions source/extensions/compression/gzip/compressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.compression.compressor",
security_posture = "robust_to_untrusted_downstream",
deps = [
":compressor_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/compression/gzip/decompressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.compression.decompressor",
security_posture = "robust_to_untrusted_downstream",
deps = [
":zlib_decompressor_impl_lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
2 changes: 2 additions & 0 deletions source/extensions/filters/http/admission_control/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ envoy_cc_extension(
"admission_control.h",
"thread_local_controller.h",
],
category = "envoy.filters.http",
security_posture = "unknown",
deps = [
"//include/envoy/http:filter_interface",
Expand All @@ -40,6 +41,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/aws_lambda/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "requires_trusted_downstream_and_upstream",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/aws_request_signing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "requires_trusted_downstream_and_upstream",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/buffer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
# Legacy test use. TODO(#9953) clean up.
visibility = ["//visibility:public"],
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/cache/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream_and_upstream",
status = "wip",
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ envoy_cc_extension(
name = "simple_http_cache_lib",
srcs = ["simple_http_cache.cc"],
hdrs = ["simple_http_cache.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream_and_upstream",
status = "wip",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/cdn_loop/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/compressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
":compressor_filter_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/cors/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
# TODO(#9953) clean up.
extra_visibility = [
"//test/integration:__subpackages__",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/csrf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/decompressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream_and_upstream",
deps = [
":decompressor_filter_lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/dynamo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "requires_trusted_downstream_and_upstream",
deps = [
":dynamo_filter_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/ext_authz/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
":ext_authz",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/ext_proc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/fault/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/grpc_http1_bridge/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
# Legacy test use. TODO(#9953) clean up.
extra_visibility = [
"//source/exe:__pkg__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/grpc_stats/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ envoy_cc_extension(
name = "config",
srcs = ["grpc_stats_filter.cc"],
hdrs = ["grpc_stats_filter.h"],
category = "envoy.filters.http",
security_posture = "unknown",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/grpc_web/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/gzip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//source/extensions/filters/http:well_known_names",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/header_to_metadata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/health_check/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
# Legacy test use. TODO(#9953) clean up.
extra_visibility = [
"//test/common/filter/http:__subpackages__",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/ip_tagging/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
# TODO(#9953) clean up.
extra_visibility = [
"//test/integration:__subpackages__",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/jwt_authn/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ envoy_cc_extension(
name = "config",
srcs = ["filter_factory.cc"],
hdrs = ["filter_factory.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
status = "alpha",
deps = [
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/kill_request/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ envoy_cc_extension(
name = "kill_request_config",
srcs = ["kill_request_config.cc"],
hdrs = ["kill_request_config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/local_ratelimit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "unknown",
deps = [
":local_ratelimit_lib",
Expand Down
1 change: 1 addition & 0 deletions source/extensions/filters/http/lua/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ envoy_cc_extension(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
category = "envoy.filters.http",
security_posture = "robust_to_untrusted_downstream",
deps = [
"//include/envoy/registry",
Expand Down
Loading