aws-sdk-resources 2.11.562 → 2.11.563
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f147b7ee3673156a4bd9389dbf964bbb0414d4e95cc4388fe289309b2aecb8
|
4
|
+
data.tar.gz: f55925ceb79c946dd54dfc33be2c634e2a7b292a711c6f65735b36eb14f230a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b185e5d5dfb158a3e66e514b468875826780e04c5658500399eca90dc93582ee8e0450b61e4fbd640c0687166b18585722cc9c94883eb2055c5008194fd489c
|
7
|
+
data.tar.gz: 3267c25a6a0962acdf2ce72dc72fb411e9446100ca77ee2297adf949f30727cd457f21af1b81f236dc94be261297a8a8158dbdc95461be405069329349c4d94a
|
@@ -7,6 +7,7 @@ module Aws
|
|
7
7
|
module Encryption
|
8
8
|
# @api private
|
9
9
|
class DecryptHandler < Seahorse::Client::Handler
|
10
|
+
@@warned_response_target_proc = false
|
10
11
|
|
11
12
|
V1_ENVELOPE_KEYS = %w(
|
12
13
|
x-amz-key
|
@@ -45,6 +46,16 @@ module Aws
|
|
45
46
|
def call(context)
|
46
47
|
attach_http_event_listeners(context)
|
47
48
|
apply_cse_user_agent(context)
|
49
|
+
|
50
|
+
if context[:response_target].is_a?(Proc) && !@@warned_response_target_proc
|
51
|
+
@@warned_response_target_proc = true
|
52
|
+
warn(':response_target is a Proc, or a block was provided. ' \
|
53
|
+
'Read the entire object to the ' \
|
54
|
+
'end before you start using the decrypted data. This is to ' \
|
55
|
+
'verify that the object has not been modified since it ' \
|
56
|
+
'was encrypted.')
|
57
|
+
end
|
58
|
+
|
48
59
|
@handler.call(context)
|
49
60
|
end
|
50
61
|
|
@@ -75,11 +86,11 @@ module Aws
|
|
75
86
|
end
|
76
87
|
|
77
88
|
def decryption_cipher(context)
|
78
|
-
if envelope = get_encryption_envelope(context)
|
89
|
+
if (envelope = get_encryption_envelope(context))
|
79
90
|
cipher = context[:encryption][:cipher_provider]
|
80
91
|
.decryption_cipher(
|
81
92
|
envelope,
|
82
|
-
|
93
|
+
context[:encryption]
|
83
94
|
)
|
84
95
|
[cipher, envelope]
|
85
96
|
else
|
@@ -9,9 +9,10 @@ module Aws
|
|
9
9
|
# @param [OpenSSL::Cipher] cipher
|
10
10
|
# @param [IO#write] io An IO-like object that responds to `#write`.
|
11
11
|
def initialize(cipher, io)
|
12
|
-
@cipher = cipher
|
12
|
+
@cipher = cipher
|
13
13
|
# Ensure that IO is reset between retries
|
14
14
|
@io = io.tap { |io| io.truncate(0) if io.respond_to?(:truncate) }
|
15
|
+
@cipher_buffer = String.new
|
15
16
|
end
|
16
17
|
|
17
18
|
# @return [#write]
|
@@ -19,17 +20,17 @@ module Aws
|
|
19
20
|
|
20
21
|
def write(chunk)
|
21
22
|
# decrypt and write
|
22
|
-
@
|
23
|
+
if @cipher.method(:update).arity == 1
|
24
|
+
@io.write(@cipher.update(chunk))
|
25
|
+
else
|
26
|
+
@io.write(@cipher.update(chunk, @cipher_buffer))
|
27
|
+
end
|
23
28
|
end
|
24
29
|
|
25
30
|
def finalize
|
26
31
|
@io.write(@cipher.final)
|
27
32
|
end
|
28
33
|
|
29
|
-
def size
|
30
|
-
@io.size
|
31
|
-
end
|
32
|
-
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
@@ -71,6 +71,7 @@ module Aws
|
|
71
71
|
# ## Required Configuration
|
72
72
|
#
|
73
73
|
# You must configure all of the following:
|
74
|
+
#
|
74
75
|
# * a key or key provider - See the Keys section below. The key provided determines
|
75
76
|
# the key wrapping schema(s) supported for both encryption and decryption.
|
76
77
|
# * `key_wrap_schema` - The key wrapping schema. It must match the type of key configured.
|
@@ -234,6 +235,7 @@ module Aws
|
|
234
235
|
def_delegators :@client, :config, :delete_object, :head_object, :build_request
|
235
236
|
|
236
237
|
# Creates a new encryption client. You must configure all of the following:
|
238
|
+
#
|
237
239
|
# * a key or key provider - The key provided also determines the key wrapping
|
238
240
|
# schema(s) supported for both encryption and decryption.
|
239
241
|
# * `key_wrap_schema` - The key wrapping schema. It must match the type of key configured.
|
@@ -387,7 +389,7 @@ module Aws
|
|
387
389
|
# @option (see S3::Client#get_object)
|
388
390
|
# @return (see S3::Client#get_object)
|
389
391
|
# @see S3::Client#get_object
|
390
|
-
# @note The `:range` request parameter is not
|
392
|
+
# @note The `:range` request parameter is not supported.
|
391
393
|
def get_object(params = {}, &block)
|
392
394
|
if params[:range]
|
393
395
|
raise NotImplementedError, '#get_object with :range not supported'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.563
|
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-08-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.11.
|
19
|
+
version: 2.11.563
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.11.
|
26
|
+
version: 2.11.563
|
27
27
|
description: AWS SDK For Ruby V2 has been marked as deprecated. Please upgrade to
|
28
28
|
AWS SDK For Ruby V3.Provides resource oriented interfaces and other higher-level
|
29
29
|
abstractions for many AWS services. This gem is part of the official AWS SDK for
|