consul/testing/deployer/sprawl/internal/tfgen
hc-github-team-consul-core 37ef09c43e
Backport of testing/deployer: support tproxy in v2 for dataplane into release/1.17.x (#19494)
testing/deployer: support tproxy in v2 for dataplane (#19094)

This updates the testing/deployer (aka "topology test") framework to allow for a 
v2-oriented topology to opt services into enabling TransparentProxy. The restrictions 
are similar to that of #19046

The multiport Ports map that was added in #19046 was changed to allow for the 
protocol to be specified at this time, but for now the only supported protocol is TCP 
as only L4 functions currently on main.

As part of making transparent proxy work, the DNS server needed a new zonefile 
for responding to virtual.consul requests, since there is no Kubernetes DNS and 
the Consul DNS work for v2 has not happened yet. Once Consul DNS supports v2 we should switch over. For now the format of queries is:

<service>--<namespace>--<partition>.virtual.consul

Additionally:

- All transparent proxy enabled services are assigned a virtual ip in the 10.244.0/24
  range. This is something Consul will do in v2 at a later date, likely during 1.18.
- All services with exposed ports (non-mesh) are assigned a virtual port number for use
  with tproxy
- The consul-dataplane image has been made un-distroless, and gotten the necessary
  tools to execute consul connect redirect-traffic before running dataplane, thus simulating
  a kubernetes init container in plain docker.

Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2023-11-02 21:49:15 +00:00
..
templates Backport of testing/deployer: support tproxy in v2 for dataplane into release/1.17.x (#19494) 2023-11-02 21:49:15 +00:00
agent.go Backport of testing/deployer: update deployer to use v2 catalog constructs when requested into release/1.17.x (#19492) 2023-11-02 19:53:41 +00:00
digest.go chore: fix ce/ent drift in sdk and testing/deployer submodules (#19041) 2023-10-03 10:06:50 -05:00
dns.go Backport of testing/deployer: support tproxy in v2 for dataplane into release/1.17.x (#19494) 2023-11-02 21:49:15 +00:00
docker.go switch all client nodes in dc2 to dataplane [NET-4299] (#18608) 2023-09-06 23:46:34 +00:00
docker_test.go Backport of testing/deployer: update deployer to use v2 catalog constructs when requested into release/1.17.x (#19492) 2023-11-02 19:53:41 +00:00
gen.go Backport of testing/deployer: support tproxy in v2 for dataplane into release/1.17.x (#19494) 2023-11-02 21:49:15 +00:00
io.go chore: fix ce/ent drift in sdk and testing/deployer submodules (#19041) 2023-10-03 10:06:50 -05:00
nodes.go Backport of testing/deployer: support tproxy in v2 for dataplane into release/1.17.x (#19494) 2023-11-02 21:49:15 +00:00
prelude.go
proxy.go switch all client nodes in dc2 to dataplane [NET-4299] (#18608) 2023-09-06 23:46:34 +00:00
res.go
tfgen.go switch all client nodes in dc2 to dataplane [NET-4299] (#18608) 2023-09-06 23:46:34 +00:00