From 57c59cf3cb68511f9d888466b0876e4fb1b47388 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 30 Jun 2025 10:24:45 +0200 Subject: [PATCH] Zanzana: Fix setting override with env variable (#107306) --- pkg/setting/settings_zanzana.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/setting/settings_zanzana.go b/pkg/setting/settings_zanzana.go index 410c62f01d9..3b4fff83b78 100644 --- a/pkg/setting/settings_zanzana.go +++ b/pkg/setting/settings_zanzana.go @@ -52,7 +52,7 @@ type ZanzanaServerSettings struct { func (cfg *Cfg) readZanzanaSettings() { zc := ZanzanaClientSettings{} - clientSec := cfg.Raw.Section("zanzana.client") + clientSec := cfg.SectionWithEnvOverrides("zanzana.client") zc.Mode = ZanzanaMode(clientSec.Key("mode").MustString("embedded")) validModes := []ZanzanaMode{ZanzanaModeEmbedded, ZanzanaModeClient} @@ -70,7 +70,7 @@ func (cfg *Cfg) readZanzanaSettings() { cfg.ZanzanaClient = zc zs := ZanzanaServerSettings{} - serverSec := cfg.Raw.Section("zanzana.server") + serverSec := cfg.SectionWithEnvOverrides("zanzana.server") zs.OpenFGAHttpAddr = serverSec.Key("http_addr").MustString("127.0.0.1:8080") zs.CheckQueryCache = serverSec.Key("check_query_cache").MustBool(true)