consul/agent/connect/ca
Hans Hasselberg 804eb17094
connect: check if intermediate cert needs to be renewed. (#6835)
Currently when using the built-in CA provider for Connect, root certificates are valid for 10 years, however secondary DCs get intermediates that are valid for only 1 year. There is no mechanism currently short of rotating the root in the primary that will cause the secondary DCs to renew their intermediates.
This PR adds a check that renews the cert if it is half way through its validity period.

In order to be able to test these changes, a new configuration option was added: IntermediateCertTTL which is set extremely low in the tests.
2020-01-17 23:27:13 +01:00
..
common.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
mock_Provider.go Change CA Configure struct to pass Datacenter through (#6775) 2019-11-18 14:22:19 +00:00
provider.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
provider_aws.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
provider_aws_test.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
provider_consul.go connect: check if intermediate cert needs to be renewed. (#6835) 2020-01-17 23:27:13 +01:00
provider_consul_config.go connect: Support RSA keys in addition to ECDSA (#6055) 2019-07-30 17:47:39 -04:00
provider_consul_test.go connect: check if intermediate cert needs to be renewed. (#6835) 2020-01-17 23:27:13 +01:00
provider_vault.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
provider_vault_test.go Change CA Configure struct to pass Datacenter through (#6775) 2019-11-18 14:22:19 +00:00
testing.go connect: Implement NeedsLogger interface for CA providers (#6556) 2019-11-11 20:30:01 +00:00