Skip to content

Commit 52c2fe5

Browse files
authored
Merge pull request moby#3794 from bpaquet/revert-3692-patch-1
Revert "Problem: can't use anonymous S3 credentials"
2 parents 1077362 + fb33976 commit 52c2fe5

File tree

1 file changed

+0
-4
lines changed
  • cache/remotecache/s3

1 file changed

+0
-4
lines changed

cache/remotecache/s3/s3.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ func newS3Client(ctx context.Context, config Config) (*s3Client, error) {
360360
client := s3.NewFromConfig(cfg, func(options *s3.Options) {
361361
if config.AccessKeyID != "" && config.SecretAccessKey != "" {
362362
options.Credentials = credentials.NewStaticCredentialsProvider(config.AccessKeyID, config.SecretAccessKey, config.SessionToken)
363-
} else {
364-
// Setting `nil` for anonymous credentials as per
365-
// https://pkg.go.dev/github.com/aws/[email protected]/aws#AnonymousCredentials
366-
options.Credentials = nil
367363
}
368364
if config.EndpointURL != "" {
369365
options.UsePathStyle = config.UsePathStyle

0 commit comments

Comments
 (0)