Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged Upgrade to istio 1.21 #127

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
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
10 changes: 1 addition & 9 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,12 @@ envoy_cc_binary(
"//src/application_protocols/brpc:config",
"//src/application_protocols/trpc:config",
"@io_istio_proxy//extensions/access_log_policy:access_log_policy_lib",
"@io_istio_proxy//extensions/metadata_exchange:metadata_exchange_lib",
"@io_istio_proxy//extensions/stackdriver:stackdriver_plugin",
"@io_istio_proxy//source/extensions/common/workload_discovery:api_lib", # Experimental: WIP
"@io_istio_proxy//source/extensions/filters/http/alpn:config_lib",
"@io_istio_proxy//source/extensions/filters/http/authn:filter_lib",
"@io_istio_proxy//source/extensions/filters/http/connect_authority", # Experimental: ambient
"@io_istio_proxy//source/extensions/filters/http/connect_baggage", # Experimental: ambient
"@io_istio_proxy//source/extensions/filters/http/istio_stats",
"@io_istio_proxy//source/extensions/filters/listener/set_internal_dst_address:filter_lib", # Experimental: ambient
"@io_istio_proxy//source/extensions/filters/network/forward_downstream_sni:config_lib",
"@io_istio_proxy//source/extensions/filters/network/istio_authn:config_lib",
"@io_istio_proxy//source/extensions/filters/http/peer_metadata:filter_lib",
"@io_istio_proxy//source/extensions/filters/network/metadata_exchange:config_lib",
"@io_istio_proxy//source/extensions/filters/network/sni_verifier:config_lib",
"@io_istio_proxy//source/extensions/filters/network/tcp_cluster_rewrite:config_lib",
"@envoy//source/exe:envoy_main_entry_lib",
],
)
85 changes: 7 additions & 78 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,18 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_istio_proxy",
strip_prefix = "proxy-1.18.1",
sha256 = "ce682bf4bad606bfe5188e85d585a2ba12fec177254381e08da6cb27e8c872a1",
url = "https://github.com/istio/proxy/archive/refs/tags/1.18.1.tar.gz",
)

load(
"@io_istio_proxy//bazel:repositories.bzl",
"docker_dependencies",
"istioapi_dependencies",
)

istioapi_dependencies()

bind(
name = "boringssl_crypto",
actual = "//external:ssl",
strip_prefix = "proxy-1.21.0",
sha256 = "007aa638869bad4e9b4a98c56518d033f59a67774e098307dffaf562832d3fa6",
url = "https://github.com/istio/proxy/archive/refs/tags/1.21.0.tar.gz",
)

# 1. Determine SHA256 `wget https://github.com/envoyproxy/envoy/archive/$COMMIT.tar.gz && sha256sum $COMMIT.tar.gz`
# 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed.
#
# Commit date: 2023-07-13
ENVOY_SHA = "5b97cffea6bf0588dc7f6efe43a9822cd376cbea"
# Commit date: 2024-08-22
ENVOY_SHA = "2bb4cf1997597a981bc2bf3e500a9ae35787911e"

ENVOY_SHA256 = "53a5c10fd00f6b2023c8341555d794dcd563bb1aa43944a551dc90af3c2e51d8"
ENVOY_SHA256 = "0b2dc5ae343dd70f13730c16f9025ce4787f4ec60a8a4a1a5bdbab7f378506fc"

ENVOY_ORG = "envoyproxy"

Expand Down Expand Up @@ -81,7 +68,7 @@ envoy_dependencies()

load("@envoy//bazel:repositories_extra.bzl", "envoy_dependencies_extra")

envoy_dependencies_extra()
envoy_dependencies_extra(ignore_root_user_error = True)

load("@envoy//bazel:python_dependencies.bzl", "envoy_python_dependencies")

Expand All @@ -94,61 +81,3 @@ install_deps()
load("@envoy//bazel:dependency_imports.bzl", "envoy_dependency_imports")

