From 79c47555683b99e0754532bf005bd85b090e096b Mon Sep 17 00:00:00 2001 From: redwarn Date: Wed, 22 Oct 2025 10:04:58 +0400 Subject: [PATCH 1/2] update aws credentitas build --- server/storage/s3.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/storage/s3.go b/server/storage/s3.go index 5c1e3a05..1ef7028d 100644 --- a/server/storage/s3.go +++ b/server/storage/s3.go @@ -179,6 +179,9 @@ func (s *S3Storage) Put(ctx context.Context, token string, filename string, read func (s *S3Storage) IsRangeSupported() bool { return true } func getAwsConfig(ctx context.Context, accessKey, secretKey string) (aws.Config, error) { + if accessKey == "" || accessKey == "" { + return config.LoadDefaultConfig(ctx, config.WithRegion(region)) + } return config.LoadDefaultConfig(ctx, config.WithCredentialsProvider(credentials.StaticCredentialsProvider{ Value: aws.Credentials{ From e64b9dc1c439485a1102fdc6e4f0a8e95dc13f9f Mon Sep 17 00:00:00 2001 From: redwarn Date: Wed, 22 Oct 2025 10:21:24 +0400 Subject: [PATCH 2/2] Update s3.go --- server/storage/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/storage/s3.go b/server/storage/s3.go index 1ef7028d..4b629915 100644 --- a/server/storage/s3.go +++ b/server/storage/s3.go @@ -179,7 +179,7 @@ func (s *S3Storage) Put(ctx context.Context, token string, filename string, read func (s *S3Storage) IsRangeSupported() bool { return true } func getAwsConfig(ctx context.Context, accessKey, secretKey string) (aws.Config, error) { - if accessKey == "" || accessKey == "" { + if accessKey == "" || secretKey == "" { return config.LoadDefaultConfig(ctx, config.WithRegion(region)) } return config.LoadDefaultConfig(ctx,