Skip to content

Commit

Permalink
Merge pull request #376 from stuggi/no_commonName
Browse files Browse the repository at this point in the history
[TLS] Don't set commonName and only use subjectAltNames
  • Loading branch information
stuggi authored Oct 23, 2023
2 parents e9c65d1 + 0ef7e5f commit 357f2fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions modules/certmanager/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ func NewCertificate(
// minimal spec should be:
// Spec:
//
// commonName: keystone-public-openstack.apps-crc.testing
// dnsNames:
// - keystone-public-openstack
// - keystone-public-openstack.apps-crc.testing
// issuerRef:
// kind: Issuer
Expand Down Expand Up @@ -166,8 +164,7 @@ func EnsureCert(
namespace,
labels,
certmgrv1.CertificateSpec{
CommonName: hostnames[0],
DNSNames: hostnames,
DNSNames: hostnames,
Duration: &metav1.Duration{
Duration: *duration,
},
Expand Down
2 changes: 1 addition & 1 deletion modules/certmanager/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (i *Issuer) CreateOrPatch(
return ctrl.Result{}, err
}
if op != controllerutil.OperationResultNone {
h.GetLogger().Info(fmt.Sprintf("Route %s - %s", issuer.Name, op))
h.GetLogger().Info(fmt.Sprintf("Issuer %s - %s", issuer.Name, op))
}

return ctrl.Result{}, nil
Expand Down

0 comments on commit 357f2fa

Please sign in to comment.