fluent-plugin-s3 0.6.7 → 0.6.8

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
  SHA1:
3
- metadata.gz: cc5bd6dc0616525d3beb069168b7f59bc985b188
4
- data.tar.gz: 5021dbf9b12861ee087ad2b5a1800d9430e79874
3
+ metadata.gz: 8b5cf42881912f6452810b283b3bd9be7a94160f
4
+ data.tar.gz: a7f3fb4b37a91b18b72d8f7bdef7a80c783ba64b
5
5
  SHA512:
6
- metadata.gz: f0c104943d41ecaacefcf35565d3bf3de8ff8c0301d3edb02994f8425cfcc81f43833c1eed478dfc8fd2965017068da32d43a590644e82bbd1cd98277f3888bd
7
- data.tar.gz: 4580b5c87c33db7fc7ba65c250c3c2e1330c10be6e75bde2144175df41276cfe929031379df785dba68b5d8196890e6ba51b8fbd5081e8e769ea96b24718c6ae
6
+ metadata.gz: 21e938107f0fa66ddedf3634013c9e0472ac2a5855f26dfecd3bd01bebce120957e7e656693a4bf993a28afc9272514ac61b5b8678d7f313bec080161c47c442
7
+ data.tar.gz: 2c334c3fe1c8f34baae53b5668a02971279c8a574e063a04c6f9e4ce925601060bd957356e700abc9d49f0ed3aa3f891ad633e815f62d1eb85b60741268a0aee
@@ -4,7 +4,9 @@ rvm:
4
4
  - 1.9.3
5
5
  - 2.0
6
6
  - 2.1
7
- - 2.2.0
7
+ - 2.2.3
8
+ - 2.3.0
9
+ - ruby-head
8
10
  - rbx
9
11
 
10
12
  gemfile:
@@ -17,6 +19,9 @@ branches:
17
19
  before_install: gem update bundler
18
20
  script: bundle exec rake test
19
21
 
22
+ sudo: false
23
+
20
24
  matrix:
21
25
  allow_failures:
26
+ - rvm: ruby-head
22
27
  - rvm: rbx
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.6.8 - 2016/04/19
2
+
3
+ * Add sse customer key options
4
+
5
+
1
6
  Release 0.6.7 - 2016/03/31
2
7
 
3
8
  * Add signature_version parameter
data/README.md CHANGED
@@ -241,11 +241,17 @@ old logs may reache.
241
241
 
242
242
  Use UTC instead of local time.
243
243
 
244
+ **storage_class**
245
+
246
+ Set storage class. Possible values are `STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA` from [Ruby SDK](http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Object.html#storage_class-instance_method).
247
+
244
248
  **reduced_redundancy**
245
249
 
246
250
  Use S3 reduced redundancy storage for 33% cheaper pricing. Default is
247
251
  false.
248
252
 
253
+ This is deprecated. Use `storage_class REDUCED_REDUNDANCY` instead.
254
+
249
255
  **acl**
250
256
 
251
257
  Permission for the object in S3. This is useful for cross-account access
@@ -287,6 +293,18 @@ The Server-side encryption algorithm used when storing this object in S3
287
293
  Specifies the AWS KMS key ID to use for object encryption. You have to
288
294
  set "aws:kms" to `use_server_side_encryption` to use the KMS encryption.
289
295
 
296
+ **sse_customer_algorithm**
297
+
298
+ Specifies the algorithm to use to when encrypting the object (e.g., AES256).
299
+
300
+ **sse_customer_key**
301
+
302
+ Specifies the AWS KMS key ID to use for object encryption.
303
+
304
+ **sse_customer_key_md5**
305
+
306
+ Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
307
+
290
308
  **compute_checksums**
291
309
 
292
310
  AWS SDK uses MD5 for API request/response by default. On FIPS enabled environment,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.7
1
+ 0.6.8
@@ -89,9 +89,9 @@ module Fluent
89
89
  config_param :check_apikey_on_start, :bool, :default => true
90
90
  desc "URI of proxy environment"
91
91
  config_param :proxy_uri, :string, :default => nil
92
- desc "Use S3 reduced redundancy storage for 33% cheaper pricing"
92
+ desc "Use S3 reduced redundancy storage for 33% cheaper pricing. Deprecated. Use storage_class instead"
93
93
  config_param :reduced_redundancy, :bool, :default => false
94
- desc "The type of storage to use for the object(STANDARD,REDUCED_REDUNDANCY)"
94
+ desc "The type of storage to use for the object(STANDARD,REDUCED_REDUNDANCY,STANDARD_IA)"
95
95
  config_param :storage_class, :string, :default => "STANDARD"
96
96
  desc "Change one line format in the S3 object (out_file,json,ltsv,single_value)"
97
97
  config_param :format, :string, :default => 'out_file'
@@ -103,6 +103,12 @@ module Fluent
103
103
  config_param :overwrite, :bool, :default => false
104
104
  desc "Specifies the AWS KMS key ID to use for object encryption"
105
105
  config_param :ssekms_key_id, :string, :default => nil, :secret => true
106
+ desc "Specifies the algorithm to use to when encrypting the object"
107
+ config_param :sse_customer_algorithm, :string, :default => nil
108
+ desc "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data"
109
+ config_param :sse_customer_key, :string, :default => nil, :secret => true
110
+ desc "Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321"
111
+ config_param :sse_customer_key_md5, :string, :default => nil, :secret => true
106
112
  desc "AWS SDK uses MD5 for API request/response by default"
107
113
  config_param :compute_checksums, :bool, :default => nil # use nil to follow SDK default configuration
108
114
  desc "Signature version for API Request (s3,v4)"
@@ -151,7 +157,10 @@ module Fluent
151
157
  raise ConfigError, "hex_random_length parameter must be less than or equal to #{MAX_HEX_RANDOM_LENGTH}"
152
158
  end
153
159
 
154
- @storage_class = "REDUCED_REDUNDANCY" if @reduced_redundancy
160
+ if @reduced_redundancy
161
+ $log.warn "reduced_redundancy parameter is deprecated. Use storage_class parameter instead"
162
+ @storage_class = "REDUCED_REDUNDANCY"
163
+ end
155
164
  @values_for_s3_object_chunk = {}
156
165
  end
157
166
 
@@ -228,6 +237,9 @@ module Fluent
228
237
  }
229
238
  put_options[:server_side_encryption] = @use_server_side_encryption if @use_server_side_encryption
230
239
  put_options[:ssekms_key_id] = @ssekms_key_id if @ssekms_key_id
240
+ put_options[:sse_customer_algorithm] = @sse_customer_algorithm if @sse_customer_algorithm
241
+ put_options[:sse_customer_key] = @sse_customer_key if @sse_customer_key
242
+ put_options[:sse_customer_key_md5] = @sse_customer_key_md5 if @sse_customer_key_md5
231
243
  put_options[:acl] = @acl if @acl
232
244
  @bucket.object(s3path).put(put_options)
233
245
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-31 00:00:00.000000000 Z
12
+ date: 2016-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd