We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd42f7d commit 34a13e6Copy full SHA for 34a13e6
internal/config/types.go
@@ -371,14 +371,6 @@ func (col *Collector) Validate(allowedDirectories []string) error {
371
err = errors.Join(err, nginxReceiver.Validate(allowedDirectories))
372
}
373
374
- for _, path := range col.AdditionalConfigPaths {
375
- cleanPath := filepath.Clean(path)
376
- pathAllowed := isAllowedDir(cleanPath, allowedDirectories)
377
- if !pathAllowed {
378
- err = errors.Join(err, fmt.Errorf("additional config path %s not in allowed directories", path))
379
- }
380
381
-
382
return err
383
384
0 commit comments