open-consul/agent/consul/stream
Daniel Upton 497df1ca3b proxycfg: server-local config entry data sources
This is the OSS portion of enterprise PR 2056.

This commit provides server-local implementations of the proxycfg.ConfigEntry
and proxycfg.ConfigEntryList interfaces, that source data from streaming events.

It makes use of the LocalMaterializer type introduced for peering replication,
adding the necessary support for authorization.

It also adds support for "wildcard" subscriptions (within a topic) to the event
publisher, as this is needed to fetch service-resolvers for all services when
configuring mesh gateways.

Currently, events will be emitted for just the ingress-gateway, service-resolver,
and mesh config entry types, as these are the only entries required by proxycfg
— the events will be emitted on topics named IngressGateway, ServiceResolver,
and MeshConfig topics respectively.

Though these events will only be consumed "locally" for now, they can also be
consumed via the gRPC endpoint (confirmed using grpcurl) so using them from
client agents should be a case of swapping the LocalMaterializer for an
RPCMaterializer.
2022-07-04 10:48:36 +01:00
..
event.go proxycfg: server-local config entry data sources 2022-07-04 10:48:36 +01:00
event_buffer.go
event_buffer_test.go test: fix flaky test TestEventBufferFuzz (#13175) 2022-05-23 09:22:30 -05:00
event_publisher.go proxycfg: server-local config entry data sources 2022-07-04 10:48:36 +01:00
event_publisher_test.go proxycfg: server-local config entry data sources 2022-07-04 10:48:36 +01:00
event_snapshot.go proxycfg: server-local config entry data sources 2022-07-04 10:48:36 +01:00
event_snapshot_test.go
event_test.go streaming: split event buffer by key (#12080) 2022-01-28 12:27:00 +00:00
noop.go proxycfg: server-local config entry data sources 2022-07-04 10:48:36 +01:00
string_types.go Add event generation for autopilot state updates (#12626) 2022-04-19 13:03:03 -04:00
subscription.go Fix flaky tests in the agent/grpc/public/services/serverdiscovery package (#13173) 2022-05-23 08:59:13 -04:00
subscription_test.go Add event generation for autopilot state updates (#12626) 2022-04-19 13:03:03 -04:00