Skip to content

Commit 305d7fe

Browse files
Fix TLS with ClientAuthMode MD5
Signed-off-by: souravbiswassanto <[email protected]>
1 parent e65c758 commit 305d7fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (opt *postgresOptions) setDatabaseCredentials(appBinding *appcatalog.AppBin
115115

116116
userName := ""
117117
if appBinding.Spec.TLSSecret != nil && appBinding.Spec.TLSSecret.Name != "" {
118+
session.sh.SetEnv(EnvPgPassword, must(meta_util.GetBytesForKeys(appBindingSecret.Data, core.BasicAuthPasswordKey, envPostgresPassword)))
118119
appBindingSecret, err = opt.kubeClient.CoreV1().Secrets(appBinding.Namespace).Get(context.TODO(), appBinding.Spec.TLSSecret.Name, metav1.GetOptions{})
119120
if err != nil {
120121
return err

0 commit comments

Comments
 (0)