logstash-output-jms 3.0.4 → 3.0.5

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
2
  SHA256:
3
- metadata.gz: e8c6884ef9fed2c5e1f52d37d32f01bcb1521381cfb1b8355a80483d6004e39a
4
- data.tar.gz: 83dcf48a5d1851be6c39b55992f98c72140dab4fd55046b037a328d5a952b25b
3
+ metadata.gz: f3d27d534c83d98949910785e963e44bf475d3ae0954b07c9944ba506e146615
4
+ data.tar.gz: 1d9e8d144efc3741ace3239ef5c343db69a87ef2664ed85396785213af2b867a
5
5
  SHA512:
6
- metadata.gz: b0b8b4672024ffa12932af9562dfc7e365b818624887893317642a0bf40eceb8cb881787168e00e715adcd6908b035f4278d571b9028773bdde769b0dfc86fcf
7
- data.tar.gz: 296bf31b7e15bf1ca755060b94f62f59ede467132ed363d22fcb736d5a2aeee8d03f82735b27b8dab810307b027fc9fa406e7688d8ff2a0962644beaa5b5fd79
6
+ metadata.gz: 1a16d6ab310543e0c983414c961e0057b5badd71b4b186edda338df6efc7be56f56c045ee0243bf2cb818fec9c970d357e6209f987c84ad3baade684775c1386
7
+ data.tar.gz: 04bcda04efd670503ca16d42c48b8dd7556bd29d28ca6bec7e2be6d2ad9e7124bbb29ca212b5e57b045c5b2bf2c97bcd9ed5fa2e43d058425bd19f7988902193
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.5
2
+ - Change `password` config type to `password` to prevent leaking in the debug logs [#15](https://github.com/logstash-plugins/logstash-output-jms/pull/15)
3
+
1
4
  ## 3.0.4
2
5
  - Fixes an issue where `delivery_mode` directive was silently ignored.
3
6
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-jms.svg)](https://travis-ci.org/logstash-plugins/logstash-output-jms)
3
+ [![Travis Build Status](https://travis-ci.com/logstash-plugins/logstash-output-jms.svg)](https://travis-ci.com/logstash-plugins/logstash-output-jms)
4
4
 
5
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
6
6
 
data/docs/index.asciidoc CHANGED
@@ -52,7 +52,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
52
52
  | <<plugins-{type}s-{plugin}-factory>> |<<string,string>>|No
53
53
  | <<plugins-{type}s-{plugin}-jndi_context>> |<<hash,hash>>|No
54
54
  | <<plugins-{type}s-{plugin}-jndi_name>> |<<string,string>>|No
55
- | <<plugins-{type}s-{plugin}-password>> |<<string,string>>|No
55
+ | <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
56
56
  | <<plugins-{type}s-{plugin}-pub_sub>> |<<boolean,boolean>>|No
57
57
  | <<plugins-{type}s-{plugin}-require_jars>> |<<array,array>>|No
58
58
  | <<plugins-{type}s-{plugin}-username>> |<<string,string>>|No
@@ -119,7 +119,7 @@ Name of JNDI entry at which the Factory can be found
119
119
  [id="plugins-{type}s-{plugin}-password"]
120
120
  ===== `password`
121
121
 
122
- * Value type is <<string,string>>
122
+ * Value type is <<password,password>>
123
123
  * There is no default value for this setting.
124
124
 
125
125
  Password to use when connecting to the JMS provider
@@ -51,7 +51,7 @@ config :factory, :validate => :string
51
51
  # Username to connect to JMS provider with
52
52
  config :username, :validate => :string
53
53
  # Password to use when connecting to the JMS provider
54
- config :password, :validate => :string
54
+ config :password, :validate => :password
55
55
  # Url to use when connecting to the JMS provider
56
56
  config :broker_url, :validate => :string
57
57
 
@@ -88,7 +88,7 @@ config :jndi_context, :validate => :hash
88
88
  :require_jars => @require_jars,
89
89
  :factory => @factory,
90
90
  :username => @username,
91
- :password => @password,
91
+ :password => @password.nil? ? nil : @password.value,
92
92
  :broker_url => @broker_url,
93
93
  :url => @broker_url # "broker_url" is named "url" with Oracle AQ
94
94
  }
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-jms'
4
- s.version = '3.0.4'
4
+ s.version = '3.0.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Push events to a JMS topic or queue."
7
7
  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"
@@ -34,4 +34,14 @@ describe "outputs/jms" do
34
34
  # Add code to check the message is correct on the queue.
35
35
  end
36
36
  end
37
+
38
+ describe "debugging `password`" do
39
+ let(:config) { jms_config.merge("password" => "$ecre&-key") }
40
+ it "should not show origin value" do
41
+
42
+ output = LogStash::Plugin.lookup("output", "jms").new(config)
43
+ expect(output.logger).to receive(:debug).with('<password>')
44
+ output.logger.send(:debug, output.password.to_s)
45
+ end
46
+ end
37
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-jms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -124,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.6.13
127
+ rubygems_version: 3.2.33
129
128
  signing_key:
130
129
  specification_version: 4
131
130
  summary: Push events to a JMS topic or queue.