Skip to content

Conversation

@prabirshrestha
Copy link
Contributor

@prabirshrestha prabirshrestha commented Nov 26, 2024

This introduces a new flag called --var-env-prefix which defaults to env:. This allows us to replace variables with environment variables allowing us to store the secret in CI or have dynamic values without writing tools. I have updated the README.md with links to http://dotenvx.com which even allows to check encrypted .env files in the source control. While there are other tools such as sops, git-secret, dotenvx is probably the most simple one for anyone to get started.

[update]
Thinking more about this I updated the code to now use --env-template which uses <<$env(VARIABLE)>> prefix instead of env:. Right now I loop through the items in variables files, but in the future we could use the same template to expand to other files such as nomad jobs or even the entire variables file. Tried to use a template syntax that doesn't conflict with nomad variables. I'm using $env() to allow opportunities in the future to add support for other sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant