f198544270
* Stub Config Entries for Consul Native API Gateway (#15644) * Add empty InlineCertificate struct and protobuf * apigateway stubs * Stub HTTPRoute in api pkg * Stub HTTPRoute in structs pkg * Simplify api.APIGatewayConfigEntry to be consistent w/ other entries * Update makeConfigEntry switch, add docstring for HTTPRouteConfigEntry * Add TCPRoute to MakeConfigEntry, return unique Kind * Stub BoundAPIGatewayConfigEntry in agent * Add RaftIndex to APIGatewayConfigEntry stub * Add new config entry kinds to validation allow-list * Add RaftIndex to other added config entry stubs * Update usage metrics assertions to include new cfg entries * Add Meta and acl.EnterpriseMeta to all new ConfigEntry types * Remove unnecessary Services field from added config entry types * Implement GetMeta(), GetEnterpriseMeta() for added config entry types * Add meta field to proto, name consistently w/ existing config entries * Format config_entry.proto * Add initial implementation of CanRead + CanWrite for new config entry types * Add unit tests for decoding of new config entry types * Add unit tests for parsing of new config entry types * Add unit tests for API Gateway config entry ACLs * Return typed PermissionDeniedError on BoundAPIGateway CanWrite * Add unit tests for added config entry ACLs * Add BoundAPIGateway type to AllConfigEntryKinds * Return proper kind from BoundAPIGateway * Add docstrings for new config entry types * Add missing config entry kinds to proto def * Update usagemetrics_oss_test.go * Use utility func for returning PermissionDeniedError * EventPublisher subscriptions for Consul Native API Gateway (#15757) * Create new event topics in subscribe proto * Add tests for PBSubscribe func * Make configs singular, add all configs to PBToStreamSubscribeRequest * Add snapshot methods * Add config_entry_events tests * Add config entry kind to topic for new configs * Add unit tests for snapshot methods * Start adding integration test * Test using the new controller code * Update agent/consul/state/config_entry_events.go * Check value of error * Add controller stubs for API Gateway (#15837) * update initial stub implementation * move files, clean up mutex references * Remove embed, use idiomatic names for constructors * Remove stray file introduced in merge * Add APIGateway validation (#15847) * Add APIGateway validation * Add additional validations * Add cert ref validation * Add protobuf definitions * Fix up field types * Add API structs * Move struct fields around a bit * APIGateway InlineCertificate validation (#15856) * Add APIGateway validation * Add additional validations * Add protobuf definitions * Tabs to spaces * Add API structs * Move struct fields around a bit * Add validation for InlineCertificate * Fix ACL test * APIGateway BoundAPIGateway validation (#15858) * Add APIGateway validation * Add additional validations * Add cert ref validation * Add protobuf definitions * Fix up field types * Add API structs * Move struct fields around a bit * Add validation for BoundAPIGateway * APIGateway TCPRoute validation (#15855) * Add APIGateway validation * Add additional validations * Add cert ref validation * Add protobuf definitions * Fix up field types * Add API structs * Add TCPRoute normalization and validation * Add forgotten Status * Add some more field docs in api package * Fix test * Format imports * Rename snapshot test variable names * Add plumbing for Native API GW Subscriptions (#16003) Co-authored-by: Sarah Alsmiller <sarah.alsmiller@hashicorp.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com> |
||
---|---|---|
.. | ||
acl.go | ||
acl_events.go | ||
acl_events_test.go | ||
acl_oss.go | ||
acl_oss_test.go | ||
acl_schema.go | ||
acl_test.go | ||
autopilot.go | ||
autopilot_test.go | ||
catalog.go | ||
catalog_events.go | ||
catalog_events_oss.go | ||
catalog_events_oss_test.go | ||
catalog_events_test.go | ||
catalog_oss.go | ||
catalog_oss_test.go | ||
catalog_schema.go | ||
catalog_test.go | ||
config_entry.go | ||
config_entry_events.go | ||
config_entry_events_test.go | ||
config_entry_intention.go | ||
config_entry_intention_oss.go | ||
config_entry_oss.go | ||
config_entry_oss_test.go | ||
config_entry_schema.go | ||
config_entry_test.go | ||
connect_ca.go | ||
connect_ca_events.go | ||
connect_ca_events_test.go | ||
connect_ca_test.go | ||
coordinate.go | ||
coordinate_oss.go | ||
coordinate_oss_test.go | ||
coordinate_test.go | ||
delay_oss.go | ||
delay_test.go | ||
events.go | ||
events_test.go | ||
federation_state.go | ||
graveyard.go | ||
graveyard_oss.go | ||
graveyard_test.go | ||
index_connect_test.go | ||
indexer.go | ||
intention.go | ||
intention_oss.go | ||
intention_test.go | ||
kvs.go | ||
kvs_oss.go | ||
kvs_oss_test.go | ||
kvs_test.go | ||
memdb.go | ||
operations_oss.go | ||
peering.go | ||
peering_oss.go | ||
peering_oss_test.go | ||
peering_test.go | ||
prepared_query.go | ||
prepared_query_index.go | ||
prepared_query_index_test.go | ||
prepared_query_test.go | ||
query.go | ||
query_oss.go | ||
schema.go | ||
schema_oss.go | ||
schema_oss_test.go | ||
schema_test.go | ||
session.go | ||
session_oss.go | ||
session_test.go | ||
state_store.go | ||
state_store_oss_test.go | ||
state_store_test.go | ||
store_integration_test.go | ||
system_metadata.go | ||
system_metadata_test.go | ||
tombstone_gc.go | ||
tombstone_gc_test.go | ||
txn.go | ||
txn_test.go | ||
usage.go | ||
usage_oss.go | ||
usage_test.go |