mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
749bbd5d98
If we expand environment values directly with os.ExpandEnv() over whole config, we might end up in a situation where the environment variable has escape characters that break the resulting JSON, and unmarshalling fails. Instead of expanding the entire config with single call, we recurse through the config and expand the values in leaves one by one. Signed-off-by: Tuomo Tanskanen <tuomo.tanskanen@est.tech>