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 +4 -4
- data/ChangeLog +5 -0
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +2 -0
- data/test/test_out_s3.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8e60678442f985dd0a5cd7ee3d89bee66094c36
|
4
|
+
data.tar.gz: 4089973adc9be5216cf3aec4e78cbbe4559b62ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6f65c0db5df8e36ed610d96983be680452143c44e391af65f3205e10158df469ccb755f71f322033f1651eb8cd0dec14494537ebf12d8ab3a71ff62dc52670
|
7
|
+
data.tar.gz: 8b09ae39e27f7148160a6fb0bed738155af1c2cbd5248f0a0aecc69c877c86180a49d11474f295b87ae7d6c30955aa39ad9382e1738783a9aa714ac768297a6e
|
data/ChangeLog
CHANGED
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.
|
1
|
+
0.6.3
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -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)
|
data/test/test_out_s3.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|