Skip to content

Commit bb4fe8a

Browse files
committed
Don't show the vnc display password in the log
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 62ea12f commit bb4fe8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/hostagent/hostagent.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ func (a *HostAgent) Run(ctx context.Context) error {
329329
if err := os.WriteFile(vncfile, []byte(vncdisplay), 0600); err != nil {
330330
return err
331331
}
332-
vncurl := "vnc://:" + vncpasswd + "@" + net.JoinHostPort(vnchost, vncport)
333-
logrus.Infof("VNC server running at <%s>", vncurl)
334-
logrus.Infof("VNC Display: \"%s\" `%s`", vncdisplay, vncfile)
335-
logrus.Infof("VNC Password: \"%s\" `%s`", vncpasswd, vncpwdfile)
332+
vncurl := "vnc://" + net.JoinHostPort(vnchost, vncport)
333+
logrus.Infof("VNC server running at %s <%s>", vncdisplay, vncurl)
334+
logrus.Infof("VNC Display: `%s`", vncfile)
335+
logrus.Infof("VNC Password: `%s`", vncpwdfile)
336336
}
337337

338338
stBase := events.Status{

0 commit comments

Comments
 (0)