In order to streamline the deployment process, we make it possible to pass db and node credentials as ENV vars to the container. This is done by "manually overriding" the toml configuration when env vars are provided (so the environment variables "trump" having the data in the config toml file).
Note that this change is backwards compatible with the originally intended functionality, but we can phase this out over time if we like.
Test Plan
There is a comprehensive unit test of the manual override method demonstrating expected functionality in boolean cases where env vars are Some or None.
In order to streamline the deployment process, we make it possible to pass db and node credentials as ENV vars to the container. This is done by "manually overriding" the toml configuration when env vars are provided (so the environment variables "trump" having the data in the config toml file).
Note that this change is backwards compatible with the originally intended functionality, but we can phase this out over time if we like.
Test Plan
There is a comprehensive unit test of the manual override method demonstrating expected functionality in boolean cases where env vars are
Some
orNone
.