Merge pull request #13063 from robertsirc/Comment-for-symlink-logging

Update walk.go
pull/12843/head
Matt Farina 6 months ago committed by GitHub
commit e90b456d65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save