-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
While working on #22479, I noticed that we have quite a few different ways to specify connection configuration for s3 repositories. There are 4 different setting names for each "real" setting (eg access key) that I counted, which are tried successively as fallbacks in a web of Setting objects. Can we simplify the configuration to just one set of settings?
Perhaps we can have named configurations, and the name "default" would be special? For example:
aws.configuration.default:
access_key: foo
secret_key: bar
proxy_host: example.com
proxy_port: 1234
Now if you replace default with myconfig, then in an s3 repository, we can use say configuration: myconfig. This would greatly simplify settings parsing, as there would be one place to look, and it still allows users without complicated setups to not need fancy configuration (just setup the default configuration, no need to specify anything within a repository, similar today to setting eg cloud.aws.access_key).