check for more secrets need to be set

This commit is contained in:
Willy Kloucek
2022-04-29 13:07:25 +02:00
parent 9971867d5a
commit 4ff313b0a5
21 changed files with 127 additions and 6 deletions
@@ -33,6 +33,10 @@ func ParseConfig(cfg *config.Config) error {
}
func Validate(cfg *config.Config) error {
if cfg.TokenManager.JWTSecret == "" {
return shared.MissingJWTTokenError(cfg.Service.Name)
}
if cfg.MachineAuthAPIKey == "" {
return shared.MissingMachineAuthApiKeyError(cfg.Service.Name)
}