envoy_dependency_imports()

# Bazel @rules_pkg

http_archive(
name = "rules_pkg",
sha256 = "aeca78988341a2ee1ba097641056d168320ecc51372ef7ff8e64b139516a4937",
urls = [
"https://github.com/bazelbuild/rules_pkg/releases/download/0.2.6-1/rules_pkg-0.2.6.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.6/rules_pkg-0.2.6.tar.gz",
],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

# Docker dependencies

docker_dependencies()

load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)

container_repositories()

load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")

container_deps()

load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
)

container_pull(
name = "distroless_cc",
# Latest as of 10/21/2019. To update, remove this line, re-build, and copy the suggested digest.
digest = "sha256:86f16733f25964c40dcd34edf14339ddbb2287af2f7c9dfad88f0366723c00d7",
registry = "gcr.io",
repository = "distroless/cc",
)

container_pull(
name = "bionic",
# Latest as of 10/21/2019. To update, remove this line, re-build, and copy the suggested digest.
digest = "sha256:3e83eca7870ee14a03b8026660e71ba761e6919b6982fb920d10254688a363d4",
registry = "index.docker.io",
repository = "library/ubuntu",
tag = "bionic",
)

# End of docker dependencies

load("//bazel:wasm.bzl", "wasm_dependencies")

wasm_dependencies()
2 changes: 1 addition & 1 deletion api/meta_protocol_proxy/admin/v1alpha/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ api_proto_package(
"@envoy_api//envoy/config/core/v3:pkg",
"@envoy_api//envoy/type/v3:pkg",
"@envoy_api//envoy/admin/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
],
)

2 changes: 1 addition & 1 deletion api/meta_protocol_proxy/config/route/v1alpha/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ api_proto_package(
"@envoy_api//envoy/config/route/v3:pkg",
"@envoy_api//envoy/type/matcher/v3:pkg",
"@envoy_api//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
],
)

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//api/meta_protocol_proxy/config/route/v1alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
"@envoy_api//envoy/config/core/v3:pkg",
"@envoy_api//envoy/config/route/v3:pkg",
"@envoy_api//envoy/config/ratelimit/v3:pkg"
Expand Down
2 changes: 1 addition & 1 deletion api/meta_protocol_proxy/filters/istio_stats/v1alpha/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ licenses(["notice"]) # Apache 2

