We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f1fc8 commit 341a6edCopy full SHA for 341a6ed
internal/config/types.go
@@ -367,14 +367,6 @@ func (col *Collector) Validate(allowedDirectories []string) error {
367
err = errors.Join(err, nginxReceiver.Validate(allowedDirectories))
368
}
369
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
-
378
return err
379
380
0 commit comments