consul/command
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
..
acl testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
agent agent: add apiServers type for managing HTTP servers 2020-09-03 13:40:12 -04:00
catalog Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
config connect: intentions are now managed as a new config entry kind "service-intentions" (#8834) 2020-10-06 13:24:05 -05:00
connect connect: intentions are now managed as a new config entry kind "service-intentions" (#8834) 2020-10-06 13:24:05 -05:00
debug testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
event Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
exec Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
flags Update namespaces subject-verb agreement 2020-06-23 10:57:30 -06:00
forceleave Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
helpers Centralized Config CLI (#5731) 2019-04-30 16:27:16 -07:00
info Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
intention connect: intentions are now managed as a new config entry kind "service-intentions" (#8834) 2020-10-06 13:24:05 -05:00
join Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
keygen Update default gossip encryption key size to 32 bytes 2019-07-30 09:45:41 -06:00
keyring add -list-primary to `consul keyring` command (#8692) 2020-09-24 20:04:20 +02:00
kv testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
leave Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
lock Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
login testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
logout testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
maint remove nodeName call when using -service 2020-09-23 10:45:16 +02:00
members Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
monitor Rename NewTestAgentWithFields to StartTestAgent 2020-03-31 17:14:55 -04:00
operator Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
reload Implement Client Agent Auto Config 2020-06-17 16:49:46 -04:00
rtt Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
services testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
snapshot testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
tls testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
validate testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
version add v to version pretty formatter (#8341) 2020-07-20 17:43:10 -04:00
watch testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
commands_oss.go Add Revision to version CLI output and add JSON support 2020-07-08 16:32:46 -04:00
registry.go Abandon daemonize for simpler solution (preserving history): 2018-06-25 12:24:10 -07:00