fluent-plugin-s3 0.6.2 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a92423eae36ed7c87a368ec4c7f01f0aab4a8970
4
- data.tar.gz: 101e479e7ffefa18ab175bc165ed5194de28c760
3
+ metadata.gz: a8e60678442f985dd0a5cd7ee3d89bee66094c36
4
+ data.tar.gz: 4089973adc9be5216cf3aec4e78cbbe4559b62ed
5
5
  SHA512:
6
- metadata.gz: d708a3cfb7a41842dbf00a521dea26a633fa695107bb7f96be852e6b5be3c0ddfbb177a9616e520caf9877194f363b43466cf4a921ef5a76378d54542420bea1
7
- data.tar.gz: a4eced1aac1674fcf0427b1fd4d9f24a5af7e64ab5a7acb7a91343dc4fd3aea9c5836d3d6fb1d8c47ee686a0cd419b3f8bcd7e7f350a3adfab6163908a0772ac
6
+ metadata.gz: 6d6f65c0db5df8e36ed610d96983be680452143c44e391af65f3205e10158df469ccb755f71f322033f1651eb8cd0dec14494537ebf12d8ab3a71ff62dc52670
7
+ data.tar.gz: 8b09ae39e27f7148160a6fb0bed738155af1c2cbd5248f0a0aecc69c877c86180a49d11474f295b87ae7d6c30955aa39ad9382e1738783a9aa714ac768297a6e
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.6.3 - 2015/11/25
2
+
3
+ * Add compute_checksums parameter
4
+
5
+
1
6
  Release 0.6.2 - 2015/11/24
2
7
 
3
8
  * Add ssekms_key_id option to use KMS encryption
data/README.md CHANGED
@@ -288,6 +288,12 @@ The Server-side encryption algorithm used when storing this object in S3
288
288
  Specifies the AWS KMS key ID to use for object encryption. You have to
289
289
  set "aws:kms" to `use_server_side_encryption` to use the KMS encryption.
290
290
 
291
+ **compute_checksums**
292
+
293
+ AWS SDK uses MD5 for API request/response by default. On FIPS enabled environment,
294
+ OpenSSL returns an error because MD5 is disabled. If you want to use
295
+ this plugin on FIPS enabled environment, set `compute_checksums false`.
296
+
291
297
  ### assume_role_credentials
292
298
 
293
299
  Typically, you use AssumeRole for cross-account access or federation.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
@@ -56,6 +56,7 @@ module Fluent
56
56
  config_param :hex_random_length, :integer, :default => 4
57
57
  config_param :overwrite, :bool, :default => false
58
58
  config_param :ssekms_key_id, :string, :default => nil
59
+ config_param :compute_checksums, :bool, :default => nil # use nil to follow SDK default configuration
59
60
 
60
61
  attr_reader :bucket
61
62
 
@@ -109,6 +110,7 @@ module Fluent
109
110
  options[:endpoint] = @s3_endpoint if @s3_endpoint
110
111
  options[:http_proxy] = @proxy_uri if @proxy_uri
111
112
  options[:force_path_style] = @force_path_style
113
+ options[:compute_checksums] = @compute_checksums unless @compute_checksums.nil?
112
114
 
113
115
  s3_client = Aws::S3::Client.new(options)
114
116
  @s3 = Aws::S3::Resource.new(:client => s3_client)
@@ -49,6 +49,7 @@ class S3OutputTest < Test::Unit::TestCase
49
49
  assert_equal 'gz', d.instance.instance_variable_get(:@compressor).ext
50
50
  assert_equal 'application/x-gzip', d.instance.instance_variable_get(:@compressor).content_type
51
51
  assert_equal false, d.instance.force_path_style
52
+ assert_equal nil, d.instance.compute_checksums
52
53
  end
53
54
 
54
55
  def test_s3_endpoint_with_valid_endpoint
@@ -99,6 +100,13 @@ class S3OutputTest < Test::Unit::TestCase
99
100
  assert d.instance.force_path_style
100
101
  end
101
102
 
103
+ def test_configure_with_compute_checksums
104
+ conf = CONFIG.clone
105
+ conf << "\ncompute_checksums false\n"
106
+ d = create_driver(conf)
107
+ assert_equal false, d.instance.compute_checksums
108
+ end
109
+
102
110
  def test_configure_with_hex_random_length
103
111
  conf = CONFIG.clone
104
112
  assert_raise Fluent::ConfigError do
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.2
4
+ version: 0.6.3
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: 2015-11-24 00:00:00.000000000 Z
12
+ date: 2015-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd