aws-sdk-s3 1.205.0 → 1.208.0
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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +1 -1
- data/lib/aws-sdk-s3/bucket_acl.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +52 -182
- data/lib/aws-sdk-s3/customizations.rb +1 -0
- data/lib/aws-sdk-s3/encryption/client.rb +2 -2
- data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +2 -0
- data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +2 -0
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/client.rb +98 -23
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +7 -162
- data/lib/aws-sdk-s3/encryptionV2/decryption.rb +205 -0
- data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +17 -0
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +8 -0
- data/lib/aws-sdk-s3/encryptionV2/utils.rb +5 -0
- data/lib/aws-sdk-s3/encryptionV3/client.rb +885 -0
- data/lib/aws-sdk-s3/encryptionV3/decrypt_handler.rb +98 -0
- data/lib/aws-sdk-s3/encryptionV3/decryption.rb +244 -0
- data/lib/aws-sdk-s3/encryptionV3/default_cipher_provider.rb +159 -0
- data/lib/aws-sdk-s3/encryptionV3/default_key_provider.rb +35 -0
- data/lib/aws-sdk-s3/encryptionV3/encrypt_handler.rb +98 -0
- data/lib/aws-sdk-s3/encryptionV3/errors.rb +47 -0
- data/lib/aws-sdk-s3/encryptionV3/io_auth_decrypter.rb +60 -0
- data/lib/aws-sdk-s3/encryptionV3/io_decrypter.rb +35 -0
- data/lib/aws-sdk-s3/encryptionV3/io_encrypter.rb +84 -0
- data/lib/aws-sdk-s3/encryptionV3/key_provider.rb +28 -0
- data/lib/aws-sdk-s3/encryptionV3/kms_cipher_provider.rb +159 -0
- data/lib/aws-sdk-s3/encryptionV3/materials.rb +58 -0
- data/lib/aws-sdk-s3/encryptionV3/utils.rb +321 -0
- data/lib/aws-sdk-s3/encryption_v2.rb +1 -0
- data/lib/aws-sdk-s3/encryption_v3.rb +24 -0
- data/lib/aws-sdk-s3/object.rb +4 -4
- data/lib/aws-sdk-s3/object_acl.rb +1 -1
- data/lib/aws-sdk-s3/object_summary.rb +4 -4
- data/lib/aws-sdk-s3/types.rb +23 -102
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +1 -1
- data/sig/client.rbs +11 -11
- data/sig/multipart_upload.rbs +1 -1
- data/sig/object.rbs +5 -5
- data/sig/object_summary.rbs +5 -5
- data/sig/types.rbs +14 -14
- metadata +17 -1
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'openssl'
|
|
4
|
+
|
|
5
|
+
module Aws
|
|
6
|
+
module S3
|
|
7
|
+
module EncryptionV3
|
|
8
|
+
# @api private
|
|
9
|
+
module Utils
|
|
10
|
+
class << self
|
|
11
|
+
##= ../specification/s3-encryption/client.md#encryption-algorithm
|
|
12
|
+
##% The S3EC MUST validate that the configured encryption algorithm is not legacy.
|
|
13
|
+
def validate_cek(content_encryption_schema)
|
|
14
|
+
##= ../specification/s3-encryption/data-format/content-metadata.md#algorithm-suite-and-message-format-version-compatibility
|
|
15
|
+
##% Objects encrypted with ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY MUST use the V3 message format version only.
|
|
16
|
+
return '115' if content_encryption_schema.nil?
|
|
17
|
+
|
|
18
|
+
case content_encryption_schema
|
|
19
|
+
when :alg_aes_256_gcm_hkdf_sha512_commit_key
|
|
20
|
+
'115'
|
|
21
|
+
else
|
|
22
|
+
##= ../specification/s3-encryption/encryption.md#alg-aes-256-ctr-iv16-tag16-no-kdf
|
|
23
|
+
##% Attempts to encrypt using AES-CTR MUST fail.
|
|
24
|
+
##= ../specification/s3-encryption/encryption.md#alg-aes-256-ctr-hkdf-sha512-commit-key
|
|
25
|
+
##% Attempts to encrypt using key committing AES-CTR MUST fail.
|
|
26
|
+
##= ../specification/s3-encryption/client.md#encryption-algorithm
|
|
27
|
+
##% If the configured encryption algorithm is legacy, then the S3EC MUST throw an exception.
|
|
28
|
+
##= ../specification/s3-encryption/client.md#key-commitment
|
|
29
|
+
##% If the configured Encryption Algorithm is incompatible with the key commitment policy, then it MUST throw an exception.
|
|
30
|
+
raise ArgumentError, "Unsupported content_encryption_schema: #{content_encryption_schema}"
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def encrypt_aes_gcm(key, data, auth_data)
|
|
35
|
+
cipher = aes_encryption_cipher(:GCM, key)
|
|
36
|
+
cipher.iv = (iv = cipher.random_iv)
|
|
37
|
+
cipher.auth_data = auth_data
|
|
38
|
+
|
|
39
|
+
iv + cipher.update(data) + cipher.final + cipher.auth_tag
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def encrypt_rsa(key, data, auth_data)
|
|
43
|
+
# Plaintext must be KeyLengthInBytes (1 Byte) + DataKey + AuthData
|
|
44
|
+
buf = [data.bytesize] + data.unpack('C*') + auth_data.unpack('C*')
|
|
45
|
+
key.public_encrypt(buf.pack('C*'), OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def decrypt_aes_gcm(key, data, auth_data)
|
|
49
|
+
# data is iv (12B) + key + tag (16B)
|
|
50
|
+
buf = data.unpack('C*')
|
|
51
|
+
iv = buf[0, 12].pack('C*') # iv will always be 12 bytes
|
|
52
|
+
tag = buf[-16, 16].pack('C*') # tag is 16 bytes
|
|
53
|
+
enc_key = buf[12, buf.size - (12 + 16)].pack('C*')
|
|
54
|
+
cipher = aes_cipher(:decrypt, :GCM, key, iv)
|
|
55
|
+
cipher.auth_tag = tag
|
|
56
|
+
cipher.auth_data = auth_data
|
|
57
|
+
cipher.update(enc_key) + cipher.final
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# returns the decrypted data + auth_data
|
|
61
|
+
def decrypt_rsa(key, enc_data)
|
|
62
|
+
# Plaintext must be KeyLengthInBytes (1 Byte) + DataKey + AuthData
|
|
63
|
+
buf = key.private_decrypt(enc_data, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING).unpack('C*')
|
|
64
|
+
key_length = buf[0]
|
|
65
|
+
data = buf[1, key_length].pack('C*')
|
|
66
|
+
auth_data = buf[key_length + 1, buf.length - key_length].pack('C*')
|
|
67
|
+
[data, auth_data]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# @param [String] block_mode "CBC" or "ECB"
|
|
71
|
+
# @param [OpenSSL::PKey::RSA, String, nil] key
|
|
72
|
+
# @param [String, nil] iv The initialization vector
|
|
73
|
+
def aes_encryption_cipher(block_mode, key = nil, iv = nil)
|
|
74
|
+
aes_cipher(:encrypt, block_mode, key, iv)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# @param [String] block_mode "CBC" or "ECB"
|
|
78
|
+
# @param [OpenSSL::PKey::RSA, String, nil] key
|
|
79
|
+
# @param [String, nil] iv The initialization vector
|
|
80
|
+
def aes_decryption_cipher(block_mode, key = nil, iv = nil)
|
|
81
|
+
aes_cipher(:decrypt, block_mode, key, iv)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# @param [String] mode "encrypt" or "decrypt"
|
|
85
|
+
# @param [String] block_mode "CBC" or "ECB"
|
|
86
|
+
# @param [OpenSSL::PKey::RSA, String, nil] key
|
|
87
|
+
# @param [String, nil] iv The initialization vector
|
|
88
|
+
def aes_cipher(mode, block_mode, key, iv)
|
|
89
|
+
cipher =
|
|
90
|
+
if key
|
|
91
|
+
OpenSSL::Cipher.new("aes-#{cipher_size(key)}-#{block_mode.downcase}")
|
|
92
|
+
else
|
|
93
|
+
OpenSSL::Cipher.new("aes-256-#{block_mode.downcase}")
|
|
94
|
+
end
|
|
95
|
+
cipher.send(mode) # encrypt or decrypt
|
|
96
|
+
cipher.key = key if key
|
|
97
|
+
cipher.iv = iv if iv
|
|
98
|
+
cipher
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @param [String] key
|
|
102
|
+
# @return [Integer]
|
|
103
|
+
# @raise ArgumentError
|
|
104
|
+
def cipher_size(key)
|
|
105
|
+
key.bytesize * 8
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# There is only 1 supported algorithm suite at this time
|
|
109
|
+
ENCRYPTION_KEY_INFO = ([0x00, 0x73].pack('C*') + 'DERIVEKEY'.encode('UTF-8')).freeze
|
|
110
|
+
COMMITMENT_KEY_INFO = ([0x00, 0x73].pack('C*') + 'COMMITKEY'.encode('UTF-8')).freeze
|
|
111
|
+
|
|
112
|
+
SHA512_DIGEST = OpenSSL::Digest::SHA512.new.freeze
|
|
113
|
+
V3_IV_BYTES = ("\x01" * 12).freeze
|
|
114
|
+
ALGO_ID = [0x00, 0x73].pack('C*').freeze
|
|
115
|
+
|
|
116
|
+
def generate_alg_aes_256_gcm_hkdf_sha512_commit_key_cipher(data_key)
|
|
117
|
+
##= ../specification/s3-encryption/encryption.md#content-encryption
|
|
118
|
+
##% The client MUST generate an IV or Message ID using the length of the IV or Message ID defined in the algorithm suite.
|
|
119
|
+
message_id = Utils.generate_message_id
|
|
120
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
121
|
+
##% - The salt MUST be the Message ID with the length defined in the algorithm suite.
|
|
122
|
+
commitment_key = Utils.derive_commitment_key(data_key, message_id)
|
|
123
|
+
cipher = alg_aes_256_gcm_hkdf_sha512_commit_key_cipher(:encrypt, data_key, message_id)
|
|
124
|
+
|
|
125
|
+
[
|
|
126
|
+
cipher,
|
|
127
|
+
##= ../specification/s3-encryption/encryption.md#content-encryption
|
|
128
|
+
##% The generated IV or Message ID MUST be set or returned from the encryption process such that it can be included in the content metadata.
|
|
129
|
+
message_id,
|
|
130
|
+
##= ../specification/s3-encryption/encryption.md#alg-aes-256-gcm-hkdf-sha512-commit-key
|
|
131
|
+
##% The derived key commitment value MUST be set or returned from the encryption process such that it can be included in the content metadata.
|
|
132
|
+
commitment_key
|
|
133
|
+
]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def derive_alg_aes_256_gcm_hkdf_sha512_commit_key_cipher(data_key, message_id, stored_commitment_key)
|
|
137
|
+
raise Errors::DecryptionError, 'Data key length does not match algorithm suite' unless data_key.length == 32
|
|
138
|
+
|
|
139
|
+
raise Errors::DecryptionError, 'Message id length does not match algorithm suite' unless message_id.length == 28
|
|
140
|
+
|
|
141
|
+
unless stored_commitment_key.length == 28
|
|
142
|
+
raise Errors::DecryptionError, 'Commitment key length does not match algorithm suite'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
##= ../specification/s3-encryption/decryption.md#decrypting-with-commitment
|
|
146
|
+
##= type=implication
|
|
147
|
+
##% When using an algorithm suite which supports key commitment,
|
|
148
|
+
##% the verification of the derived key commitment value MUST be done in constant time.
|
|
149
|
+
unless timing_safe_equal?(
|
|
150
|
+
##= ../specification/s3-encryption/decryption.md#decrypting-with-commitment
|
|
151
|
+
##% When using an algorithm suite which supports key commitment,
|
|
152
|
+
##% the client MUST verify that the [derived key commitment](./key-derivation.md#hkdf-operation) contains the same bytes
|
|
153
|
+
##% as the stored key commitment retrieved from the stored object's metadata.
|
|
154
|
+
Utils.derive_commitment_key(data_key, message_id),
|
|
155
|
+
stored_commitment_key
|
|
156
|
+
)
|
|
157
|
+
##= ../specification/s3-encryption/decryption.md#decrypting-with-commitment
|
|
158
|
+
##% When using an algorithm suite which supports key commitment,
|
|
159
|
+
##% the client MUST throw an exception when the derived key commitment value and stored key commitment value do not match.
|
|
160
|
+
raise Errors::DecryptionError, 'Commitment key verification failed'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
##= ../specification/s3-encryption/decryption.md#decrypting-with-commitment
|
|
164
|
+
##% When using an algorithm suite which supports key commitment,
|
|
165
|
+
##% the client MUST verify the key commitment values match before deriving the [derived encryption key](./key-derivation.md#hkdf-operation).
|
|
166
|
+
|
|
167
|
+
alg_aes_256_gcm_hkdf_sha512_commit_key_cipher(:decrypt, data_key, message_id)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def alg_aes_256_gcm_hkdf_sha512_commit_key_cipher(mode, data_key, message_id)
|
|
171
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
172
|
+
##% The client MUST initialize the cipher, or call an AES-GCM encryption API, with the derived encryption key, an IV containing only bytes with the value 0x01,
|
|
173
|
+
##% and the tag length defined in the Algorithm Suite when encrypting or decrypting with ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY.
|
|
174
|
+
cipher = Utils.aes_cipher(
|
|
175
|
+
mode,
|
|
176
|
+
:GCM,
|
|
177
|
+
##= ../specification/s3-encryption/encryption.md#alg-aes-256-gcm-hkdf-sha512-commit-key
|
|
178
|
+
##% The client MUST use HKDF to derive the key commitment value and the derived encrypting key as described in [Key Derivation](key-derivation.md).
|
|
179
|
+
Utils.derive_encryption_key(data_key, message_id),
|
|
180
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
181
|
+
##% When encrypting or decrypting with ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY,
|
|
182
|
+
##% the IV used in the AES-GCM content encryption/decryption MUST consist entirely of bytes with the value 0x01.
|
|
183
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
184
|
+
##% The IV's total length MUST match the IV length defined by the algorithm suite.
|
|
185
|
+
V3_IV_BYTES
|
|
186
|
+
) #OpenSSL::Cipher.new("aes-256-gcm")
|
|
187
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
188
|
+
##% The client MUST set the AAD to the Algorithm Suite ID represented as bytes.
|
|
189
|
+
cipher.auth_data = ALGO_ID # auth_data must be set after key and iv
|
|
190
|
+
cipher
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def generate_data_key
|
|
194
|
+
OpenSSL::Random.random_bytes(32)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def generate_message_id
|
|
198
|
+
##= ../specification/s3-encryption/encryption.md#cipher-initialization
|
|
199
|
+
##= type=exception
|
|
200
|
+
##= reason=This would be a new runtime error that happens randomly.
|
|
201
|
+
##% The client SHOULD validate that the generated IV or Message ID is not zeros.
|
|
202
|
+
|
|
203
|
+
##= ../specification/s3-encryption/encryption.md#content-encryption
|
|
204
|
+
##% The client MUST generate an IV or Message ID using the length of the IV or Message ID defined in the algorithm suite.
|
|
205
|
+
OpenSSL::Random.random_bytes(28)
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def derive_encryption_key(data_key, message_id)
|
|
209
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
210
|
+
##% - The DEK input pseudorandom key MUST be the output from the extract step.
|
|
211
|
+
hkdf(
|
|
212
|
+
data_key,
|
|
213
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
214
|
+
##% - The salt MUST be the Message ID with the length defined in the algorithm suite.
|
|
215
|
+
message_id,
|
|
216
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
217
|
+
##% - The input info MUST be a concatenation of the algorithm suite ID as bytes followed by the string DERIVEKEY as UTF8 encoded bytes.
|
|
218
|
+
ENCRYPTION_KEY_INFO,
|
|
219
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
220
|
+
##% - The length of the output keying material MUST equal the encryption key length specified by the algorithm suite encryption settings.
|
|
221
|
+
32
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
def derive_commitment_key(data_key, message_id)
|
|
226
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
227
|
+
##% - The CK input pseudorandom key MUST be the output from the extract step.
|
|
228
|
+
hkdf(
|
|
229
|
+
data_key,
|
|
230
|
+
message_id,
|
|
231
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
232
|
+
##% - The input info MUST be a concatenation of the algorithm suite ID as bytes followed by the string COMMITKEY as UTF8 encoded bytes.
|
|
233
|
+
COMMITMENT_KEY_INFO,
|
|
234
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
235
|
+
##% - The length of the output keying material MUST equal the commit key length specified by the supported algorithm suites.
|
|
236
|
+
28
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
ONE_BYTE = [1].pack('C').freeze
|
|
241
|
+
# assert: the following function is equivalent to `OpenSSL::KDF.hkdf` for all desired_length <= 64
|
|
242
|
+
# see spec: 'produces identical output to native hkdf for random inputs (property-based test)'
|
|
243
|
+
def hkdf_fallback(input_key_material, salt, info, desired_length)
|
|
244
|
+
# Extract from RFC 5869
|
|
245
|
+
# PRK = HMAC-Hash(salt, IKM)
|
|
246
|
+
prk = OpenSSL::HMAC.digest(SHA512_DIGEST, salt, input_key_material)
|
|
247
|
+
|
|
248
|
+
# Expand from RFC 5869
|
|
249
|
+
# N = ceil(L/HashLen)
|
|
250
|
+
# T = T(1) | T(2) | T(3) | ... | T(N)
|
|
251
|
+
# OKM = first L octets of T
|
|
252
|
+
#
|
|
253
|
+
# where:
|
|
254
|
+
# T(0) = empty string (zero length)
|
|
255
|
+
# T(1) = HMAC-Hash(PRK, T(0) | info | 0x01)
|
|
256
|
+
# T(2) = HMAC-Hash(PRK, T(1) | info | 0x02)
|
|
257
|
+
# T(3) = HMAC-Hash(PRK, T(2) | info | 0x03)
|
|
258
|
+
#
|
|
259
|
+
# L == desired_length
|
|
260
|
+
# HashLen == 64 (because SHA512_DIGEST is fixed)
|
|
261
|
+
# N = ceil(desired_length/64)
|
|
262
|
+
# The only supported suites have desired_length less than 64
|
|
263
|
+
# This will result in a single iteration of the expand loop.
|
|
264
|
+
# This check verifies that it is safe to do not do a loop
|
|
265
|
+
raise Errors::DecryptionError, "Unsupported length: #{desired_length}" if desired_length > 64
|
|
266
|
+
|
|
267
|
+
# assert N == 1
|
|
268
|
+
#
|
|
269
|
+
# For a single iteration of the loop we then get:
|
|
270
|
+
# OKM = first L of T(0) | T(1)
|
|
271
|
+
# ==
|
|
272
|
+
# (T(0) + T(1))[0, desired_length]
|
|
273
|
+
# == {assert T(0) == ''}
|
|
274
|
+
# ('' + HMAC-Hash(PRK, '' + info + 0x01))[0, desired_length]
|
|
275
|
+
# == HMAC-Hash(PRK, info + 0x01)[0, desired_length]
|
|
276
|
+
# == {assert ONE_BYTE == 0x01}
|
|
277
|
+
# HMAC-Hash(PRK, info + ONE_BYTE)[0, desired_length]
|
|
278
|
+
# ==
|
|
279
|
+
OpenSSL::HMAC.digest(SHA512_DIGEST, prk, info + ONE_BYTE)[0, desired_length]
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if defined?(OpenSSL::KDF) && OpenSSL::KDF.respond_to?(:hkdf)
|
|
283
|
+
def hkdf(input_key_material, salt, info, desired_length)
|
|
284
|
+
OpenSSL::KDF.hkdf(
|
|
285
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
286
|
+
##% - The input keying material MUST be the plaintext data key (PDK) generated by the key provider.
|
|
287
|
+
input_key_material,
|
|
288
|
+
salt: salt,
|
|
289
|
+
info: info,
|
|
290
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
291
|
+
##% - The length of the input keying material MUST equal the key derivation input length specified by the algorithm suite commit key derivation setting.
|
|
292
|
+
length: desired_length,
|
|
293
|
+
##= ../specification/s3-encryption/key-derivation.md#hkdf-operation
|
|
294
|
+
##% - The hash function MUST be specified by the algorithm suite commitment settings.
|
|
295
|
+
hash: SHA512_DIGEST
|
|
296
|
+
)
|
|
297
|
+
end
|
|
298
|
+
else
|
|
299
|
+
# This is done so that we can test hkdf_fallback when we have `OpenSSL::KDF.hkdf`
|
|
300
|
+
alias hkdf hkdf_fallback
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if defined?(OpenSSL) && OpenSSL.respond_to?(:secure_compare)
|
|
304
|
+
def timing_safe_equal?(a, b)
|
|
305
|
+
OpenSSL.secure_compare(a, b)
|
|
306
|
+
end
|
|
307
|
+
else
|
|
308
|
+
def timing_safe_equal?(a, b)
|
|
309
|
+
return false unless a.bytesize == b.bytesize
|
|
310
|
+
|
|
311
|
+
l = a.unpack('C*')
|
|
312
|
+
r = 0
|
|
313
|
+
b.each_byte { |byte| r |= byte ^ l.shift }
|
|
314
|
+
r.zero?
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
require 'aws-sdk-s3/encryptionV3/client'
|
|
2
|
+
require 'aws-sdk-s3/encryptionV3/decryption'
|
|
3
|
+
require 'aws-sdk-s3/encryptionV3/decrypt_handler'
|
|
4
|
+
require 'aws-sdk-s3/encryptionV3/default_cipher_provider'
|
|
5
|
+
require 'aws-sdk-s3/encryptionV3/encrypt_handler'
|
|
6
|
+
require 'aws-sdk-s3/encryptionV3/errors'
|
|
7
|
+
require 'aws-sdk-s3/encryptionV3/io_encrypter'
|
|
8
|
+
require 'aws-sdk-s3/encryptionV3/io_decrypter'
|
|
9
|
+
require 'aws-sdk-s3/encryptionV3/io_auth_decrypter'
|
|
10
|
+
require 'aws-sdk-s3/encryptionV3/key_provider'
|
|
11
|
+
require 'aws-sdk-s3/encryptionV3/kms_cipher_provider'
|
|
12
|
+
require 'aws-sdk-s3/encryptionV3/materials'
|
|
13
|
+
require 'aws-sdk-s3/encryptionV3/utils'
|
|
14
|
+
require 'aws-sdk-s3/encryptionV3/default_key_provider'
|
|
15
|
+
|
|
16
|
+
module Aws
|
|
17
|
+
module S3
|
|
18
|
+
module EncryptionV3
|
|
19
|
+
AES_GCM_TAG_LEN_BYTES = 16
|
|
20
|
+
EC_USER_AGENT = 'S3CryptoV3'
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
data/lib/aws-sdk-s3/object.rb
CHANGED
|
@@ -765,7 +765,7 @@ module Aws::S3
|
|
|
765
765
|
# metadata_directive: "COPY", # accepts COPY, REPLACE
|
|
766
766
|
# tagging_directive: "COPY", # accepts COPY, REPLACE
|
|
767
767
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
768
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
768
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
769
769
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
770
770
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
771
771
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -1889,7 +1889,7 @@ module Aws::S3
|
|
|
1889
1889
|
# "MetadataKey" => "MetadataValue",
|
|
1890
1890
|
# },
|
|
1891
1891
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
1892
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
1892
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
1893
1893
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
1894
1894
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
1895
1895
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -2490,7 +2490,7 @@ module Aws::S3
|
|
|
2490
2490
|
# "MetadataKey" => "MetadataValue",
|
|
2491
2491
|
# },
|
|
2492
2492
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
2493
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
2493
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
2494
2494
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
2495
2495
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
2496
2496
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -3165,7 +3165,7 @@ module Aws::S3
|
|
|
3165
3165
|
# value: "MetadataValue",
|
|
3166
3166
|
# },
|
|
3167
3167
|
# ],
|
|
3168
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
3168
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
3169
3169
|
# },
|
|
3170
3170
|
# },
|
|
3171
3171
|
# },
|
|
@@ -362,7 +362,7 @@ module Aws::S3
|
|
|
362
362
|
# metadata_directive: "COPY", # accepts COPY, REPLACE
|
|
363
363
|
# tagging_directive: "COPY", # accepts COPY, REPLACE
|
|
364
364
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
365
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
365
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
366
366
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
367
367
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
368
368
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -1486,7 +1486,7 @@ module Aws::S3
|
|
|
1486
1486
|
# "MetadataKey" => "MetadataValue",
|
|
1487
1487
|
# },
|
|
1488
1488
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
1489
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
1489
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
1490
1490
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
1491
1491
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
1492
1492
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -2087,7 +2087,7 @@ module Aws::S3
|
|
|
2087
2087
|
# "MetadataKey" => "MetadataValue",
|
|
2088
2088
|
# },
|
|
2089
2089
|
# server_side_encryption: "AES256", # accepts AES256, aws:fsx, aws:kms, aws:kms:dsse
|
|
2090
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
2090
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
2091
2091
|
# website_redirect_location: "WebsiteRedirectLocation",
|
|
2092
2092
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
|
2093
2093
|
# sse_customer_key: "SSECustomerKey",
|
|
@@ -2762,7 +2762,7 @@ module Aws::S3
|
|
|
2762
2762
|
# value: "MetadataValue",
|
|
2763
2763
|
# },
|
|
2764
2764
|
# ],
|
|
2765
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS
|
|
2765
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW, EXPRESS_ONEZONE, FSX_OPENZFS, FSX_ONTAP
|
|
2766
2766
|
# },
|
|
2767
2767
|
# },
|
|
2768
2768
|
# },
|
data/lib/aws-sdk-s3/types.rb
CHANGED
|
@@ -385,7 +385,7 @@ module Aws::S3
|
|
|
385
385
|
# and replication requests to the bucket for objects with the specified
|
|
386
386
|
# encryption type. However, you can continue to read and list any
|
|
387
387
|
# pre-existing objects already encrypted with the specified encryption
|
|
388
|
-
# type. For more information, see [Blocking
|
|
388
|
+
# type. For more information, see [Blocking or unblocking SSE-C for a
|
|
389
389
|
# general purpose bucket][1].
|
|
390
390
|
#
|
|
391
391
|
# This data type is used with the following actions:
|
|
@@ -406,7 +406,7 @@ module Aws::S3
|
|
|
406
406
|
#
|
|
407
407
|
#
|
|
408
408
|
#
|
|
409
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/userguide/
|
|
409
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html
|
|
410
410
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html
|
|
411
411
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html
|
|
412
412
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html
|
|
@@ -2820,17 +2820,18 @@ module Aws::S3
|
|
|
2820
2820
|
# creating. Tags are key-value pairs of metadata used to categorize
|
|
2821
2821
|
# and organize your buckets, track costs, and control access.
|
|
2822
2822
|
#
|
|
2823
|
-
#
|
|
2824
|
-
#
|
|
2825
|
-
#
|
|
2826
|
-
# You must have the `s3express:TagResource` permission to create a
|
|
2827
|
-
# directory bucket with tags.
|
|
2823
|
+
# You must have the `s3:TagResource` permission to create a general
|
|
2824
|
+
# purpose bucket with tags or the `s3express:TagResource` permission
|
|
2825
|
+
# to create a directory bucket with tags.
|
|
2828
2826
|
#
|
|
2829
|
-
#
|
|
2827
|
+
# When creating buckets with tags, note that tag-based conditions
|
|
2828
|
+
# using `aws:ResourceTag` and `s3:BucketTag` condition keys are
|
|
2829
|
+
# applicable only after ABAC is enabled on the bucket. To learn more,
|
|
2830
|
+
# see [Enabling ABAC in general purpose buckets][1].
|
|
2830
2831
|
#
|
|
2831
2832
|
#
|
|
2832
2833
|
#
|
|
2833
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
|
2834
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html
|
|
2834
2835
|
# @return [Array<Types::Tag>]
|
|
2835
2836
|
#
|
|
2836
2837
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketConfiguration AWS API Documentation
|
|
@@ -6544,7 +6545,7 @@ module Aws::S3
|
|
|
6544
6545
|
end
|
|
6545
6546
|
|
|
6546
6547
|
# @!attribute [rw] owner
|
|
6547
|
-
# Container for the bucket owner's
|
|
6548
|
+
# Container for the bucket owner's ID.
|
|
6548
6549
|
# @return [Types::Owner]
|
|
6549
6550
|
#
|
|
6550
6551
|
# @!attribute [rw] grants
|
|
@@ -7519,7 +7520,7 @@ module Aws::S3
|
|
|
7519
7520
|
end
|
|
7520
7521
|
|
|
7521
7522
|
# @!attribute [rw] owner
|
|
7522
|
-
# Container for the bucket owner's
|
|
7523
|
+
# Container for the bucket owner's ID.
|
|
7523
7524
|
# @return [Types::Owner]
|
|
7524
7525
|
#
|
|
7525
7526
|
# @!attribute [rw] grants
|
|
@@ -9115,56 +9116,12 @@ module Aws::S3
|
|
|
9115
9116
|
include Aws::Structure
|
|
9116
9117
|
end
|
|
9117
9118
|
|
|
9118
|
-
# End of support notice: Beginning November 21, 2025, Amazon S3 will
|
|
9119
|
-
# stop returning `DisplayName`. Update your applications to use
|
|
9120
|
-
# canonical IDs (unique identifier for Amazon Web Services accounts),
|
|
9121
|
-
# Amazon Web Services account ID (12 digit identifier) or IAM ARNs (full
|
|
9122
|
-
# resource naming) as a direct replacement of `DisplayName`.
|
|
9123
|
-
#
|
|
9124
|
-
# This change affects the following Amazon Web Services Regions: US
|
|
9125
|
-
# East
|
|
9126
|
-
# (N. Virginia) Region, US West (N. California) Region, US West (Oregon)
|
|
9127
|
-
# Region, Asia Pacific (Singapore) Region, Asia Pacific (Sydney) Region,
|
|
9128
|
-
# Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South
|
|
9129
|
-
# America (São Paulo) Region.
|
|
9130
|
-
#
|
|
9131
9119
|
# Container for the person being granted permissions.
|
|
9132
9120
|
#
|
|
9133
9121
|
# @!attribute [rw] display_name
|
|
9134
|
-
# Screen name of the grantee.
|
|
9135
9122
|
# @return [String]
|
|
9136
9123
|
#
|
|
9137
9124
|
# @!attribute [rw] email_address
|
|
9138
|
-
# Email address of the grantee.
|
|
9139
|
-
#
|
|
9140
|
-
# <note markdown="1"> Using email addresses to specify a grantee is only supported in the
|
|
9141
|
-
# following Amazon Web Services Regions:
|
|
9142
|
-
#
|
|
9143
|
-
# * US East (N. Virginia)
|
|
9144
|
-
#
|
|
9145
|
-
# * US West (N. California)
|
|
9146
|
-
#
|
|
9147
|
-
# * US West (Oregon)
|
|
9148
|
-
#
|
|
9149
|
-
# * Asia Pacific (Singapore)
|
|
9150
|
-
#
|
|
9151
|
-
# * Asia Pacific (Sydney)
|
|
9152
|
-
#
|
|
9153
|
-
# * Asia Pacific (Tokyo)
|
|
9154
|
-
#
|
|
9155
|
-
# * Europe (Ireland)
|
|
9156
|
-
#
|
|
9157
|
-
# * South America (São Paulo)
|
|
9158
|
-
#
|
|
9159
|
-
# For a list of all the Amazon S3 supported Regions and endpoints, see
|
|
9160
|
-
# [Regions and Endpoints][1] in the Amazon Web Services General
|
|
9161
|
-
# Reference.
|
|
9162
|
-
#
|
|
9163
|
-
# </note>
|
|
9164
|
-
#
|
|
9165
|
-
#
|
|
9166
|
-
#
|
|
9167
|
-
# [1]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
|
9168
9125
|
# @return [String]
|
|
9169
9126
|
#
|
|
9170
9127
|
# @!attribute [rw] id
|
|
@@ -10137,8 +10094,6 @@ module Aws::S3
|
|
|
10137
10094
|
# @return [String]
|
|
10138
10095
|
#
|
|
10139
10096
|
# @!attribute [rw] display_name
|
|
10140
|
-
# Name of the Principal.
|
|
10141
|
-
#
|
|
10142
10097
|
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
10143
10098
|
#
|
|
10144
10099
|
# </note>
|
|
@@ -12660,14 +12615,13 @@ module Aws::S3
|
|
|
12660
12615
|
# Container element that identifies who initiated the multipart
|
|
12661
12616
|
# upload. If the initiator is an Amazon Web Services account, this
|
|
12662
12617
|
# element provides the same information as the `Owner` element. If the
|
|
12663
|
-
# initiator is an IAM User, this element provides the user ARN
|
|
12664
|
-
# display name.
|
|
12618
|
+
# initiator is an IAM User, this element provides the user ARN.
|
|
12665
12619
|
# @return [Types::Initiator]
|
|
12666
12620
|
#
|
|
12667
12621
|
# @!attribute [rw] owner
|
|
12668
12622
|
# Container element that identifies the object owner, after the object
|
|
12669
12623
|
# is created. If multipart upload is initiated by an IAM user, this
|
|
12670
|
-
# element provides the parent account ID
|
|
12624
|
+
# element provides the parent account ID.
|
|
12671
12625
|
#
|
|
12672
12626
|
# <note markdown="1"> **Directory buckets** - The bucket owner is returned as the object
|
|
12673
12627
|
# owner for all the parts.
|
|
@@ -13983,44 +13937,9 @@ module Aws::S3
|
|
|
13983
13937
|
include Aws::Structure
|
|
13984
13938
|
end
|
|
13985
13939
|
|
|
13986
|
-
# End of support notice: Beginning November 21, 2025, Amazon S3 will
|
|
13987
|
-
# stop returning `DisplayName`. Update your applications to use
|
|
13988
|
-
# canonical IDs (unique identifier for Amazon Web Services accounts),
|
|
13989
|
-
# Amazon Web Services account ID (12 digit identifier) or IAM ARNs (full
|
|
13990
|
-
# resource naming) as a direct replacement of `DisplayName`.
|
|
13991
|
-
#
|
|
13992
|
-
# This change affects the following Amazon Web Services Regions: US
|
|
13993
|
-
# East
|
|
13994
|
-
# (N. Virginia) Region, US West (N. California) Region, US West (Oregon)
|
|
13995
|
-
# Region, Asia Pacific (Singapore) Region, Asia Pacific (Sydney) Region,
|
|
13996
|
-
# Asia Pacific (Tokyo) Region, Europe (Ireland) Region, and South
|
|
13997
|
-
# America (São Paulo) Region.
|
|
13998
|
-
#
|
|
13999
13940
|
# Container for the owner's display name and ID.
|
|
14000
13941
|
#
|
|
14001
13942
|
# @!attribute [rw] display_name
|
|
14002
|
-
# Container for the display name of the owner. This value is only
|
|
14003
|
-
# supported in the following Amazon Web Services Regions:
|
|
14004
|
-
#
|
|
14005
|
-
# * US East (N. Virginia)
|
|
14006
|
-
#
|
|
14007
|
-
# * US West (N. California)
|
|
14008
|
-
#
|
|
14009
|
-
# * US West (Oregon)
|
|
14010
|
-
#
|
|
14011
|
-
# * Asia Pacific (Singapore)
|
|
14012
|
-
#
|
|
14013
|
-
# * Asia Pacific (Sydney)
|
|
14014
|
-
#
|
|
14015
|
-
# * Asia Pacific (Tokyo)
|
|
14016
|
-
#
|
|
14017
|
-
# * Europe (Ireland)
|
|
14018
|
-
#
|
|
14019
|
-
# * South America (São Paulo)
|
|
14020
|
-
#
|
|
14021
|
-
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
14022
|
-
#
|
|
14023
|
-
# </note>
|
|
14024
13943
|
# @return [String]
|
|
14025
13944
|
#
|
|
14026
13945
|
# @!attribute [rw] id
|
|
@@ -14283,9 +14202,11 @@ module Aws::S3
|
|
|
14283
14202
|
|
|
14284
14203
|
# The PublicAccessBlock configuration that you want to apply to this
|
|
14285
14204
|
# Amazon S3 bucket. You can enable the configuration options in any
|
|
14286
|
-
# combination.
|
|
14287
|
-
#
|
|
14288
|
-
#
|
|
14205
|
+
# combination. Bucket-level settings work alongside account-level
|
|
14206
|
+
# settings (which may inherit from organization-level policies). For
|
|
14207
|
+
# more information about when Amazon S3 considers a bucket or object
|
|
14208
|
+
# public, see [The Meaning of "Public"][1] in the *Amazon S3 User
|
|
14209
|
+
# Guide*.
|
|
14289
14210
|
#
|
|
14290
14211
|
#
|
|
14291
14212
|
#
|
|
@@ -18915,11 +18836,11 @@ module Aws::S3
|
|
|
18915
18836
|
# upload, and replication requests to the bucket for objects with the
|
|
18916
18837
|
# specified encryption type. However, you can continue to read and
|
|
18917
18838
|
# list any pre-existing objects already encrypted with the specified
|
|
18918
|
-
# encryption type. For more information, see [Blocking
|
|
18919
|
-
#
|
|
18839
|
+
# encryption type. For more information, see [Blocking or unblocking
|
|
18840
|
+
# SSE-C for a general purpose bucket][1].
|
|
18920
18841
|
#
|
|
18921
18842
|
# <note markdown="1"> Currently, this parameter only supports blocking or unblocking
|
|
18922
|
-
#
|
|
18843
|
+
# server-side encryption with customer-provided keys (SSE-C). For more
|
|
18923
18844
|
# information about SSE-C, see [Using server-side encryption with
|
|
18924
18845
|
# customer-provided keys (SSE-C)][2].
|
|
18925
18846
|
#
|
|
@@ -18927,7 +18848,7 @@ module Aws::S3
|
|
|
18927
18848
|
#
|
|
18928
18849
|
#
|
|
18929
18850
|
#
|
|
18930
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/userguide/
|
|
18851
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html
|
|
18931
18852
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html
|
|
18932
18853
|
# @return [Types::BlockedEncryptionTypes]
|
|
18933
18854
|
#
|