fluent-plugin-kinesis 0.3.1.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +5 -0
- data/lib/fluent/plugin/out_kinesis.rb +8 -2
- data/lib/fluent/plugin/version.rb +1 -1
- data/test/plugin/test_out_kinesis.rb +2 -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: e552b291a04585897a47473fab2aafb95b7b3bc1
|
4
|
+
data.tar.gz: b48ce1dc2e7359f39d1ce43f303aceca35755bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828c58279188411787abb483731339458579c8fcd869cc122cbfd4edea6402749cc0ec6b0f13844534ba7214297983383073a0cde6a2a8965d67207f9e6647d7
|
7
|
+
data.tar.gz: a8b3826baa130ccd2470fb1c91f5df603eb937e7f789a1d8357fcdb1d9a7c74643597c6b355ad5e48ee05edc8ed8b372336e88338b06e03088b9c2cf6f7ac43a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.3.3
|
4
|
+
|
5
|
+
- **Security improvements**: Disabled logging `aws_key_id` and `aws_sec_key` into log file.
|
6
|
+
|
7
|
+
## 0.3.2
|
8
|
+
|
9
|
+
- **http_proxy support**: Added HTTP proxy support.
|
10
|
+
|
3
11
|
## 0.3.1
|
4
12
|
|
5
13
|
- **Fluentd v0.12 support**: We now support Fluentd v0.12.
|
data/README.md
CHANGED
@@ -107,6 +107,11 @@ It should be in form like "us-east-1", "us-west-2".
|
|
107
107
|
Refer to [Regions and Endpoints in AWS General Reference](http://docs.aws.amazon.com/general/latest/gr/rande.html#ak_region)
|
108
108
|
for supported regions.
|
109
109
|
|
110
|
+
### http_proxy
|
111
|
+
|
112
|
+
Proxy server, if any.
|
113
|
+
It should be in form like "http://squid:3128/"
|
114
|
+
|
110
115
|
### random_partition_key
|
111
116
|
|
112
117
|
Boolean. If true, the plugin uses randomly generated
|
@@ -35,8 +35,8 @@ module FluentPluginKinesis
|
|
35
35
|
config_set_default :include_time_key, true
|
36
36
|
config_set_default :include_tag_key, true
|
37
37
|
|
38
|
-
config_param :aws_key_id, :string, default: nil
|
39
|
-
config_param :aws_sec_key, :string, default: nil
|
38
|
+
config_param :aws_key_id, :string, default: nil, :secret => true
|
39
|
+
config_param :aws_sec_key, :string, default: nil, :secret => true
|
40
40
|
# The 'region' parameter is optional because
|
41
41
|
# it may be set as an environment variable.
|
42
42
|
config_param :region, :string, default: nil
|
@@ -52,6 +52,8 @@ module FluentPluginKinesis
|
|
52
52
|
|
53
53
|
config_param :debug, :bool, default: false
|
54
54
|
|
55
|
+
config_param :http_proxy, :string, default: nil
|
56
|
+
|
55
57
|
def configure(conf)
|
56
58
|
super
|
57
59
|
validate_params
|
@@ -165,6 +167,10 @@ module FluentPluginKinesis
|
|
165
167
|
# :http_wire_trace => true
|
166
168
|
end
|
167
169
|
|
170
|
+
if @http_proxy
|
171
|
+
options[:http_proxy] = @http_proxy
|
172
|
+
end
|
173
|
+
|
168
174
|
@client = Aws::Kinesis::Client.new(options)
|
169
175
|
|
170
176
|
end
|
@@ -51,6 +51,7 @@ class KinesisOutputTest < Test::Unit::TestCase
|
|
51
51
|
conf = %[
|
52
52
|
stream_name test_stream
|
53
53
|
region us-east-1
|
54
|
+
http_proxy http://proxy:3333/
|
54
55
|
partition_key test_partition_key
|
55
56
|
partition_key_expr record
|
56
57
|
explicit_hash_key test_hash_key
|
@@ -60,6 +61,7 @@ class KinesisOutputTest < Test::Unit::TestCase
|
|
60
61
|
d = create_driver(conf)
|
61
62
|
assert_equal 'test_stream', d.instance.stream_name
|
62
63
|
assert_equal 'us-east-1', d.instance.region
|
64
|
+
assert_equal 'http://proxy:3333/', d.instance.http_proxy
|
63
65
|
assert_equal 'test_partition_key', d.instance.partition_key
|
64
66
|
assert_equal 'Proc',
|
65
67
|
d.instance.instance_variable_get(:@partition_key_proc).class.to_s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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: 2015-
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|