consul/agent/connect/ca
R.B. Boyer a2876453a5
connect/ca: cease including the common name field in generated certs (#10424)
As part of this change, we ensure that the SAN extensions are marked as
critical when the subject is empty so that AWS PCA tolerates the loss of
common names well and continues to function as a Connect CA provider.

Parts of this currently hack around a bug in crypto/x509 and can be
removed after https://go-review.googlesource.com/c/go/+/329129 lands in
a Go release.

Note: the AWS PCA tests do not run automatically, but the following
passed locally for me:

    ENABLE_AWS_PCA_TESTS=1 go test ./agent/connect/ca -run TestAWS
2021-06-25 13:00:00 -05:00
..
common.go connect: Add AWS PCA provider (#6795) 2019-11-21 17:40:29 +00:00
mock_Provider.go Ensure that CA initialization does not block leader election. 2021-01-19 15:27:48 -05:00
provider.go ca: replace ca.PrimaryIntermediateProviders 2021-06-23 15:47:30 -04:00
provider_aws.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
provider_aws_test.go Ensure that CA initialization does not block leader election. 2021-01-19 15:27:48 -05:00
provider_consul.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
provider_consul_config.go Move IntermediateCertTTL to common CA config 2020-09-10 00:23:22 -07:00
provider_consul_test.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
provider_test.go Move IntermediateCertTTL to common CA config 2020-09-10 00:23:22 -07:00
provider_vault.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
provider_vault_test.go Ensure that CA initialization does not block leader election. 2021-01-19 15:27:48 -05:00
testing.go Add CA server delegate interface for testing 2020-11-19 20:08:06 -08:00