From 0e1af85c0b3121bb8a8dda7d609352d106ce3e18 Mon Sep 17 00:00:00 2001 From: Yong Zhang <15604715+yongzhang@users.noreply.github.com> Date: Thu, 23 May 2024 10:15:48 +0800 Subject: [PATCH] Fix AWS default credentials (#1963) Fix a bug where default credentials were erroneously cleared out, which broke several implementations. --- pkg/storage/s3/s3.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/storage/s3/s3.go b/pkg/storage/s3/s3.go index 8d648b12..3ae2d173 100644 --- a/pkg/storage/s3/s3.go +++ b/pkg/storage/s3/s3.go @@ -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) }