Skip to content

Commit 386852f

Browse files
Fix TLS for ClientAuthMode MD5
Signed-off-by: souravbiswassanto <[email protected]>
1 parent b0149e0 commit 386852f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,9 @@ func (opt *postgresOptions) setDatabaseCredentials(appBinding *appcatalog.AppBin
142142
userName = opt.user
143143
} else {
144144
// set env for pg_dump/pg_dumpall
145-
session.sh.SetEnv(EnvPgPassword, must(meta_util.GetBytesForKeys(appBindingSecret.Data, core.BasicAuthPasswordKey, envPostgresPassword)))
146145
userName = must(meta_util.GetBytesForKeys(appBindingSecret.Data, core.BasicAuthUsernameKey, envPostgresUser))
147146
}
148-
147+
session.sh.SetEnv(EnvPgPassword, must(meta_util.GetBytesForKeys(appBindingSecret.Data, core.BasicAuthPasswordKey, envPostgresPassword)))
149148
pgSSlmode, err := getSSLMODE(appBinding)
150149
if err != nil {
151150
return err

0 commit comments

Comments
 (0)