S3 backend: accept AWS_SESSION_TOKEN

This commit is contained in:
denis.uzvik
2018-07-12 16:18:19 +03:00
parent 7961740dcc
commit 1e42f4f300
3 changed files with 171 additions and 16 deletions

View File

@@ -50,13 +50,13 @@ func open(cfg Config, rt http.RoundTripper) (*Backend, error) {
// call to a pre-defined endpoint, only valid inside
// configured ec2 instances)
creds := credentials.NewChainCredentials([]credentials.Provider{
&credentials.EnvAWS{},
&credentials.Static{
Value: credentials.Value{
AccessKeyID: cfg.KeyID,
SecretAccessKey: cfg.Secret,
},
},
&credentials.EnvAWS{},
&credentials.EnvMinio{},
&credentials.FileAWSCredentials{},
&credentials.FileMinioClient{},