Skip to content

Commit 730778c

Browse files
author
jmccormick2001
committed
update apiserver to remove printing of password
1 parent a54b0b9 commit 730778c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apiserver/root.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,19 +263,18 @@ func Authn(where string, w http.ResponseWriter, r *http.Request) error {
263263
log.Infof("[audit] %s username=[%s] method=[%s]\n", where, username, r.Method)
264264
}
265265

266-
log.Debugf("Authn Attempt %s username=[%s] password=[%s]\n", where, username, password)
266+
log.Debugf("Authn Attempt %s username=[%s]\n", where, username)
267267
if authOK == false {
268268
http.Error(w, "Not authorized", 401)
269269
return errors.New("Not Authorized")
270270
}
271271

272272
if !BasicAuthCheck(username, password) {
273-
log.Errorf("Authn Failed %s username=[%s] password=[%s]\n", where, username, password)
273+
log.Errorf("Authn Failed %s username=[%s]\n", where, username)
274274
http.Error(w, "Not authenticated in apiserver", 401)
275275
return errors.New("Not Authenticated")
276276
}
277277
log.Debug("Authn Success")
278-
//log.Debugf("Authn Success %s username=[%s] password=[%s]\n", where, username, password)
279278
return err
280279

281280
}

conf/postgres-operator/cluster/1/cluster-upgrade-job-1.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
"env": [{
4444
"name": "OLD_DATABASE_NAME",
4545
"value": "{{.OldDatabaseName}}"
46+
}, {
47+
"name": "PG_LOCALE",
48+
"value": "en_US.UTF8"
4649
}, {
4750
"name": "NEW_DATABASE_NAME",
4851
"value": "{{.NewDatabaseName}}"

0 commit comments

Comments
 (0)