Skip to content

Commit 69e56e1

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

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
@@ -303,10 +303,10 @@ func (a *HostAgent) Run(ctx context.Context) error {
303303
if err := os.WriteFile(vncfile, []byte(vncdisplay), 0600); err != nil {
304304
return err
305305
}
306-
vncurl := "vnc://:" + vncpasswd + "@" + net.JoinHostPort(vnchost, vncport)
307-
logrus.Infof("VNC server running at <%s>", vncurl)
308-
logrus.Infof("VNC Display: \"%s\" `%s`", vncdisplay, vncfile)
309-
logrus.Infof("VNC Password: \"%s\" `%s`", vncpasswd, vncpwdfile)
306+
vncurl := "vnc://" + net.JoinHostPort(vnchost, vncport)
307+
logrus.Infof("VNC server running at %s <%s>", vncdisplay, vncurl)
308+
logrus.Infof("VNC Display: `%s`", vncfile)
309+
logrus.Infof("VNC Password: `%s`", vncpwdfile)
310310
}
311311

312312
stBase := events.Status{

0 commit comments

Comments
 (0)