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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc109012ff675848145bab6310017a68078054377d074e7913a3dbf907f9bbde
4
- data.tar.gz: ccc72c5df7a96736e53d0e5cbaae45428ccec00814416b78c36a8db3ddb92672
3
+ metadata.gz: '01656229a43f5ede21677884c8ea991f17916c1788f3d649f53522ea54e3f750'
4
+ data.tar.gz: d13097ef493258bd57bd748d81ac6d060b4a1400264fc6b29948be2a31b5e9bc
5
5
  SHA512:
6
- metadata.gz: 985a49e00b866a7ea211169b19f78ccfd78daa60322aa3599ba4b41b29de443f0b35297f5efad5a86a0fe730ed5d77a4acca7b457abad8f18a139fd3a30cdac7
7
- data.tar.gz: 43aa2ab5643582191b75bd3a47469572d5f5995ec070d2a54e651f6e76f416140b24d80ae294e0619d1937c453b0c9086988e8a96ff430641f162f2af3950851
6
+ metadata.gz: 55c0c1592cf6f02bfe3318b8b201232057d67a0070a8963d1bd233d045e5dd7846658665a6e7c2be3fb6e136f378fce19c6e1c836ca308506ed5bb6bd28889d7
7
+ data.tar.gz: 916511950a77a3cccb5c168bc1faa040f8e5aca31c62aa0f2c5806f38556f1492eafc48230ba6798ded1d7a3871639adcfe6d3c2eba573809f8b3bc605f4879b
@@ -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 = { :credentials => credentials }
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-aws'
3
- s.version = '4.4.0'
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.0
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-09-21 00:00:00.000000000 Z
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