consul/envoyextensions/extensioncommon
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
..
basic_envoy_extender.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
basic_extension_adapter.go Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
envoy_extender.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
envoy_extender_test.go ENT->OSS merge for Consolidate `ListEnvoyExtender` into `BasicEnvoyExtender` (#17491) 2023-05-26 11:10:31 -07:00
resources.go Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
resources_test.go ENT->OSS merge for Consolidate `ListEnvoyExtender` into `BasicEnvoyExtender` (#17491) 2023-05-26 11:10:31 -07:00
runtime_config.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
runtime_config_test.go Add Upstream Service Targeting to Property Override Extension (#17517) 2023-05-30 14:53:42 -04:00
upstream_envoy_extender.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00