Skip to content

Commit eadaeda

Browse files
committed
[tlse] Restore route DestinationCACertificate to use internal bundle
Restore the route DestinationCACertificate to be the intenal bundle as introduced in 963263b . The reason for this is that routes do not use name based url when doing the re-encrypt and therefore we can end up on the internal vhost config using the public CA for validation, which won't work.
1 parent c73a218 commit eadaeda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ func (ed *EndpointDetail) CreateRoute(
567567
// get the TLSInternalCABundleFile to add it to the route
568568
// to be able to validate public/internal service endpoints
569569
tlsConfig.DestinationCACertificate, ctrlResult, err = secret.GetDataFromSecret(
570-
ctx, helper, *ed.Service.TLS.SecretName, 5, tls.CAKey)
570+
ctx, helper, ed.Service.TLS.CaBundleSecretName, 5, tls.InternalCABundleKey)
571571
if err != nil {
572572
return ctrlResult, err
573573
} else if (ctrlResult != ctrl.Result{}) {

0 commit comments

Comments
 (0)