mirror of
https://github.com/gomods/athens
synced 2026-02-03 08:40:31 +00:00
Fix AWS default credentials (#1963)
Fix a bug where default credentials were erroneously cleared out, which broke several implementations.
This commit is contained in:
@@ -40,10 +40,6 @@ func New(s3Conf *config.S3Config, timeout time.Duration, options ...func(*aws.Co
|
||||
return nil, errors.E(op, err)
|
||||
}
|
||||
|
||||
// Remove anonymous credentials from the default config so that
|
||||
// session.NewSession can auto-resolve credentials from role, profile, env etc.
|
||||
awsConfig.Credentials = nil
|
||||
|
||||
for _, o := range options {
|
||||
o(&awsConfig)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user