Prevent assetkey from leaking into wwclient logs

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2026-03-10 21:27:06 -06:00
committed by Christian Goll
parent 819163e706
commit 5f41465fac
5 changed files with 105 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ import (
"github.com/warewulf/warewulf/internal/pkg/pidfile"
"github.com/warewulf/warewulf/internal/pkg/version"
"github.com/warewulf/warewulf/internal/pkg/wwlog"
"github.com/warewulf/warewulf/internal/pkg/wwurl"
)
var (
@@ -340,7 +341,7 @@ func updateSystem(target string, ipaddr string, port int, wwid string, tag strin
counter = 0
}
if counter == 0 {
wwlog.Error("%s", err)
wwlog.Error("%s", wwurl.SanitizeError(err))
}
counter++
}