From 30a5598f2bcef148def622ee63f6911634a7927c Mon Sep 17 00:00:00 2001 From: Robert Sirchia Date: Thu, 23 May 2024 15:59:25 -0400 Subject: [PATCH] Update walk.go Putting a comment on why we are logging a found symlink. Signed-off-by: Robert Sirchia --- internal/sympath/walk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/sympath/walk.go b/internal/sympath/walk.go index a276cfeff..6b221fb6c 100644 --- a/internal/sympath/walk.go +++ b/internal/sympath/walk.go @@ -71,6 +71,7 @@ func symwalk(path string, info os.FileInfo, walkFn filepath.WalkFunc) error { if err != nil { return errors.Wrapf(err, "error evaluating symlink %s", path) } + //This log message is to highlight a symlink that is being used within a chart, symlinks can be used for nefarious reasons. log.Printf("found symbolic link in path: %s resolves to %s. Contents of linked file included and used", path, resolved) if info, err = os.Lstat(resolved); err != nil { return err