open-consul/agent/config
Dan Bond 6bb7782745
agent: prevent very old servers re-joining a cluster with stale data (#17171)
* agent: configure server lastseen timestamp

Signed-off-by: Dan Bond <danbond@protonmail.com>

* use correct config

Signed-off-by: Dan Bond <danbond@protonmail.com>

* add comments

Signed-off-by: Dan Bond <danbond@protonmail.com>

* use default age in test golden data

Signed-off-by: Dan Bond <danbond@protonmail.com>

* add changelog

Signed-off-by: Dan Bond <danbond@protonmail.com>

* fix runtime test

Signed-off-by: Dan Bond <danbond@protonmail.com>

* agent: add server_metadata

Signed-off-by: Dan Bond <danbond@protonmail.com>

* update comments

Signed-off-by: Dan Bond <danbond@protonmail.com>

* correctly check if metadata file does not exist

Signed-off-by: Dan Bond <danbond@protonmail.com>

* follow instructions for adding new config

Signed-off-by: Dan Bond <danbond@protonmail.com>

* add comments

Signed-off-by: Dan Bond <danbond@protonmail.com>

* update comments

Signed-off-by: Dan Bond <danbond@protonmail.com>

* Update agent/agent.go

Co-authored-by: Dan Upton <daniel@floppy.co>

* agent/config: add validation for duration with min

Signed-off-by: Dan Bond <danbond@protonmail.com>

* docs: add new server_rejoin_age_max config definition

Signed-off-by: Dan Bond <danbond@protonmail.com>

* agent: add unit test for checking server last seen

Signed-off-by: Dan Bond <danbond@protonmail.com>

* agent: log continually for 60s before erroring

Signed-off-by: Dan Bond <danbond@protonmail.com>

* pr comments

Signed-off-by: Dan Bond <danbond@protonmail.com>

* remove unneeded todo

* agent: fix error message

Signed-off-by: Dan Bond <danbond@protonmail.com>

---------

Signed-off-by: Dan Bond <danbond@protonmail.com>
Co-authored-by: Dan Upton <daniel@floppy.co>
2023-05-15 04:05:47 -07:00
..
testdata agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
agent_limits.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
builder.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
builder_oss.go feat: add reporting config with reload (#16890) 2023-04-11 15:04:02 -04:00
builder_oss_test.go feat: add reporting config with reload (#16890) 2023-04-11 15:04:02 -04:00
builder_test.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
config.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
config_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
default.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
default_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deprecated.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deprecated_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
doc.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
file_watcher.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
file_watcher_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
flags.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
flags_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
flagset.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
golden_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
limits.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
limits_windows.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
merge.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
merge_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
ratelimited_file_watcher.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
ratelimited_file_watcher_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
runtime.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
runtime_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
runtime_oss_test.go feat: add reporting config with reload (#16890) 2023-04-11 15:04:02 -04:00
runtime_test.go agent: prevent very old servers re-joining a cluster with stale data (#17171) 2023-05-15 04:05:47 -07:00
segment_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
segment_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00