Skip to content

Find, verify, and analyze leaked credentials

Suppress AWS SDK checksum skip warnings for S3 (#4324)

Peter Christian Fraedrichcb1b3b72fb25
diff --git a/pkg/sources/s3/s3.go b/pkg/sources/s3/s3.go
index 782171318..f708376aa 100644
--- a/pkg/sources/s3/s3.go
+++ b/pkg/sources/s3/s3.go
@@ -182,7 +182,9 @@ func (s *Source) newClient(ctx context.Context, region, roleArn string) (*s3.Cli
return nil, err
}
- return s3.NewFromConfig(cfg), nil
+ return s3.NewFromConfig(cfg, func(options *s3.Options) {
+ options.DisableLogOutputChecksumValidationSkipped = true
+ }), nil
}
// getBucketsToScan returns a list of S3 buckets to scan.