logstash-mixin-aws 4.2.3 → 4.2.4

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
- SHA1:
3
- metadata.gz: 98297526d09b11910f943fb0e8a55276242e8404
4
- data.tar.gz: d0743ecae68f8c4ffe5e99cf4006770af3477ae0
2
+ SHA256:
3
+ metadata.gz: 6bedbceb9fed81fbc39b3f594bc18f6cacde35aea4a00ebf90aa495612ee335f
4
+ data.tar.gz: 7f14178a1db3ae963ac2fa4c6af0c37c42e888e30dd6ed32bdbfc0cc9fd3b007
5
5
  SHA512:
6
- metadata.gz: 971c81ea56b96f3b115ec639883cba6c902709a4153516d1e84eee12e766b5bb18be8ae0dab666bf0b438f2502076e76d2fff92fd2e1a847dce9441c1f7abe2c
7
- data.tar.gz: 19484cf2b0c54138b7f702d3bf74709818719e601d49d6d2e6a64047a43cb33f3a133800b64897c61dd731d30404f3d098c8159928caeea9ae301eeee72129b3
6
+ metadata.gz: b6c7f25b4e78760eddf77e1b98a659110b5765a28b52699ba58eddc85e268c860efa1d520a944f43e911ed145326bffb26fb5ef9df47c283c8357e3188e8abe8
7
+ data.tar.gz: 2bf224f332efe3e49a8767348425ec1da7a2ee3d5820ac078e058093090011d8f199e38d80c5974eb06a9e01426a6b9a96576dd1b2cae10f060b93902b182616
@@ -1,3 +1,6 @@
1
+ ## 4.2.4
2
+ - Minor config validation fixes
3
+
1
4
  ## 4.2.3
2
5
  - Fix some documentation issues
3
6
 
data/Gemfile CHANGED
@@ -1,3 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -18,10 +18,10 @@ module LogStash::PluginMixins::AwsConfig::Generic
18
18
  config :access_key_id, :validate => :string
19
19
 
20
20
  # The AWS Secret Access Key
21
- config :secret_access_key, :validate => :string
21
+ config :secret_access_key, :validate => :password
22
22
 
23
23
  # The AWS Session token for temporary credential
24
- config :session_token, :validate => :string
24
+ config :session_token, :validate => :password
25
25
 
26
26
  # URI to proxy server if required
27
27
  config :proxy_uri, :validate => :string
@@ -43,10 +43,10 @@ module LogStash::PluginMixins::AwsConfig::V2
43
43
  if @access_key_id && @secret_access_key
44
44
  credentials_opts = {
45
45
  :access_key_id => @access_key_id,
46
- :secret_access_key => @secret_access_key
46
+ :secret_access_key => @secret_access_key.value
47
47
  }
48
48
 
49
- credentials_opts[:session_token] = @session_token if @session_token
49
+ credentials_opts[:session_token] = @session_token.value if @session_token
50
50
  elsif @aws_credentials_file
51
51
  credentials_opts = YAML.load_file(@aws_credentials_file)
52
52
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-aws'
3
- s.version = '4.2.3'
3
+ s.version = '4.2.4'
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"
@@ -44,8 +44,10 @@ describe LogStash::PluginMixins::AwsConfig do
44
44
 
45
45
  it "should support passing as key, value, and session_token" do
46
46
  expect(subject[:access_key_id]).to eq(settings["access_key_id"])
47
- expect(subject[:secret_access_key]).to eq(settings["secret_access_key"])
48
- expect(subject[:session_token]).to eq(settings["session_token"])
47
+ expect(subject[:secret_access_key]).to_not eq(settings["secret_access_key"])
48
+ expect(subject[:secret_access_key].value).to eq(settings["secret_access_key"])
49
+ expect(subject[:session_token]).to_not eq(settings["session_token"])
50
+ expect(subject[:session_token].value).to eq(settings["session_token"])
49
51
  end
50
52
  end
51
53
 
@@ -54,7 +56,8 @@ describe LogStash::PluginMixins::AwsConfig do
54
56
 
55
57
  it 'should support passing credentials as key, value' do
56
58
  expect(subject[:access_key_id]).to eq(settings['access_key_id'])
57
- expect(subject[:secret_access_key]).to eq(settings['secret_access_key'])
59
+ expect(subject[:secret_access_key]).to_not eq(settings['secret_access_key'])
60
+ expect(subject[:secret_access_key].value).to eq(settings['secret_access_key'])
58
61
  end
59
62
  end
60
63
  end
@@ -99,7 +102,7 @@ describe LogStash::PluginMixins::AwsConfig::V2 do
99
102
 
100
103
  it 'should support reading configuration from a yaml file' do
101
104
  expect(subject.access_key_id).to eq("1234")
102
- expect(subject.secret_access_key).to eq("secret")
105
+ expect(subject.secret_access_key).to eq("secret")
103
106
  end
104
107
  end
105
108
 
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.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-16 00:00:00.000000000 Z
11
+ date: 2018-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,9 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
- 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
89
+ description: This gem is a Logstash plugin required to be installed on top of the
90
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
91
+ gem is not a stand-alone program
90
92
  email: info@elastic.co
91
93
  executables: []
92
94
  extensions: []
@@ -126,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
128
  version: '0'
127
129
  requirements: []
128
130
  rubyforge_project:
129
- rubygems_version: 2.4.8
131
+ rubygems_version: 2.6.13
130
132
  signing_key:
131
133
  specification_version: 4
132
134
  summary: AWS mixins to provide a unified interface for Amazon Webservice