consul/agent/xds
Michael Zalimeni ad03a5d0f2
Avoid panic applying TProxy Envoy extensions (#17537)
When UpstreamEnvoyExtender was introduced, some code was left duplicated
between it and BasicEnvoyExtender. One path in that code panics when a
TProxy listener patch is attempted due to no upstream data in
RuntimeConfig matching the local service (which would only happen in
rare cases).

Instead, we can remove the special handling of upstream VIPs from
BasicEnvoyExtender entirely, greatly simplifying the listener filter
patch code and avoiding the panic. UpstreamEnvoyExtender, which needs
this code to function, is modified to ensure a panic does not occur.

This also fixes a second regression in which the Lua extension was not
applied to TProxy outbound listeners.
2023-06-01 13:04:39 -04:00
..
accesslogs copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
extensionruntime Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
testcommon copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testdata Avoid panic applying TProxy Envoy extensions (#17537) 2023-06-01 13:04:39 -04:00
validateupstream-test copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
clusters.go Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
clusters_test.go Support Envoy's MaxEjectionPercent and BaseEjectionTime config entries for passive health checks (#15979) 2023-04-26 15:59:48 -07:00
config.go Support Envoy's MaxEjectionPercent and BaseEjectionTime config entries for passive health checks (#15979) 2023-04-26 15:59:48 -07:00
config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delta.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delta_envoy_extender_oss_test.go Avoid panic applying TProxy Envoy extensions (#17537) 2023-06-01 13:04:39 -04:00
delta_envoy_extender_test.go Enable Network filters for Wasm Envoy Extension (#17505) 2023-05-30 07:17:33 -07:00
delta_test.go Disable remote proxy patching except AWS Lambda (#17415) 2023-05-23 11:55:06 +00:00
endpoints.go This fixes an issue where TCP services that are exported cannot be configured to failover. (#17469) 2023-05-25 12:50:20 -04:00
endpoints_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
failover_policy.go Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
failover_policy_oss.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
golden_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
jwt_authn.go [NET-3092] JWT Verify claims handling (#17452) 2023-05-30 13:38:33 -04:00
jwt_authn_test.go [NET-3092] JWT Verify claims handling (#17452) 2023-05-30 13:38:33 -04:00
listeners.go Use original_dst filter instead of use_original_dst field (#17433) 2023-05-24 12:01:17 -05:00
listeners_apigateway.go xds: Remove APIGateway ToIngress function (#17453) 2023-05-25 15:16:37 +00:00
listeners_ingress.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
listeners_test.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
naming.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
net_fallback.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
net_linux.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
protocol_trace.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
rbac.go [NET-3092] JWT Verify claims handling (#17452) 2023-05-30 13:38:33 -04:00
rbac_test.go [NET-3092] JWT Verify claims handling (#17452) 2023-05-30 13:38:33 -04:00
resources.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
resources_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
resources_test.go Avoid panic applying TProxy Envoy extensions (#17537) 2023-06-01 13:04:39 -04:00
response.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
routes.go xds: Remove APIGateway ToIngress function (#17453) 2023-05-25 15:16:37 +00:00
routes_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
secrets.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
server.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
server_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
xds.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
xds_protocol_helpers_test.go Disable remote proxy patching except AWS Lambda (#17415) 2023-05-23 11:55:06 +00:00
z_xds_packages.go Add connection limit setting to service defaults 2022-05-24 10:13:38 -07:00
z_xds_packages_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00