Skip to content

Commit cb1b3b7

Browse files
Suppress AWS SDK checksum skip warnings for S3 (#4324)
Suppress the output of AWS SDK warnings related to missing checksums when accessing items in S3.
1 parent dbfe811 commit cb1b3b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/sources/s3/s3.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ func (s *Source) newClient(ctx context.Context, region, roleArn string) (*s3.Cli
182182
return nil, err
183183
}
184184

185-
return s3.NewFromConfig(cfg), nil
185+
return s3.NewFromConfig(cfg, func(options *s3.Options) {
186+
options.DisableLogOutputChecksumValidationSkipped = true
187+
}), nil
186188
}
187189

188190
// getBucketsToScan returns a list of S3 buckets to scan.

0 commit comments

Comments
 (0)