The environment variable which, if set, will be used to decrypt an encrypted config file (e.g.
The environment variable which, if set, will be used to decrypt an encrypted config file (e.g. "--secret" for the default or "--secret=password.conf" for specifying one)
the standard-in read function
the application config password used to encrypt the config
read the configuration from the given path, prompting for the password via 'readLine' should the SecretEnvVariableName environment variable not be set
read the configuration from the given path, prompting for the password via 'readLine' should the SecretEnvVariableName environment variable not be set
the path pointing at the encrypted config
the readline function to get user input
a configuration if the file exists
prompt for and set some secret values
prompt for and set some secret values
a means to accept user input for a particular prompt
the path to the encrypted configuration file
Makes available a means to initialize a sensitive, encrypted config file via SecretConfig.writeSecretsUsingPrompt and ConfigApp.secretConfigForArgs
The idea is that a (service) user-only readable, password-protected AES encrypted config file can be set up via reading entries from standard input, and an application an use those configuration entries thereafter by taking the password from standard input.