aws-sdk-core 3.241.1 → 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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +29 -17
- data/lib/aws-sdk-signin/client.rb +1 -1
- data/lib/aws-sdk-signin.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00ff34b8863f275c077125896abacdd231902a6a6749341c504b23aec8386538
|
|
4
|
+
data.tar.gz: a850b063cf92edc10d656bfbad52060f109928b38b22e5a6b57429fd4446ed9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98395234b252340f1b5699ed8647c83dfd974f4e6baf603ac38c12e0dafb4f48acb64c155e6cf57eef8d5a99d7522ce1b9cfc8e13e5a8b7675c01df6350b9183
|
|
7
|
+
data.tar.gz: 4121894cddfddbc75088516236ab2d5b98b14ca55a2a3d3d80f8a8b289540b07e5ac5d93bd30b085faa42a576193f989ddd0ec2f9bfffbbd0ce2b2c9a7bffa59
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
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
|
+
|
|
9
|
+
3.241.2 (2026-01-07)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Issue - Preserve existing Content-Encoding when applying request trailer checksum.
|
|
13
|
+
|
|
4
14
|
3.241.1 (2026-01-06)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.241.
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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(
|
|
@@ -381,7 +389,12 @@ module Aws
|
|
|
381
389
|
location_name = checksum_properties[:name]
|
|
382
390
|
|
|
383
391
|
# set required headers
|
|
384
|
-
headers['Content-Encoding'] =
|
|
392
|
+
headers['Content-Encoding'] =
|
|
393
|
+
if headers['Content-Encoding']
|
|
394
|
+
headers['Content-Encoding'] += ', aws-chunked'
|
|
395
|
+
else
|
|
396
|
+
'aws-chunked'
|
|
397
|
+
end
|
|
385
398
|
headers['X-Amz-Content-Sha256'] = 'STREAMING-UNSIGNED-PAYLOAD-TRAILER'
|
|
386
399
|
headers['X-Amz-Trailer'] = location_name
|
|
387
400
|
|
|
@@ -417,8 +430,7 @@ module Aws
|
|
|
417
430
|
end
|
|
418
431
|
|
|
419
432
|
def add_verify_response_headers_handler(context, checksum_context)
|
|
420
|
-
validation_list = CHECKSUM_ALGORITHM_PRIORITIES &
|
|
421
|
-
operation_response_algorithms(context)
|
|
433
|
+
validation_list = CHECKSUM_ALGORITHM_PRIORITIES & operation_response_algorithms(context)
|
|
422
434
|
context[:http_checksum][:validation_list] = validation_list
|
|
423
435
|
|
|
424
436
|
context.http_response.on_headers do |_status, headers|
|
data/lib/aws-sdk-signin.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
data/lib/aws-sdk-sts.rb
CHANGED