question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to use environment variables in config.yml?

See original GitHub issue

Hi --First off great work on this and also the old incarnation of the project!

I’m working to migrate to dnsrobocert from the old project, and I was wondering if it is possible to use environment variables in the config.yml? something like:

email_account: ${LETSENCRYPT_USER_MAIL}

I ask because I use this tool to inject environment variables into my container, so I don’t have to store them in plain text on my server. https://github.com/cyberark/summon

Perhaps there’s a better way of thinking about how to protect my “secrets” with dnsrobocert, so I am all ears for alternatives.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adferrandcommented, May 31, 2020

Injecting environment variables in the configuration file is now supported with the new release 3.3.2.

This is independant from #27, that I will do later, and consists in a configuration through environment variables without any configuration file.

1reaction
adferrandcommented, May 5, 2020

Yes it refers to the old environment variables. However, the new one is not yet implemented. I am working on it, and hope to finish it by the end of this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use environment variables in the configuration - Elastic
You can use environment variable references in the config file to set values that need to be configurable during deployment. To do this,...
Read more >
How to use a YAML file or environment ... - Great Expectations!
In most cases, we suggest using a config variables YAML file. YAML files make variables more visible, easily editable, and allow for modularization...
Read more >
Document how to use environment variables in `.yml` config file
yml ) to use graphql-codegen on a CI server. Describe the solution you'd like. Be able to pass headers in via the CLI,...
Read more >
Introduction to environment variables - CircleCI
Use environment variables to set up various configuration options, and keep your set-up secure with secrets, private keys, and contexts.
Read more >
How do I connect .env file to config.yml? - Stack Overflow
You can't include .env file inside a YAML one. However, you can interpolate variables into your config.yml file using the ${} notation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found