consul/agent/config
R.B. Boyer a2a8e9c783
connect: intentions are now managed as a new config entry kind "service-intentions" (#8834)
- Upgrade the ConfigEntry.ListAll RPC to be kind-aware so that older
copies of consul will not see new config entries it doesn't understand
replicate down.

- Add shim conversion code so that the old API/CLI method of interacting
with intentions will continue to work so long as none of these are
edited via config entry endpoints. Almost all of the read-only APIs will
continue to function indefinitely.

- Add new APIs that operate on individual intentions without IDs so that
the UI doesn't need to implement CAS operations.

- Add a new serf feature flag indicating support for
intentions-as-config-entries.

- The old line-item intentions way of interacting with the state store
will transparently flip between the legacy memdb table and the config
entry representations so that readers will never see a hiccup during
migration where the results are incomplete. It uses a piece of system
metadata to control the flip.

- The primary datacenter will begin migrating intentions into config
entries on startup once all servers in the datacenter are on a version
of Consul with the intentions-as-config-entries feature flag. When it is
complete the old state store representations will be cleared. We also
record a piece of system metadata indicating this has occurred. We use
this metadata to skip ALL of this code the next time the leader starts
up.

- The secondary datacenters continue to run the old intentions
replicator until all servers in the secondary DC and primary DC support
intentions-as-config-entries (via serf flag). Once this condition it met
the old intentions replicator ceases.

- The secondary datacenters replicate the new config entries as they are
migrated in the primary. When they detect that the primary has zeroed
it's old state store table it waits until all config entries up to that
point are replicated and then zeroes its own copy of the old state store
table. We also record a piece of system metadata indicating this has
occurred. We use this metadata to skip ALL of this code the next time
the leader starts up.
2020-10-06 13:24:05 -05:00
..
agent_limits.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
agent_limits_test.go config: Make Source an interface 2020-08-10 12:46:28 -04:00
builder.go Fix reload test; address other PR feedback 2020-09-30 18:00:07 +01:00
builder_oss.go token: OSS support for enterprise tokens 2020-08-31 15:10:15 -04:00
builder_oss_test.go Update enterprise configurations to be in OSS 2020-05-04 10:21:05 -04:00
builder_test.go config: move NodeName validation to config validation 2020-08-17 17:25:02 -04:00
config.go Add config changes for UI metrics 2020-09-30 17:59:16 +01:00
config_oss.go agent/config: add auditing config to OSS and add to enterpriseConfigMap exclusions 2020-05-11 13:27:35 -07:00
default.go Merge pull request #8271 from coignetp/http-metrics-label 2020-10-02 13:41:48 -07:00
default_oss.go auto-config: Avoid the marshal/unmarshal cycle in auto-config 2020-08-10 20:07:52 -04:00
doc.go
flags.go Add config changes for UI metrics 2020-09-30 17:59:16 +01:00
flags_test.go config: rename Flags to BuilderOpts 2020-06-16 12:51:19 -04:00
flagset.go
limits.go Add unconvert linter 2020-05-12 13:47:25 -04:00
limits_windows.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
merge.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
merge_test.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
runtime.go Add config changes for UI metrics 2020-09-30 17:59:16 +01:00
runtime_oss.go Sync of OSS changes to support namespaces (#6909) 2019-12-09 21:26:41 -05:00
runtime_oss_test.go token: OSS support for enterprise tokens 2020-08-31 15:10:15 -04:00
runtime_test.go connect: intentions are now managed as a new config entry kind "service-intentions" (#8834) 2020-10-06 13:24:05 -05:00
segment_oss.go Update to use a consulent build tag instead of just ent (#5759) 2019-05-01 11:11:27 -04:00
segment_oss_test.go testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00