Mintbase / arak

General Purpose Ethereum Event Indexer
GNU General Public License v3.0
1 stars 1 forks source link

Env Secrets (Node & DB Credentials) #7

Closed bh2smith closed 11 months ago

bh2smith commented 11 months ago

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.