mirror of https://github.com/status-im/consul.git
608597c7b6
This commit makes two changes to the validation. Previously we would call this validation in GenerateRoot, which happens both on initialization (when a follower becomes leader), and when a configuration is updated. We only want to do this validation during config update so the logic was moved to the UpdateConfiguration function. Previously we would compare the config values against the actual cert. This caused problems when the cert was created manually in Vault (not created by Consul). Now we compare the new config against the previous config. Using a already created CA cert should never error now. Adding the key bit and types to the config should only error when the previous values were not the defaults. |
||
---|---|---|
.. | ||
common.go | ||
mock_Provider.go | ||
provider.go | ||
provider_aws.go | ||
provider_aws_test.go | ||
provider_consul.go | ||
provider_consul_config.go | ||
provider_consul_test.go | ||
provider_test.go | ||
provider_vault.go | ||
provider_vault_test.go | ||
testing.go |