open-consul/command/connect/envoy
R.B. Boyer 91bee6246f
Support Incremental xDS mode (#9855)
This adds support for the Incremental xDS protocol when using xDS v3. This is best reviewed commit-by-commit and will not be squashed when merged.

Union of all commit messages follows to give an overarching summary:

xds: exclusively support incremental xDS when using xDS v3

Attempts to use SoTW via v3 will fail, much like attempts to use incremental via v2 will fail.
Work around a strange older envoy behavior involving empty CDS responses over incremental xDS.
xds: various cleanups and refactors that don't strictly concern the addition of incremental xDS support

Dissolve the connectionInfo struct in favor of per-connection ResourceGenerators instead.
Do a better job of ensuring the xds code uses a well configured logger that accurately describes the connected client.
xds: pull out checkStreamACLs method in advance of a later commit

xds: rewrite SoTW xDS protocol tests to use protobufs rather than hand-rolled json strings

In the test we very lightly reuse some of the more boring protobuf construction helper code that is also technically under test. The important thing of the protocol tests is testing the protocol. The actual inputs and outputs are largely already handled by the xds golden output tests now so these protocol tests don't have to do double-duty.

This also updates the SoTW protocol test to exclusively use xDS v2 which is the only variant of SoTW that will be supported in Consul 1.10.

xds: default xds.Server.AuthCheckFrequency at use-time instead of construction-time
2021-04-29 13:54:05 -05:00
..
pipe-bootstrap Fix envoy 1.10 exec (#5964) 2019-06-21 16:06:25 +01:00
testdata Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
bootstrap_config.go support env var expansion in envoy statsd urls 2021-03-18 18:57:28 -04:00
bootstrap_config_test.go support env var expansion in envoy statsd urls 2021-03-18 18:57:28 -04:00
bootstrap_tpl.go Support Incremental xDS mode (#9855) 2021-04-29 13:54:05 -05:00
envoy.go command: when generating envoy bootstrap configs to stdout do not mix informational logs into the json (#9980) 2021-04-07 14:22:52 -05:00
envoy_oss_test.go Add DC and NS support for Envoy metrics (#9207) 2020-11-16 16:37:19 -07:00
envoy_test.go command: when generating envoy bootstrap configs to stdout do not mix informational logs into the json (#9980) 2021-04-07 14:22:52 -05:00
exec_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
exec_unix.go xds: add support for envoy 1.15.0 and drop support for 1.11.x (#8424) 2020-07-31 15:52:49 -05:00
exec_unsupported.go cli: avoid passing envoy bootstrap configuration as arguments (#4747) 2018-10-10 16:55:34 +01:00
flags.go connect: switch the default gateway port from 443 to 8443 (#9116) 2020-11-06 20:47:29 -05:00
flags_test.go connect: switch the default gateway port from 443 to 8443 (#9116) 2020-11-06 20:47:29 -05:00