consul/envoyextensions/xdscommon
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
..
envoy_versioning.go Add Envoy and Consul version constraints to Envoy extensions (#17612) 2023-06-08 10:26:11 -04:00
envoy_versioning_test.go Update list of Envoy versions (#18300) 2023-07-26 21:48:29 +00:00
proxysupport.go Update list of Envoy versions (#18300) 2023-07-26 21:48:29 +00:00
proxysupport_test.go Copyright headers for missing files/folders (#16708) 2023-03-28 18:48:58 -04:00
xdscommon.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00
xdscommon_test.go [NET-4703] Prevent partial application of Envoy extensions (#18068) 2023-07-31 15:24:33 -04:00