Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
add: expand env vars in the flows config (useful for api keys)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jun 21, 2024
1 parent b4f57eb commit 1701deb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/flows/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ func FromFile(filename string) (*FlowConfig, error) {
return nil, err
}

// Expand environment variables in config
content = []byte(os.ExpandEnv(string(content)))

var config FlowConfig
jsondata := content
if !json.Valid(content) {
Expand Down

0 comments on commit 1701deb

Please sign in to comment.