open-consul/agent/xds
Paul Glass d8d89d4b59
Permissive mTLS (#17035)
This implements permissive mTLS , which allows toggling services into "permissive" mTLS mode.
Permissive mTLS mode allows incoming "non Consul-mTLS" traffic to be forward unmodified to the application.

* Update service-defaults and proxy-defaults config entries with a MutualTLSMode field
* Update the mesh config entry with an AllowEnablingPermissiveMutualTLS field and implement the necessary validation. AllowEnablingPermissiveMutualTLS must be true to allow changing to MutualTLSMode=permissive, but this does not require that all proxy-defaults and service-defaults are currently in strict mode.
* Update xDS listener config to add a "permissive filter chain" when MutualTLSMode=permissive for a particular service. The permissive filter chain matches incoming traffic by the destination port. If the destination port matches the service port from the catalog, then no mTLS is required and the traffic sent is forwarded unmodified to the application.
2023-04-19 14:45:00 -05:00
..
accesslogs copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
extensionruntime Wasm Envoy HTTP extension (#16877) 2023-04-06 14:12:07 -07:00
testcommon copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testdata Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
validateupstream-test copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
clusters.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
clusters_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delta.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
delta_envoy_extender_oss_test.go Wasm Envoy HTTP extension (#16877) 2023-04-06 14:12:07 -07:00
delta_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
endpoints.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
endpoints_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
failover_policy.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
failover_policy_oss.go add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
golden_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
listeners.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
listeners_ingress.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
listeners_test.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05: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 copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
rbac_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -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 add order by locality failover to Consul enterprise (#16791) 2023-03-30 10:08:38 -04:00
response.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
routes.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -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 copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
z_xds_packages.go Add connection limit setting to service defaults 2022-05-24 10:13:38 -07:00
z_xds_packages_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00