From 341a6ed1bb444424a5dab39ca338fdc4d58563fe Mon Sep 17 00:00:00 2001 From: Aphral Griffin Date: Mon, 10 Nov 2025 11:05:00 +0000 Subject: [PATCH] remove check --- internal/config/types.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/config/types.go b/internal/config/types.go index fe3bc1773..38b03e7ab 100644 --- a/internal/config/types.go +++ b/internal/config/types.go @@ -367,14 +367,6 @@ func (col *Collector) Validate(allowedDirectories []string) error { err = errors.Join(err, nginxReceiver.Validate(allowedDirectories)) } - for _, path := range col.AdditionalConfigPaths { - cleanPath := filepath.Clean(path) - pathAllowed := isAllowedDir(cleanPath, allowedDirectories) - if !pathAllowed { - err = errors.Join(err, fmt.Errorf("additional config path %s not in allowed directories", path)) - } - } - return err }