We are using ejson to store our secrets encrypted in our repos, however, our applications expect settings to be set in the environment rather than reading from a file.
Currently, we use this bit of hackery to load the json settings as env variables:
Hi Jeff, I don't know if you are still looking for this feature, but the ejson2env command was designed to support this specific use case. You can get that from Shopify/ejson2env.
We are using ejson to store our secrets encrypted in our repos, however, our applications expect settings to be set in the environment rather than reading from a file.
Currently, we use this bit of hackery to load the json settings as env variables:
This is kind of a mess and I would love it if
ejson
supported writing out json content in a way that was easy to consume into an environment.How would you all feel about a contribution that outputs the json content in a format like:
for each variable so that it can be easily consumed by *sh for loading into shell environments before starting applications?