edgebitio/enclaver

Decide/implement flags vs env vars vs manifest file for configuration

robszumski opened this issue · 1 comments

In the spirit of doc-driven brainstorming, the following was written up:

Enclaver accepts configuration from command line flags, environment variables, and from a configuration file for builds. When all three are present, the order of precedence is flag > env var > config file.

All environment variables are prefixed with ENC_ and exclusively use underscores. Flags exclusively use dashes. Configuration file parameters exclusively use underscores. For example, --cpu-count flag and ENC_CPU_COUNT configure the same behavior.

When overriding a configuration file parameter that is nested, like image > from, flatten it like so: --image-from or ENC_IMAGE_FROM.

We need to decide how we want to implement this.