Skip to content

Commit cd39f66

Browse files
[aws] Disable Checksum Validation for FIPS is Enabled (#47105) (#47138)
(cherry picked from commit d9f2bad) Co-authored-by: kaiyan-sheng <[email protected]>
1 parent 526fc4b commit cd39f66

File tree

2 files changed

+4
-0
lines changed
  • x-pack
    • filebeat/input/awss3
    • metricbeat/module/aws/cloudwatch/metadata/sqs

2 files changed

+4
-0
lines changed

x-pack/filebeat/input/awss3/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ func (c config) s3ConfigModifier(o *s3.Options) {
308308
func (c config) sqsConfigModifier(o *sqs.Options) {
309309
if c.AWSConfig.FIPSEnabled {
310310
o.EndpointOptions.UseFIPSEndpoint = awssdk.FIPSEndpointStateEnabled
311+
// Disable checksum validation temporarily till https://github.com/golang/go/issues/74630#issuecomment-3228203391 is implemented
312+
o.DisableMessageChecksumValidation = true
311313
}
312314
if c.AWSConfig.Endpoint != "" {
313315
//nolint:staticcheck // not changing through this PR

x-pack/metricbeat/module/aws/cloudwatch/metadata/sqs/sqs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ func AddMetadata(regionName string, awsConfig awssdk.Config, fips_enabled bool,
2222
svc := sqs.NewFromConfig(awsConfig, func(o *sqs.Options) {
2323
if fips_enabled {
2424
o.EndpointOptions.UseFIPSEndpoint = awssdk.FIPSEndpointStateEnabled
25+
// Disable checksum validation temporarily till https://github.com/golang/go/issues/74630#issuecomment-3228203391 is implemented
26+
o.DisableMessageChecksumValidation = true
2527
}
2628

2729
})

0 commit comments

Comments
 (0)