Based on functionality provided by the Spring framework, the utility supports the use of system environment variables in the configuration file. This can be very useful for various purposes, so this functionality should be described in the utility documentation.
As an example, you could have some script to load credentials from some credential store, and pass these credentials to the utility using environment variables. That would avoid the need to hard-code the credentials in the configuration file, or passing them in plain text through command line options (which may expose these credentials in the operating system process list for example).
With the above example in mind, you could add the following snippet to the utility configuration file to load the FoD user name and Personal Access Token from the FOD_USER and FOD_PAT environment variables:
Based on functionality provided by the Spring framework, the utility supports the use of system environment variables in the configuration file. This can be very useful for various purposes, so this functionality should be described in the utility documentation.
As an example, you could have some script to load credentials from some credential store, and pass these credentials to the utility using environment variables. That would avoid the need to hard-code the credentials in the configuration file, or passing them in plain text through command line options (which may expose these credentials in the operating system process list for example).
With the above example in mind, you could add the following snippet to the utility configuration file to load the FoD user name and Personal Access Token from the FOD_USER and FOD_PAT environment variables: