logstash-mixin-aws 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/plugin_mixins/aws_config/v2.rb +3 -3
- data/logstash-mixin-aws.gemspec +1 -1
- data/spec/plugin_mixin/aws_config_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '01656229a43f5ede21677884c8ea991f17916c1788f3d649f53522ea54e3f750'
|
4
|
+
data.tar.gz: d13097ef493258bd57bd748d81ac6d060b4a1400264fc6b29948be2a31b5e9bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c0c1592cf6f02bfe3318b8b201232057d67a0070a8963d1bd233d045e5dd7846658665a6e7c2be3fb6e136f378fce19c6e1c836ca308506ed5bb6bd28889d7
|
7
|
+
data.tar.gz: 916511950a77a3cccb5c168bc1faa040f8e5aca31c62aa0f2c5806f38556f1492eafc48230ba6798ded1d7a3871639adcfe6d3c2eba573809f8b3bc605f4879b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.4.1
|
2
|
+
- Fix: proxy with assumed role (properly) [#50](https://github.com/logstash-plugins/logstash-mixin-aws/pull/50).
|
3
|
+
|
1
4
|
## 4.4.0
|
2
5
|
- Fix: credentials/proxy with assumed role [#48](https://github.com/logstash-plugins/logstash-mixin-aws/pull/48).
|
3
6
|
Plugin no longer assumes `access_key_id`/`secret_access_key` credentials not to be set when `role_arn` specified.
|
@@ -14,8 +14,8 @@ module LogStash::PluginMixins::AwsConfig::V2
|
|
14
14
|
opts[:http_proxy] = @proxy_uri if @proxy_uri
|
15
15
|
|
16
16
|
if @role_arn
|
17
|
-
credentials = assume_role(opts)
|
18
|
-
opts
|
17
|
+
credentials = assume_role(opts.dup)
|
18
|
+
opts[:credentials] = credentials
|
19
19
|
else
|
20
20
|
credentials = aws_credentials
|
21
21
|
opts[:credentials] = credentials if credentials
|
@@ -70,4 +70,4 @@ module LogStash::PluginMixins::AwsConfig::V2
|
|
70
70
|
:role_session_name => @role_session_name
|
71
71
|
)
|
72
72
|
end
|
73
|
-
end
|
73
|
+
end
|
data/logstash-mixin-aws.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-mixin-aws'
|
3
|
-
s.version = '4.4.
|
3
|
+
s.version = '4.4.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "AWS mixins to provide a unified interface for Amazon Webservice"
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -226,6 +226,10 @@ describe LogStash::PluginMixins::AwsConfig::V2 do
|
|
226
226
|
expect( subject.client.config.region ).to eql 'us-west-2' # probably redundant (kept for backwards compat)
|
227
227
|
end
|
228
228
|
|
229
|
+
it 'sets up proxy top level' do # setting in on the client isn't enough!
|
230
|
+
expect( aws_options_hash[:http_proxy] ).to eql 'http://a-proxy.net:1234'
|
231
|
+
end
|
232
|
+
|
229
233
|
it 'sets up region top-level' do
|
230
234
|
# NOTE: this one is required for real with role_arn :
|
231
235
|
expect( aws_options_hash[:region] ).to eql 'us-west-2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-mixin-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|