api_proto_package(
deps = [
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//api/meta_protocol_proxy/config/route/v1alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
"@envoy_api//envoy/type/v3:pkg",
"@envoy_api//envoy/config/core/v3:pkg",
"@envoy_api//envoy/config/route/v3:pkg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ licenses(["notice"]) # Apache 2

api_proto_package(
deps = [
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
],
)
2 changes: 1 addition & 1 deletion api/meta_protocol_proxy/filters/router/v1alpha/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
licenses(["notice"]) # Apache 2

api_proto_package(
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
deps = ["@com_github_cncf_xds//udpa/annotations:pkg"],
)
2 changes: 1 addition & 1 deletion api/meta_protocol_proxy/v1alpha/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ api_proto_package(
"@envoy_api//envoy/config/route/v3:pkg",
"@envoy_api//envoy/type/matcher/v3:pkg",
"@envoy_api//envoy/type/v3:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
"@com_github_cncf_xds//udpa/annotations:pkg",
],
)

Expand Down
63 changes: 60 additions & 3 deletions bazel/extension_config/extensions_build_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ ENVOY_EXTENSIONS = {
"envoy.compression.gzip.decompressor": "//source/extensions/compression/gzip/decompressor:config",
"envoy.compression.brotli.compressor": "//source/extensions/compression/brotli/compressor:config",
"envoy.compression.brotli.decompressor": "//source/extensions/compression/brotli/decompressor:config",
"envoy.compression.zstd.compressor": "//source/extensions/compression/zstd/compressor:config",
"envoy.compression.zstd.decompressor": "//source/extensions/compression/zstd/decompressor:config",

#
# gRPC Credentials Plugins
Expand Down Expand Up @@ -102,26 +104,32 @@ ENVOY_EXTENSIONS = {
"envoy.filters.http.aws_lambda": "//source/extensions/filters/http/aws_lambda:config",
"envoy.filters.http.aws_request_signing": "//source/extensions/filters/http/aws_request_signing:config",
"envoy.filters.http.bandwidth_limit": "//source/extensions/filters/http/bandwidth_limit:config",
"envoy.filters.http.basic_auth": "//source/extensions/filters/http/basic_auth:config",
"envoy.filters.http.buffer": "//source/extensions/filters/http/buffer:config",
"envoy.filters.http.cache": "//source/extensions/filters/http/cache:config",
"envoy.filters.http.cdn_loop": "//source/extensions/filters/http/cdn_loop:config",
"envoy.filters.http.compressor": "//source/extensions/filters/http/compressor:config",
"envoy.filters.http.cors": "//source/extensions/filters/http/cors:config",
"envoy.filters.http.composite": "//source/extensions/filters/http/composite:config",
"envoy.filters.http.connect_grpc_bridge": "//source/extensions/filters/http/connect_grpc_bridge:config",
"envoy.filters.http.csrf": "//source/extensions/filters/http/csrf:config",
"envoy.filters.http.decompressor": "//source/extensions/filters/http/decompressor:config",
"envoy.filters.http.dynamic_forward_proxy": "//source/extensions/filters/http/dynamic_forward_proxy:config",
"envoy.filters.http.ext_authz": "//source/extensions/filters/http/ext_authz:config",
"envoy.filters.http.ext_proc": "//source/extensions/filters/http/ext_proc:config",
"envoy.filters.http.fault": "//source/extensions/filters/http/fault:config",
"envoy.filters.http.gcp_authn": "//source/extensions/filters/http/gcp_authn:config",
"envoy.filters.http.grpc_field_extraction": "//source/extensions/filters/http/grpc_field_extraction:config",
"envoy.filters.http.grpc_http1_bridge": "//source/extensions/filters/http/grpc_http1_bridge:config",
"envoy.filters.http.grpc_http1_reverse_bridge": "//source/extensions/filters/http/grpc_http1_reverse_bridge:config",
"envoy.filters.http.grpc_json_transcoder": "//source/extensions/filters/http/grpc_json_transcoder:config",
"envoy.filters.http.grpc_stats": "//source/extensions/filters/http/grpc_stats:config",
"envoy.filters.http.grpc_web": "//source/extensions/filters/http/grpc_web:config",
"envoy.filters.http.header_to_metadata": "//source/extensions/filters/http/header_to_metadata:config",
"envoy.filters.http.header_mutation": "//source/extensions/filters/http/header_mutation:config",
"envoy.filters.http.health_check": "//source/extensions/filters/http/health_check:config",
"envoy.filters.http.ip_tagging": "//source/extensions/filters/http/ip_tagging:config",
"envoy.filters.http.json_to_metadata": "//source/extensions/filters/http/json_to_metadata:config",
"envoy.filters.http.jwt_authn": "//source/extensions/filters/http/jwt_authn:config",
# Disabled by default
"envoy.filters.http.kill_request": "//source/extensions/filters/http/kill_request:kill_request_config",
Expand All @@ -133,6 +141,7 @@ ENVOY_EXTENSIONS = {
"envoy.filters.http.ratelimit": "//source/extensions/filters/http/ratelimit:config",
"envoy.filters.http.rbac": "//source/extensions/filters/http/rbac:config",
"envoy.filters.http.router": "//source/extensions/filters/http/router:config",
"envoy.filters.http.set_filter_state": "//source/extensions/filters/http/set_filter_state:config",
"envoy.filters.http.set_metadata": "//source/extensions/filters/http/set_metadata:config",
"envoy.filters.http.tap": "//source/extensions/filters/http/tap:config",
"envoy.filters.http.wasm": "//source/extensions/filters/http/wasm:config",
Expand Down Expand Up @@ -169,6 +178,7 @@ ENVOY_EXTENSIONS = {
"envoy.filters.network.redis_proxy": "//source/extensions/filters/network/redis_proxy:config",
"envoy.filters.network.tcp_proxy": "//source/extensions/filters/network/tcp_proxy:config",
"envoy.filters.network.thrift_proxy": "//source/extensions/filters/network/thrift_proxy:config",
"envoy.filters.network.set_filter_state": "//source/extensions/filters/network/set_filter_state:config",
"envoy.filters.network.sni_cluster": "//source/extensions/filters/network/sni_cluster:config",
"envoy.filters.network.sni_dynamic_forward_proxy": "//source/extensions/filters/network/sni_dynamic_forward_proxy:config",
"envoy.filters.network.wasm": "//source/extensions/filters/network/wasm:config",
Expand All @@ -187,6 +197,7 @@ ENVOY_EXTENSIONS = {

"envoy.resource_monitors.fixed_heap": "//source/extensions/resource_monitors/fixed_heap:config",
"envoy.resource_monitors.injected_resource": "//source/extensions/resource_monitors/injected_resource:config",
"envoy.resource_monitors.downstream_connections": "//source/extensions/resource_monitors/downstream_connections:config",

#
# Stat sinks
Expand All @@ -196,6 +207,7 @@ ENVOY_EXTENSIONS = {
"envoy.stat_sinks.graphite_statsd": "//source/extensions/stat_sinks/graphite_statsd:config",
"envoy.stat_sinks.hystrix": "//source/extensions/stat_sinks/hystrix:config",
"envoy.stat_sinks.metrics_service": "//source/extensions/stat_sinks/metrics_service:config",
"envoy.stat_sinks.open_telemetry": "//source/extensions/stat_sinks/open_telemetry:config",
"envoy.stat_sinks.statsd": "//source/extensions/stat_sinks/statsd:config",
"envoy.stat_sinks.wasm": "//source/extensions/stat_sinks/wasm:config",

Expand All @@ -219,6 +231,19 @@ ENVOY_EXTENSIONS = {
"envoy.tracers.skywalking": "//source/extensions/tracers/skywalking:config",
"envoy.tracers.opentelemetry": "//source/extensions/tracers/opentelemetry:config",

#
# OpenTelemetry Resource Detectors
#

"envoy.tracers.opentelemetry.resource_detectors.environment": "//source/extensions/tracers/opentelemetry/resource_detectors/environment:config",
"envoy.tracers.opentelemetry.resource_detectors.dynatrace": "//source/extensions/tracers/opentelemetry/resource_detectors/dynatrace:config",

#
# OpenTelemetry tracer samplers
#

"envoy.tracers.opentelemetry.samplers.always_on": "//source/extensions/tracers/opentelemetry/samplers/always_on:config",

#
# Transport sockets
#
Expand Down Expand Up @@ -248,7 +273,8 @@ ENVOY_EXTENSIONS = {
#
# CacheFilter plugins
#
"envoy.extensions.http.cache.simple": "//source/extensions/http/cache/simple_http_cache:config",
"envoy.extensions.http.cache.file_system_http_cache": "//source/extensions/http/cache/file_system_http_cache:config",
"envoy.extensions.http.cache.simple": "//source/extensions/http/cache/simple_http_cache:config",

#
# Internal redirect predicates
Expand Down Expand Up @@ -340,6 +366,7 @@ ENVOY_EXTENSIONS = {

"envoy.formatter.metadata": "//source/extensions/formatter/metadata:config",
"envoy.formatter.req_without_query": "//source/extensions/formatter/req_without_query:config",
"envoy.formatter.cel": "//source/extensions/formatter/cel:config",

#
# Key value store
Expand Down Expand Up @@ -373,13 +400,41 @@ ENVOY_EXTENSIONS = {
#

"envoy.http.header_validators.envoy_default": "//source/extensions/http/header_validators/envoy_default:config",


#
# Load balancing policies for upstream
#
"envoy.load_balancing_policies.least_request": "//source/extensions/load_balancing_policies/least_request:config",
"envoy.load_balancing_policies.random": "//source/extensions/load_balancing_policies/random:config",
"envoy.load_balancing_policies.round_robin": "//source/extensions/load_balancing_policies/round_robin:config",
"envoy.load_balancing_policies.maglev": "//source/extensions/load_balancing_policies/maglev:config",
"envoy.load_balancing_policies.ring_hash": "//source/extensions/load_balancing_policies/ring_hash:config",
"envoy.load_balancing_policies.subset": "//source/extensions/load_balancing_policies/subset:config",
"envoy.load_balancing_policies.cluster_provided": "//source/extensions/load_balancing_policies/cluster_provided:config",

#
# HTTP Early Header Mutation
#
"envoy.http.early_header_mutation.header_mutation": "//source/extensions/http/early_header_mutation/header_mutation:config",

#
# Config Subscription
#
"envoy.config_subscription.rest": "//source/extensions/config_subscription/rest:http_subscription_lib",
"envoy.config_subscription.filesystem": "//source/extensions/config_subscription/filesystem:filesystem_subscription_lib",
"envoy.config_subscription.filesystem_collection": "//source/extensions/config_subscription/filesystem:filesystem_subscription_lib",
"envoy.config_subscription.grpc": "//source/extensions/config_subscription/grpc:grpc_subscription_lib",
"envoy.config_subscription.delta_grpc": "//source/extensions/config_subscription/grpc:grpc_subscription_lib",
"envoy.config_subscription.ads": "//source/extensions/config_subscription/grpc:grpc_subscription_lib",
"envoy.config_subscription.aggregated_grpc_collection": "//source/extensions/config_subscription/grpc:grpc_collection_subscription_lib",
"envoy.config_subscription.aggregated_delta_grpc_collection": "//source/extensions/config_subscription/grpc:grpc_collection_subscription_lib",
"envoy.config_subscription.ads_collection": "//source/extensions/config_subscription/grpc:grpc_collection_subscription_lib",

#
# cluster specifier plugin
#

"envoy.router.cluster_specifier_plugin.lua": "//source/extensions/router/cluster_specifiers/lua:config",
}

ENVOY_CONTRIB_EXTENSIONS = {
Expand All @@ -397,6 +452,7 @@ ENVOY_CONTRIB_EXTENSIONS = {
#

"envoy.filters.network.client_ssl_auth": "//contrib/client_ssl_auth/filters/network/source:config",
"envoy.filters.network.golang": "//contrib/golang/filters/network/source:config",
"envoy.filters.network.kafka_broker": "//contrib/kafka/filters/network/source:kafka_broker_config_lib",
"envoy.filters.network.kafka_mesh": "//contrib/kafka/filters/network/source/mesh:config_lib",
"envoy.filters.network.mysql_proxy": "//contrib/mysql_proxy/filters/network/source:config",
Expand Down Expand Up @@ -427,7 +483,7 @@ ENVOY_CONTRIB_EXTENSIONS = {
# Connection Balance extensions
#

"envoy.network.connection_balance.dlb": "//contrib/network/connection_balance/dlb/source:connection_balancer",
"envoy.network.connection_balance.dlb": "//contrib/dlb/source:connection_balancer",
}


Expand All @@ -438,6 +494,7 @@ ISTIO_DISABLED_EXTENSIONS = [

ISTIO_ENABLED_CONTRIB_EXTENSIONS = [
"envoy.filters.http.golang",
"envoy.filters.network.golang",
"envoy.filters.network.mysql_proxy",
"envoy.filters.network.postgres_proxy",
"envoy.filters.network.sip_proxy",
Expand Down
Loading
Loading