Open gmatev opened 1 year ago
@gmatev need a little more explanation - For storage creds only
-
Tracked in - https://github.com/alcionai/corso/issues/3586
Do we want to update config file
values in case of repo Init command?
The config vars in - env, flags and config file is done
Context: The current scheme is not super clear and has caused some concerns with users who are struggling to change key parameters that are anchored to envars or config file.
Proposal: - Use a hierarchical model of overrides along the lines of what is available for the AWS CLI - https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html. In order of precedence:
For the above to be effective we also need to:
init
and/orconnect
today.Config file and secrets:
Corso persisting config file automatically:
Open questions:
init
if config exists? If yes, this needs to include requirement to change all parameters that are related to a given repo - all app config settings, bucket settings, passphrase. Any sensitive settings need to be deleted - seems complicatedinit
if the settings are actually differentOne option is to show an error if the config file exists (with conflicting params) and allow an overwrite based on something like
--overwrite-config
. For simplicity this is treated as just deleting the file and persisting (after validation) all effective settings wheninit
orconnect
is executed successfully