From 4cfca34bb5a7a2c6c5985318651a7ff1095ccb72 Mon Sep 17 00:00:00 2001 From: Pavel Rachevskiy Date: Sat, 13 Dec 2025 11:15:24 +0100 Subject: [PATCH 1/2] ADH-7343: Skip permission error external service configs instead of failing --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 6821a83..361ecd3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -110,7 +110,7 @@ func parseExternalConfig(path string) (Config, error) { extData, err := os.ReadFile(path) if err != nil { - if os.IsNotExist(err) { + if os.IsNotExist(readExtErr) || os.IsPermission(readExtErr) { return cfg, nil } return cfg, fmt.Errorf("read service config %q: %w", path, err) From b676c84849fa97ed54dd332bfe9f29c5a27fe9e4 Mon Sep 17 00:00:00 2001 From: Pavel Rachevskiy Date: Sat, 13 Dec 2025 11:18:46 +0100 Subject: [PATCH 2/2] ADH-7343: Skip permission error external service configs instead of failing --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 361ecd3..59c7575 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -110,7 +110,7 @@ func parseExternalConfig(path string) (Config, error) { extData, err := os.ReadFile(path) if err != nil { - if os.IsNotExist(readExtErr) || os.IsPermission(readExtErr) { + if os.IsNotExist(err) || os.IsPermission(err) { return cfg, nil } return cfg, fmt.Errorf("read service config %q: %w", path, err)