mirror of https://github.com/hashicorp/consul
37ccbd2826
This is the OSS portion of enterprise PR 2141. This commit provides a server-local implementation of the `proxycfg.Intentions` interface that sources data from streaming events. It adds events for the `service-intentions` config entry type, and then consumes event streams (via materialized views) for the service's explicit intentions and any applicable wildcard intentions, merging them into a single list of intentions. An alternative approach I considered was to consume _all_ intention events (via `SubjectWildcard`) and filter out the irrelevant ones. This would admittedly remove some complexity in the `agent/proxycfg-glue` package but at the expense of considerable overhead from waking potentially many thousands of connect proxies every time any intention is updated. |
||
---|---|---|
.. | ||
connect_proxy.go | ||
data_sources.go | ||
data_sources_oss.go | ||
ingress_gateway.go | ||
manager.go | ||
manager_test.go | ||
mesh_gateway.go | ||
mesh_gateway_oss.go | ||
naming.go | ||
naming_oss.go | ||
naming_test.go | ||
proxycfg.go | ||
snapshot.go | ||
state.go | ||
state_oss_test.go | ||
state_test.go | ||
terminating_gateway.go | ||
testing.go | ||
testing_connect_proxy.go | ||
testing_ingress_gateway.go | ||
testing_mesh_gateway.go | ||
testing_oss.go | ||
testing_peering.go | ||
testing_terminating_gateway.go | ||
testing_tproxy.go | ||
testing_upstreams.go | ||
upstreams.go |