Decide/implement flags vs env vars vs manifest file for configuration
robszumski opened this issue · 1 comments
robszumski commented
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 andENC_CPU_COUNT
configure the same behavior.When overriding a configuration file parameter that is nested, like
image > from
, flatten it like so:--image-from
orENC_IMAGE_FROM
.
We need to decide how we want to implement this.
robszumski commented
- Document at the top of commands doc