mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-14 20:45:53 -05:00
service.secret had an unconditional random default, and viper's IsSet reports defaults as set. The deprecation branch therefore always took the "both keys are set" path and never copied service.jwtsecret over, so instances configured with the old key silently got a fresh random secret on every start — flaky 401s across replicas. The random fallback is now generated after the config file and env are read, so an empty service.secret unambiguously means "not configured".