aws-sdk-s3 1.84.0 → 1.84.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +1 -1
- data/lib/aws-sdk-s3/presigner.rb +18 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 152630b0a9acb1b213eb0793432bbf020129fa5ba436128ec2cc8bf404895c99
|
4
|
+
data.tar.gz: 32352566fbee102dd684a37205b3a90ee9a6d0736ec6a106aa112540ba7d081b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 410beb9c8e6e673bda33f020f01bd6bbdb9e848d309e2ed732263b2ac09c708023591a08084bea78223aacb45f4b48980234060d6ef63778d04c261f837e862c
|
7
|
+
data.tar.gz: 9e97114d1b6044c44715744b56856678ff0509d11270fb3ebbb7a4dd9fa5af55d9e085c316af9d2bf4ca6e36be342240b9241d4352896709f8961356b88f0b5e
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -13455,7 +13455,7 @@ module Aws::S3
|
|
13455
13455
|
params: params,
|
13456
13456
|
config: config)
|
13457
13457
|
context[:gem_name] = 'aws-sdk-s3'
|
13458
|
-
context[:gem_version] = '1.84.
|
13458
|
+
context[:gem_version] = '1.84.1'
|
13459
13459
|
Seahorse::Client::Request.new(handlers, context)
|
13460
13460
|
end
|
13461
13461
|
|
data/lib/aws-sdk-s3/presigner.rb
CHANGED
@@ -196,7 +196,7 @@ module Aws
|
|
196
196
|
req.handlers.remove(Aws::S3::Plugins::S3Signer::V4Handler)
|
197
197
|
req.handlers.remove(Seahorse::Client::Plugins::ContentLength::Handler)
|
198
198
|
|
199
|
-
signer = build_signer(req.context
|
199
|
+
signer = build_signer(req.context, unsigned_headers)
|
200
200
|
|
201
201
|
req.handle(step: :send) do |context|
|
202
202
|
if scheme != http_req.endpoint.scheme
|
@@ -240,14 +240,27 @@ module Aws
|
|
240
240
|
x_amz_headers
|
241
241
|
end
|
242
242
|
|
243
|
-
def build_signer(
|
244
|
-
|
243
|
+
def build_signer(context, unsigned_headers)
|
244
|
+
signer_opts = {
|
245
245
|
service: 's3',
|
246
|
-
region:
|
247
|
-
credentials_provider:
|
246
|
+
region: context.config.region,
|
247
|
+
credentials_provider: context.config.credentials,
|
248
248
|
unsigned_headers: unsigned_headers,
|
249
249
|
uri_escape_path: false
|
250
|
+
}
|
251
|
+
|
252
|
+
resolved_region, arn = Aws::S3::Plugins::ARN.resolve_arn!(
|
253
|
+
context.params[:bucket],
|
254
|
+
context.config.sigv4_signer.region,
|
255
|
+
context.config.s3_use_arn_region
|
250
256
|
)
|
257
|
+
|
258
|
+
if arn
|
259
|
+
signer_opts[:region] = resolved_region
|
260
|
+
signer_opts[:service] = arn.service
|
261
|
+
end
|
262
|
+
|
263
|
+
Aws::Sigv4::Signer.new(signer_opts)
|
251
264
|
end
|
252
265
|
end
|
253
266
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.84.
|
4
|
+
version: 1.84.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|