aws-sdk-core 3.241.2 → 3.241.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bb055425607f2a8b6ec90788d038eb14f05f611f705797d31acd04abaf429d0
4
- data.tar.gz: defdafdbb1fad35d409e1562e0e2f8cad977901919655ba7fc31fa6f01a0178f
3
+ metadata.gz: 00ff34b8863f275c077125896abacdd231902a6a6749341c504b23aec8386538
4
+ data.tar.gz: a850b063cf92edc10d656bfbad52060f109928b38b22e5a6b57429fd4446ed9e
5
5
  SHA512:
6
- metadata.gz: 1ef77628a938900170ccc335d06d6236ef0b01f438b1253e44c10002064f5bbff6aef8c223a828aec55cd2e85abcd4afcd5d99c54de1929e0d560ee7e2c0a4c7
7
- data.tar.gz: 2dd72d4d3542b6798202763f461c1e4d0a39ce285ce03ce409dcbb5bd4168c1c5dddf56fac29f60f9416a3989dabc8595eab4889c11a1b60d377c0d3f7fa2684
6
+ metadata.gz: 98395234b252340f1b5699ed8647c83dfd974f4e6baf603ac38c12e0dafb4f48acb64c155e6cf57eef8d5a99d7522ce1b9cfc8e13e5a8b7675c01df6350b9183
7
+ data.tar.gz: 4121894cddfddbc75088516236ab2d5b98b14ca55a2a3d3d80f8a8b289540b07e5ac5d93bd30b085faa42a576193f989ddd0ec2f9bfffbbd0ce2b2c9a7bffa59
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.241.3 (2026-01-08)
5
+ ------------------
6
+
7
+ * Issue - Disable request trailer checksums when using non-HTTPs endpoints.
8
+
4
9
  3.241.2 (2026-01-07)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.241.2
1
+ 3.241.3
@@ -275,8 +275,7 @@ module Aws
275
275
  # 1. **No existing checksum in header**: Skips if checksum header already present
276
276
  # 2. **Operation support**: Considers model, client configuration and user input.
277
277
  def should_calculate_request_checksum?(context)
278
- !checksum_provided_as_header?(context.http_request.headers) &&
279
- checksum_applicable?(context)
278
+ !checksum_provided_as_header?(context.http_request.headers) && checksum_applicable?(context)
280
279
  end
281
280
 
282
281
  # Checks if checksum calculation should proceed based on operation requirements and client settings.
@@ -317,12 +316,13 @@ module Aws
317
316
  end
318
317
 
319
318
  def checksum_request_in(context)
320
- if context.operation['unsignedPayload'] ||
321
- context.operation['authtype'] == 'v4-unsigned-body'
322
- 'trailer'
323
- else
324
- 'header'
325
- end
319
+ return 'header' unless supports_trailer_checksums?(context.operation)
320
+
321
+ should_fallback_to_header?(context) ? 'header' : 'trailer'
322
+ end
323
+
324
+ def supports_trailer_checksums?(operation)
325
+ operation['unsignedPayload'] || operation['authtype'] == 'v4-unsigned-body'
326
326
  end
327
327
 
328
328
  def calculate_request_checksum(context, checksum_properties)
@@ -331,12 +331,6 @@ module Aws
331
331
  headers[algorithm_header] = checksum_properties[:algorithm]
332
332
  end
333
333
 
334
- # Trailer implementation within Mac/JRUBY environment is facing some
335
- # network issues that will need further investigation:
336
- # * https://github.com/jruby/jruby-openssl/issues/271
337
- # * https://github.com/jruby/jruby-openssl/issues/317
338
- return apply_request_checksum(context, headers, checksum_properties) if defined?(JRUBY_VERSION)
339
-
340
334
  case checksum_properties[:in]
341
335
  when 'header'
342
336
  apply_request_checksum(context, headers, checksum_properties)
@@ -347,6 +341,20 @@ module Aws
347
341
  end
348
342
  end
349
343
 
