mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
bbf1ca7f0b
* fix: stop viper AutomaticEnv from shadowing predastore's own env vars Viper resolves AutomaticEnv before explicit BindEnv, so predastore's bare "config-path", "host" and "base-path" viper keys auto-derived to SPINIFEX_CONFIG_PATH, SPINIFEX_HOST and SPINIFEX_BASE_PATH - coincidentally the same names used elsewhere (the global cluster config path, and root's global --host override). Setting SPINIFEX_CONFIG_PATH for the cluster config (needed by derivePredastoreBind) silently made predastore parse the cluster config as its own S3 config, breaking auth for every signed request. Rename predastore's host/base-path/config-path viper keys to "predastore-"-prefixed keys whose AutomaticEnv-derived name is identical to their explicit BindEnv target, so no shadow is possible regardless of what else is set in the environment. * style: trim predastore env-binding comments to the 3-line limit