From aaaf2daf0175ab9281f4ae2689637f07a9704328 Mon Sep 17 00:00:00 2001 From: Marcel Moura <5615598+marcelstanley@users.noreply.github.com> Date: Fri, 16 Aug 2024 19:08:38 -0300 Subject: [PATCH] fix(config): adjust condition to load Auth config For no obvious reason, the sunodo validator mode was been evaluated --- internal/node/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/node/config/config.go b/internal/node/config/config.go index a1cce3a00..240485608 100644 --- a/internal/node/config/config.go +++ b/internal/node/config/config.go @@ -104,7 +104,8 @@ func FromEnv() NodeConfig { config.ExperimentalSunodoValidatorRedisEndpoint = Redacted[string]{getExperimentalSunodoValidatorRedisEndpoint()} } - if !config.FeatureDisableClaimer && !getExperimentalSunodoValidatorEnabled() { + // Authentication is only available when the claimer is enabled + if !config.FeatureDisableClaimer { config.Auth = authFromEnv() } return config