Skip to content

Commit

Permalink
fix(config): adjust condition to load Auth config
Browse files Browse the repository at this point in the history
For no obvious reason, the sunodo validator mode was been evaluated
  • Loading branch information
marcelstanley committed Aug 16, 2024
1 parent 1f33dca commit 7a4b699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/node/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a4b699

Please sign in to comment.