Skip to content

Commit 341a6ed

Browse files
committed
remove check
1 parent 61f1fc8 commit 341a6ed

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/config/types.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,6 @@ func (col *Collector) Validate(allowedDirectories []string) error {
367367
err = errors.Join(err, nginxReceiver.Validate(allowedDirectories))
368368
}
369369

370-
for _, path := range col.AdditionalConfigPaths {
371-
cleanPath := filepath.Clean(path)
372-
pathAllowed := isAllowedDir(cleanPath, allowedDirectories)
373-
if !pathAllowed {
374-
err = errors.Join(err, fmt.Errorf("additional config path %s not in allowed directories", path))
375-
}
376-
}
377-
378370
return err
379371
}
380372

0 commit comments

Comments
 (0)