Add S3 Authentication
Description
This MR adds authentication support for the S3 storage backend.
More specifically, it:
- Introduces the
access_key
andsecret_key
options in the configuration file fors3
and uses those to talk to S3 servers. - Fixes an issue with reads from S3 since the initial
StreamingBody
object that was returned is notseekable
. (we construct aio.BytesIO()
object out of the contents of the S3StreamingBody
).
For reference, the storages
section of the config should look similar to:
storages:
- !s3-storage &data-store
bucket: my-bucket
endpoint: http://1.2.3.4:5678
access_key: my-access-key
secret_key: my-secret-key