Zanzana: add flag for running zanzana server insecurely (#107130)

* add flag for running zanzana server insecurely

* Only allow insecure connections in dev environment

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
This commit is contained in:
Cory Forseth
2025-06-25 22:47:53 +00:00
committed by GitHub
co-authored by Alexander Zobnin
parent 79fe8a9902
commit 41a4841e57
2 changed files with 33 additions and 9 deletions
+3
View File
@@ -46,6 +46,8 @@ type ZanzanaServerSettings struct {
UseStreamedListObjects bool
// URL for fetching signing keys.
SigningKeysURL string
// Allow insecure connections to the server for development purposes.
AllowInsecure bool
}
func (cfg *Cfg) readZanzanaSettings() {
@@ -77,6 +79,7 @@ func (cfg *Cfg) readZanzanaSettings() {
zs.ListObjectsMaxResults = uint32(serverSec.Key("list_objects_max_results").MustUint(1000))
zs.UseStreamedListObjects = serverSec.Key("use_streamed_list_objects").MustBool(false)
zs.SigningKeysURL = serverSec.Key("signing_keys_url").MustString("")
zs.AllowInsecure = serverSec.Key("allow_insecure").MustBool(false)
cfg.ZanzanaServer = zs
}