alan-turing-institute / whatwhat

A reimagining of nowwhat in OCaml
MIT License
0 stars 0 forks source link

Make config tolerant of missing values, and read secrets from envvars #46

Closed mhauru closed 1 year ago

mhauru commented 1 year ago

Config now tries to get the secrets from two sources: the secrets file, and environment variables with names like WHATWHAT_GITHUBTOKEN. If both are present, the environment variable takes effect. It also only errors once you actually try to get the value of a secret, rather than failing right away at load time. So for instance if you don't use the Slack module, you won't need a Slack token in your secrets/envvars.