344
+ def should_fallback_to_header?(context)
345
+ # Trailer implementation within Mac/JRUBY environment is facing some
346
+ # network issues that will need further investigation:
347
+ # * https://github.com/jruby/jruby-openssl/issues/271
348
+ # * https://github.com/jruby/jruby-openssl/issues/317
349
+ return true if defined?(JRUBY_VERSION)
350
+
351
+ # Chunked signing is currently not supported
352
+ # Https is required for unsigned payload for security
353
+ return true if context.http_request.endpoint.scheme == 'http'
354
+
355
+ context[:skip_trailer_checksums]
356
+ end
357
+
350
358
  def apply_request_checksum(context, headers, checksum_properties)
351
359
  header_name = checksum_properties[:name]
352
360
  headers[header_name] = calculate_checksum(
@@ -422,8 +430,7 @@ module Aws
422
430
  end
423
431
 
424
432
  def add_verify_response_headers_handler(context, checksum_context)
425
- validation_list = CHECKSUM_ALGORITHM_PRIORITIES &
426
- operation_response_algorithms(context)
433
+ validation_list = CHECKSUM_ALGORITHM_PRIORITIES & operation_response_algorithms(context)
427
434
  context[:http_checksum][:validation_list] = validation_list
428
435
 
429
436
  context.http_response.on_headers do |_status, headers|
@@ -579,7 +579,7 @@ module Aws::Signin
579
579
  tracer: tracer
580
580
  )
581
581
  context[:gem_name] = 'aws-sdk-core'
582
- context[:gem_version] = '3.241.2'
582
+ context[:gem_version] = '3.241.3'
583
583
  Seahorse::Client::Request.new(handlers, context)
584
584
  end
585
585
 
@@ -56,7 +56,7 @@ module Aws::Signin
56
56
  autoload :EndpointProvider, 'aws-sdk-signin/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-signin/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.2'
59
+ GEM_VERSION = '3.241.3'
60
60
 
61
61
  end
62
62
 
@@ -698,7 +698,7 @@ module Aws::SSO
698
698
  tracer: tracer
699
699
  )
700
700
  context[:gem_name] = 'aws-sdk-core'
701
- context[:gem_version] = '3.241.2'
701
+ context[:gem_version] = '3.241.3'
702
702
  Seahorse::Client::Request.new(handlers, context)
703
703
  end
704
704
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -56,7 +56,7 @@ module Aws::SSO
56
56
  autoload :EndpointProvider, 'aws-sdk-sso/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-sso/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.2'
59
+ GEM_VERSION = '3.241.3'
60
60
 
61
61
  end
62
62
 
@@ -1081,7 +1081,7 @@ module Aws::SSOOIDC
1081
1081
  tracer: tracer
1082
1082
  )
1083
1083
  context[:gem_name] = 'aws-sdk-core'
1084
- context[:gem_version] = '3.241.2'
1084
+ context[:gem_version] = '3.241.3'
1085
1085
  Seahorse::Client::Request.new(handlers, context)
1086
1086
  end
1087
1087
 
@@ -56,7 +56,7 @@ module Aws::SSOOIDC
56
56
  autoload :EndpointProvider, 'aws-sdk-ssooidc/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-ssooidc/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.2'
59
+ GEM_VERSION = '3.241.3'
60
60
 
61
61
  end
62
62
 
@@ -2725,7 +2725,7 @@ module Aws::STS
2725
2725
  tracer: tracer
2726
2726
  )
2727
2727
  context[:gem_name] = 'aws-sdk-core'
2728
- context[:gem_version] = '3.241.2'
2728
+ context[:gem_version] = '3.241.3'
2729
2729
  Seahorse::Client::Request.new(handlers, context)
2730
2730
  end
2731
2731
 
data/lib/aws-sdk-sts.rb CHANGED
@@ -56,7 +56,7 @@ module Aws::STS
56
56
  autoload :EndpointProvider, 'aws-sdk-sts/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-sts/endpoints'
58
58
 
59
- GEM_VERSION = '3.241.2'
59
+ GEM_VERSION = '3.241.3'
60
60
 
61
61
  end
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.241.2
4
+ version: 3.241.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services