open-consul/agent/auto-config
R.B. Boyer c3d5a2a5ab
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
..
auto_config.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_oss.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_oss_test.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
auto_encrypt.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_encrypt_test.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
config.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
config_oss.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
config_translate.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
config_translate_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
mock_oss_test.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
mock_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
persist.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
run.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
server_addr.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
tls.go connect/ca: cease including the common name field in generated certs (#10424) 2021-06-25 13:00:00 -05:00
tls_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00