Closed kuenishi closed 1 year ago
Let us load secrets via environmental variables e.g.
[foobar]
scheme = s3
endpoint = https://foobar.example.com/
aws access_key_id = $CUSTOM_ACCESS_KEY
aws_secret_access_key = $CUSTOM_ACCESS_SECRET
Other discussions:
Assigned to 2.5.1 instead as it's yet an experimental feature.
When a configuration file
$XDG_CONFIG_HOME/pfio.ini
is placed, it provides an injection point to customize FS resolution from scheme (s3
part ofs3://some/path/to/file
). It lets us configure endpoint, secret, arbitrary configurations that's available at thekwargs
of each FSes. If you have some s3-compat storage system which is not S3, the configuration file would be like:And apps will code like this:
Possible discussions:
TODOs