Skip to content

Commit 34a13e6

Browse files
authored
Remove allowed directories check on additional OTel config paths (#1380)
1 parent cd42f7d commit 34a13e6

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
@@ -371,14 +371,6 @@ func (col *Collector) Validate(allowedDirectories []string) error {
371371
err = errors.Join(err, nginxReceiver.Validate(allowedDirectories))
372372
}
373373

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-
382374
return err
383375
}
384376

0 commit comments

Comments
 (0)