We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9183a07 commit b8b714bCopy full SHA for b8b714b
internal/config/types.go
@@ -348,8 +348,8 @@ func (nr *NginxReceiver) Validate(allowedDirectories []string) error {
348
}
349
350
for _, al := range nr.AccessLogs {
351
- allowed, err := isAllowedDir(al.FilePath, allowedDirectories)
352
- if err != nil {
+ allowed, allowedError := isAllowedDir(al.FilePath, allowedDirectories)
+ if allowedError != nil {
353
err = errors.Join(err, fmt.Errorf("invalid nginx receiver access log path: %s", al.FilePath))
354
355
if !allowed {
@@ -372,6 +372,7 @@ func (c *Config) IsDirectoryAllowed(directory string) bool {
372
slog.Warn("Unable to determine if directory is allowed", "error", err)
373
return false
374
375
+
376
return allow
377
378
0 commit comments