consul/agent/xds
Michael Zalimeni b1b05f0bac
[NET-4703] Prevent partial application of Envoy extensions (#18068)
Prevent partial application of Envoy extensions

Ensure that non-required extensions do not change xDS resources before
exiting on failure by cloning proto messages prior to applying each
extension.

To support this change, also move `CanApply` checks up a layer and make
them prior to attempting extension application, s.t. we avoid
unnecessary copies where extensions can't be applied.

Last, ensure that we do not allow panics from `CanApply` or `Extend`
checks to escape the attempted extension application.
2023-07-31 15:24:33 -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 [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
validateupstream-test copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
clusters.go [OSS] Improve xDS Code Coverage - Clusters (#18165) 2023-07-20 18:02:21 -04:00
clusters_test.go [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
config.go [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delta.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
delta_envoy_extender_oss_test.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
delta_envoy_extender_test.go ext-authz Envoy extension: support `localhost` as a valid target URI. (#17821) 2023-06-21 13:42:42 -07:00
delta_test.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
endpoints.go [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
endpoints_test.go [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
failover_policy.go [OSS] Improve xDS Code Coverage - Clusters (#18165) 2023-07-20 18:02:21 -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 Use JWT-auth filter in metadata mode & Delegate validation to RBAC filter (#18062) 2023-07-17 11:32:49 -04:00
jwt_authn_test.go Use JWT-auth filter in metadata mode & Delegate validation to RBAC filter (#18062) 2023-07-17 11:32:49 -04:00
listeners.go [OSS] Improve xDS Code Coverage - Clusters (#18165) 2023-07-20 18:02:21 -04:00
listeners_apigateway.go [OSS] test: improve xDS listener code coverage (#18138) 2023-07-17 13:49:40 -04:00
listeners_ingress.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
listeners_test.go Improve XDS test coverage: JWT auth edition (#18183) 2023-07-19 17:19:00 -04:00
locality_policy.go Make locality aware routing xDS changes (#17826) 2023-06-21 12:39:53 -04:00
locality_policy_oss.go Make locality aware routing xDS changes (#17826) 2023-06-21 12:39:53 -04: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 [OSS] Improve xDS Code Coverage - Endpoints and Misc (#18222) 2023-07-21 17:48:25 -04:00
rbac_test.go Use JWT-auth filter in metadata mode & Delegate validation to RBAC filter (#18062) 2023-07-17 11:32:49 -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 [OSS] Improve xDS Code Coverage - Clusters (#18165) 2023-07-20 18:02:21 -04:00
response.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
routes.go [OSS] Improve xDS Code Coverage - Clusters (#18165) 2023-07-20 18:02:21 -04: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 Explicitly enable WebSocket upgrades (#18150) 2023-07-20 13:24:43 -07:00
z_xds_packages.go Various bits of cleanup detected when using Go Workspaces (#17462) 2023-06-05 16:08:39 -04:00
z_xds_packages_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00