Skip to content
Snippets Groups Projects
Unverified Commit 749bbd5d authored by Tuomo Tanskanen's avatar Tuomo Tanskanen Committed by GitHub
Browse files

fix unmarshaling of expanded environment variables with special characters (#3770)


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: default avatarTuomo Tanskanen <tuomo.tanskanen@est.tech>
parent e7c0682e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment