From c7c244992aeae3ea2fe2d4b636124ef0397deba0 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 19 Mar 2026 11:04:57 -0400 Subject: [PATCH] fix: ensure LLM_PROXY__ENCRYPTION_KEY is correctly loaded from env Explicitly bound the encryption_key to handle the double underscore convention in Viper. --- internal/config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index aa3237b6..0f08664e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -111,6 +111,9 @@ func Load() (*Config, error) { v.SetEnvKeyReplacer(strings.NewReplacer(".", "__")) v.AutomaticEnv() + // Explicitly bind top-level keys that might use double underscores in .env + v.BindEnv("encryption_key", "LLM_PROXY__ENCRYPTION_KEY") + // Config file v.SetConfigName("config") v.SetConfigType("toml")