logstash-input-tcp 6.4.8-java → 7.0.0-java

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.
Files changed (17) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -11
  3. data/docs/index.asciidoc +19 -31
  4. data/lib/logstash/inputs/tcp.rb +8 -41
  5. data/lib/logstash-input-tcp_jars.rb +7 -7
  6. data/logstash-input-tcp.gemspec +1 -2
  7. data/spec/inputs/tcp_spec.rb +20 -76
  8. data/vendor/jar-dependencies/io/netty/netty-buffer/{4.1.129.Final/netty-buffer-4.1.129.Final.jar → 4.1.115.Final/netty-buffer-4.1.115.Final.jar} +0 -0
  9. data/vendor/jar-dependencies/io/netty/netty-codec/{4.1.129.Final/netty-codec-4.1.129.Final.jar → 4.1.115.Final/netty-codec-4.1.115.Final.jar} +0 -0
  10. data/vendor/jar-dependencies/io/netty/netty-common/{4.1.129.Final/netty-common-4.1.129.Final.jar → 4.1.115.Final/netty-common-4.1.115.Final.jar} +0 -0
  11. data/vendor/jar-dependencies/io/netty/netty-handler/{4.1.129.Final/netty-handler-4.1.129.Final.jar → 4.1.115.Final/netty-handler-4.1.115.Final.jar} +0 -0
  12. data/vendor/jar-dependencies/io/netty/netty-transport/{4.1.129.Final/netty-transport-4.1.129.Final.jar → 4.1.115.Final/netty-transport-4.1.115.Final.jar} +0 -0
  13. data/vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/{4.1.129.Final/netty-transport-native-unix-common-4.1.129.Final.jar → 4.1.115.Final/netty-transport-native-unix-common-4.1.115.Final.jar} +0 -0
  14. data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/7.0.0/logstash-input-tcp-7.0.0.jar +0 -0
  15. data/version +1 -1
  16. metadata +27 -38
  17. data/vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.8/logstash-input-tcp-6.4.8.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d847ec34ba14b4b1358c73c8d7dfac69e2f55eac91f6fe207ba92896bb7d509
4
- data.tar.gz: 479c6d2b2ecc2855c3750ca165106e9ff1b0717f6561ce0995c55151e9136818
3
+ metadata.gz: c8bc68458ba90d33f5f007625f68bbe9a1807a18c2c7d197aa75ed5092e1cc55
4
+ data.tar.gz: 0aa68f080ab88ad648bd9a19455bc495cdcbb1dbcab3b34e27d14e496ec5b3f9
5
5
  SHA512:
6
- metadata.gz: 7a1cdc6dfb895fe786355d97bfcd14a5516613b320c8a5b3e77936be633f3a066cbe906841378c3d63d190ac44dc40e24ed86342db61a3a36565849068b36f7f
7
- data.tar.gz: 4e2aa8971aab560e353a04e99128a8537a92e9ac537192d4995f244408406686208ababe4b39f4e93ba673de4bf4ecfa9c5d525cdccbfb87399107a2bbe8d123
6
+ metadata.gz: 0ab15b83290d8dd586523d0a83a5a49741f2f9050851e8f86d04a2441ecf1b767467fecbd8372e8d7a67454b3f6cbcbcd2890790ba875914790d10e00bea5f92
7
+ data.tar.gz: e87be82c1979de3b29a4ad66d7c022a6cad29327d6ec660b835908d69d7abf5284af027a7194d2103e3c180d836f9f9039cc9b17f3e96046101012dac2a5a86a
data/CHANGELOG.md CHANGED
@@ -1,14 +1,10 @@
1
- ## 6.4.8
2
- - Upgrade netty to 4.1.129 [#240](https://github.com/logstash-plugins/logstash-input-tcp/pull/240)
3
-
4
- ## 6.4.7
5
- - Upgrade netty to 4.1.126 [#236](https://github.com/logstash-plugins/logstash-input-tcp/pull/236)
6
-
7
- ## 6.4.6
8
- - Upgrade netty to 4.1.118 [#233](https://github.com/logstash-plugins/logstash-input-tcp/pull/233)
9
-
10
- ## 6.4.5
11
- - Name netty threads with plugin id and their purpose [229](https://github.com/logstash-plugins/logstash-input-tcp/pull/229)
1
+ ## 7.0.0
2
+ - SSL settings that were marked deprecated in version `6.4.0` are now marked obsolete, and will prevent the plugin from starting.
3
+ - These settings are:
4
+ - `ssl_cert`, which should be replaced by `ssl_certificate`
5
+ - `ssl_enable`, which should be replaced by `ssl_enabled`
6
+ - `ssl_verify`, which should be replaced by `ssl_client_authentication` when `mode` is `server` or `ssl_verification_mode`when mode is `client`
7
+ - [228](https://github.com/logstash-plugins/logstash-input-tcp/pull/228)
12
8
 
13
9
  ## 6.4.4
14
10
  - update netty to 4.1.115 [#227](https://github.com/logstash-plugins/logstash-input-tcp/pull/227)
data/docs/index.asciidoc CHANGED
@@ -121,6 +121,10 @@ filter {
121
121
 
122
122
  This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
123
123
 
124
+ NOTE: As of version `7.0.0` of this plugin, a number of previously deprecated settings related to SSL have been removed. Please see the
125
+ <<plugins-{type}s-{plugin}-obsolete-options>> for more details.
126
+
127
+
124
128
  [cols="<,<,<",options="header",]
125
129
  |=======================================================================
126
130
  |Setting |Input type|Required
@@ -130,19 +134,16 @@ This plugin supports the following configuration options plus the <<plugins-{typ
130
134
  | <<plugins-{type}s-{plugin}-mode>> |<<string,string>>, one of `["server", "client"]`|No
131
135
  | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|Yes
132
136
  | <<plugins-{type}s-{plugin}-proxy_protocol>> |<<boolean,boolean>>|No
133
- | <<plugins-{type}s-{plugin}-ssl_cert>> |a valid filesystem path|__Deprecated__
134
137
  | <<plugins-{type}s-{plugin}-ssl_certificate>> |a valid filesystem path|No
135
138
  | <<plugins-{type}s-{plugin}-ssl_certificate_authorities>> |<<array,array>>|No
136
139
  | <<plugins-{type}s-{plugin}-ssl_cipher_suites>> |<<string,string>>|No
137
140
  | <<plugins-{type}s-{plugin}-ssl_client_authentication>> |<<string,string>>, one of `["none", "optional", "required"]`|No
138
- | <<plugins-{type}s-{plugin}-ssl_enable>> |<<boolean,boolean>>|__Deprecated__
139
141
  | <<plugins-{type}s-{plugin}-ssl_enabled>> |<<boolean,boolean>>|No
140
142
  | <<plugins-{type}s-{plugin}-ssl_extra_chain_certs>> |<<array,array>>|No
141
143
  | <<plugins-{type}s-{plugin}-ssl_key>> |a valid filesystem path|No
142
144
  | <<plugins-{type}s-{plugin}-ssl_key_passphrase>> |<<password,password>>|No
143
145
  | <<plugins-{type}s-{plugin}-ssl_supported_protocols>> |<<string,string>>|No
144
146
  | <<plugins-{type}s-{plugin}-ssl_verification_mode>> |<<string,string>>, one of `["full", "none"]`|No
145
- | <<plugins-{type}s-{plugin}-ssl_verify>> |<<boolean,boolean>>|__Deprecated__
146
147
  | <<plugins-{type}s-{plugin}-tcp_keep_alive>> |<<boolean,boolean>>|No
147
148
  |=======================================================================
148
149
 
@@ -212,16 +213,6 @@ When mode is `client`, the port to connect to.
212
213
  Proxy protocol support, only v1 is supported at this time
213
214
  http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
214
215
 
215
- [id="plugins-{type}s-{plugin}-ssl_cert"]
216
- ===== `ssl_cert`
217
- deprecated[6.4.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate>>]
218
-
219
- * Value type is <<path,path>>
220
- * There is no default value for this setting.
221
-
222
- Path to certificate in PEM format. This certificate will be presented
223
- to the connecting clients.
224
-
225
216
  [id="plugins-{type}s-{plugin}-ssl_certificate"]
226
217
  ===== `ssl_certificate`
227
218
 
@@ -268,14 +259,6 @@ Please note that the server does not validate the client certificate CN (Common
268
259
 
269
260
  NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-mode>> is `server` and <<plugins-{type}s-{plugin}-ssl_certificate_authorities>> is set.
270
261
 
271
- [id="plugins-{type}s-{plugin}-ssl_enable"]
272
- ===== `ssl_enable`
273
- deprecated[6.4.0, Replaced by <<plugins-{type}s-{plugin}-ssl_enabled>>]
274
-
275
- * Value type is <<boolean,boolean>>
276
- * Default value is `false`
277
-
278
- Enable SSL (must be set for other `ssl_` options to take effect).
279
262
 
280
263
  [id="plugins-{type}s-{plugin}-ssl_enabled"]
281
264
  ===== `ssl_enabled`
@@ -343,16 +326,6 @@ This setting can be used only if <<plugins-{type}s-{plugin}-mode>> is `client`.
343
326
 
344
327
  WARNING: Setting certificate verification to `none` disables many security benefits of SSL/TLS, which is very dangerous. For more information on disabling certificate verification please read https://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf
345
328
 
346
- [id="plugins-{type}s-{plugin}-ssl_verify"]
347
- ===== `ssl_verify`
348
- deprecated[6.4.0, Replaced by <<plugins-{type}s-{plugin}-ssl_client_authentication>> and <<plugins-{type}s-{plugin}-ssl_verification_mode>>]
349
-
350
- * Value type is <<boolean,boolean>>
351
- * Default value is `true`
352
-
353
- Verify the identity of the other end of the SSL connection against the CA.
354
- For input, sets the field `sslsubject` to that of the client certificate.
355
-
356
329
  [id="plugins-{type}s-{plugin}-tcp_keep_alive"]
357
330
  ===== `tcp_keep_alive`
358
331
 
@@ -363,6 +336,21 @@ Instruct the socket to use TCP keep alive. If it's `true` then the underlying so
363
336
  will use the OS defaults settings for keep alive. If it's `false` it doesn't configure any
364
337
  keep alive setting for the underlying socket.
365
338
 
339
+ [id="plugins-{type}s-{plugin}-obsolete-options"]
340
+ ==== TCP Input Obsolete Configuration Options
341
+
342
+ WARNING: As of version `7.0.0` of this plugin, some configuration options have been replaced.
343
+ The plugin will fail to start if it contains any of these obsolete options.
344
+
345
+
346
+ [cols="<,<",options="header",]
347
+ |=======================================================================
348
+ |Setting|Replaced by
349
+ | ssl_cert |<<plugins-{type}s-{plugin}-ssl_certificate>>
350
+ | ssl_enable |<<plugins-{type}s-{plugin}-ssl_enabled>>
351
+ | ssl_verify |<<plugins-{type}s-{plugin}-ssl_client_authentication>> in `server` mode and <<plugins-{type}s-{plugin}-ssl_verification_mode>> in `client` mode
352
+ |=======================================================================
353
+
366
354
 
367
355
  [id="plugins-{type}s-{plugin}-common-options"]
368
356
  include::{include_path}/{type}.asciidoc[]
@@ -6,7 +6,6 @@ require "logstash/inputs/base"
6
6
  require "logstash/util/socket_peer"
7
7
  require "logstash-input-tcp_jars"
8
8
  require 'logstash/plugin_mixins/ecs_compatibility_support'
9
- require "logstash/plugin_mixins/normalize_config_support"
10
9
 
11
10
  require "socket"
12
11
  require "openssl"
@@ -69,8 +68,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
69
68
  # ecs_compatibility option, provided by Logstash core or the support adapter.
70
69
  include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
71
70
 
72
- include LogStash::PluginMixins::NormalizeConfigSupport
73
-
74
71
  config_name "tcp"
75
72
 
76
73
  default :codec, "line"
@@ -91,8 +88,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
91
88
  # http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
92
89
  config :proxy_protocol, :validate => :boolean, :default => false
93
90
 
94
- # Enable SSL (must be set for other `ssl_` options to take effect).
95
- config :ssl_enable, :validate => :boolean, :default => false, :deprecated => "Use 'ssl_enabled' instead."
96
91
 
97
92
  # Enable SSL (must be set for other `ssl_` options to take effect).
98
93
  config :ssl_enabled, :validate => :boolean, :default => false
@@ -104,9 +99,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
104
99
  # This option needs to be used with `ssl_certificate_authorities` and a defined list of CAs.
105
100
  config :ssl_client_authentication, :validate => %w[none optional required], :default => 'required'
106
101
 
107
- # Verify the identity of the other end of the SSL connection against the CA.
108
- # For input, sets the field `sslsubject` to that of the client certificate.
109
- config :ssl_verify, :validate => :boolean, :default => true, :deprecated => "Use 'ssl_client_authentication' when mode is 'server' or 'ssl_verification_mode' when mode is 'client'"
110
102
 
111
103
  # Options to verify the server's certificate.
112
104
  # "full": validates that the provided certificate has an issue date that’s within the not_before and not_after dates;
@@ -116,8 +108,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
116
108
  config :ssl_verification_mode, :validate => %w[full none], :default => 'full'
117
109
 
118
110
  # SSL certificate path
119
- config :ssl_cert, :validate => :path, :deprecated => "Use 'ssl_certificate' instead."
120
-
121
111
  # SSL certificate path
122
112
  config :ssl_certificate, :validate => :path
123
113
 
@@ -148,6 +138,13 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
148
138
  # Option to allow users to avoid DNS Reverse Lookup.
149
139
  config :dns_reverse_lookup_enabled, :validate => :boolean, :default => true
150
140
 
141
+ # Obsolete SSL Settings
142
+ config :ssl_enable, :obsolete => "Use 'ssl_enabled' instead."
143
+ config :ssl_verify, :obsolete => "Use 'ssl_client_authentication' when mode is 'server' or 'ssl_verification_mode' when mode is 'client'"
144
+ config :ssl_cert, :obsolete => "Use 'ssl_certificate' instead."
145
+
146
+
147
+
151
148
  # Monkey patch TCPSocket and SSLSocket to include socket peer
152
149
  # @private
153
150
  def self.patch_socket_peer!
@@ -163,7 +160,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
163
160
  super(*args)
164
161
 
165
162
  setup_fields!
166
- setup_ssl_params!
167
163
 
168
164
  self.class.patch_socket_peer!
169
165
 
@@ -181,7 +177,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
181
177
  validate_ssl_config!
182
178
 
183
179
  if server?
184
- @loop = InputLoop.new(@id, @host, @port, DecoderImpl.new(@codec, self), @tcp_keep_alive, java_ssl_context)
180
+ @loop = InputLoop.new(@host, @port, DecoderImpl.new(@codec, self), @tcp_keep_alive, java_ssl_context)
185
181
  end
186
182
  end
187
183
 
@@ -368,35 +364,6 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
368
364
  original_params.include?('ssl_enable') ? 'ssl_enable' : 'ssl_enabled'
369
365
  end
370
366
 
371
- def setup_ssl_params!
372
- @ssl_enabled = normalize_config(:ssl_enabled) do |normalizer|
373
- normalizer.with_deprecated_alias(:ssl_enable)
374
- end
375
-
376
- @ssl_certificate = normalize_config(:ssl_certificate) do |normalizer|
377
- normalizer.with_deprecated_alias(:ssl_cert)
378
- end
379
-
380
- if server?
381
- @ssl_client_authentication = normalize_config(:ssl_client_authentication) do |normalizer|
382
- normalizer.with_deprecated_mapping(:ssl_verify) do |ssl_verify|
383
- ssl_verify == true ? "required" : "none"
384
- end
385
- end
386
- else
387
- @ssl_verification_mode = normalize_config(:ssl_verification_mode) do |normalize|
388
- normalize.with_deprecated_mapping(:ssl_verify) do |ssl_verify|
389
- ssl_verify == true ? "full" : "none"
390
- end
391
- end
392
- end
393
-
394
- params['ssl_enabled'] = @ssl_enabled unless @ssl_enabled.nil?
395
- params['ssl_certificate'] = @ssl_certificate unless @ssl_certificate.nil?
396
- params['ssl_verification_mode'] = @ssl_verification_mode unless @ssl_verification_mode.nil?
397
- params['ssl_client_authentication'] = @ssl_client_authentication unless @ssl_client_authentication.nil?
398
- end
399
-
400
367
  def server?
401
368
  @mode == "server"
402
369
  end
@@ -1,12 +1,12 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
- require_jar('io.netty', 'netty-buffer', '4.1.129.Final')
5
- require_jar('io.netty', 'netty-codec', '4.1.129.Final')
6
- require_jar('io.netty', 'netty-common', '4.1.129.Final')
7
- require_jar('io.netty', 'netty-transport', '4.1.129.Final')
8
- require_jar('io.netty', 'netty-handler', '4.1.129.Final')
9
- require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.129.Final')
4
+ require_jar('io.netty', 'netty-buffer', '4.1.115.Final')
5
+ require_jar('io.netty', 'netty-codec', '4.1.115.Final')
6
+ require_jar('io.netty', 'netty-common', '4.1.115.Final')
7
+ require_jar('io.netty', 'netty-transport', '4.1.115.Final')
8
+ require_jar('io.netty', 'netty-handler', '4.1.115.Final')
9
+ require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.115.Final')
10
10
  require_jar('commons-io', 'commons-io', '2.17.0')
11
11
 
12
- require_jar('org.logstash.inputs', 'logstash-input-tcp', '6.4.8')
12
+ require_jar('org.logstash.inputs', 'logstash-input-tcp', '7.0.0')
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
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"
7
7
  s.authors = ["Elastic"]
8
8
  s.email = 'info@elastic.co'
9
- s.homepage = "https://elastic.co/logstash"
9
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
10
10
  s.platform = "java"
11
11
  s.require_paths = ["lib", "vendor/jar-dependencies"]
12
12
 
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
  s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.2'
25
- s.add_runtime_dependency 'logstash-mixin-normalize_config_support', '~>1.0'
26
25
 
27
26
  s.add_runtime_dependency 'logstash-core', '>= 8.1.0'
28
27
 
@@ -54,6 +54,25 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
54
54
  end
55
55
  end
56
56
 
57
+ ['client', 'server'].each do | mode|
58
+ describe "handling obsolete settings for #{mode} mode" do
59
+ [{:name => 'ssl_cert', :replacement => 'ssl_certificate', :sample_value => "certificate_path"},
60
+ {:name => 'ssl_enable', :replacement => 'ssl_enabled', :sample_value => true},
61
+ {:name => 'ssl_verify', :replacement => 'ssl_client_authentication', :sample_value => 'peer'}].each do | obsolete_setting |
62
+ context "with obsolete #{obsolete_setting[:name]}" do
63
+ let(:config) { { "mode" => mode, "port" => port } }
64
+ let (:deprecated_config) do
65
+ config.merge({obsolete_setting[:name] => obsolete_setting[:sample_value]})
66
+ end
67
+
68
+ it "should raise a config error with the appropriate message" do
69
+ expect { LogStash::Inputs::Tcp.new(deprecated_config).register }.to raise_error LogStash::ConfigurationError, /The setting `#{obsolete_setting[:name]}` in plugin `tcp` is obsolete and is no longer available. Use '#{obsolete_setting[:replacement]}'/i
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+
57
76
  ecs_compatibility_matrix(:disabled,:v1, :v8 => :v1) do |ecs_select|
58
77
  before(:each) do
59
78
  allow_any_instance_of(described_class).to receive(:ecs_compatibility).and_return(ecs_compatibility)
@@ -602,17 +621,6 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
602
621
  end
603
622
  end
604
623
 
605
- context "with deprecated ssl_verify = true and no ssl_certificate_authorities" do
606
- let(:config) { super().merge(
607
- 'ssl_verify' => true,
608
- 'ssl_certificate_authorities' => []
609
- ) }
610
-
611
- it "should register without errors" do
612
- expect { subject.register }.to_not raise_error
613
- end
614
- end
615
-
616
624
  %w[required optional].each do |ssl_client_authentication|
617
625
  context "with ssl_client_authentication = `#{ssl_client_authentication}` and no ssl_certificate_authorities" do
618
626
  let(:config) { super().merge(
@@ -636,70 +644,6 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
636
644
  end
637
645
  end
638
646
  end
639
-
640
- context "with deprecated settings" do
641
- let(:ssl_verify) { true }
642
- let(:certificate_path) { File.expand_path('../fixtures/small.crt', File.dirname(__FILE__)) }
643
- let(:config) do
644
- {
645
- "host" => "127.0.0.1",
646
- "port" => port,
647
- "ssl_enable" => true,
648
- "ssl_cert" => certificate_path,
649
- "ssl_key" => File.expand_path('../fixtures/small.key', File.dirname(__FILE__)),
650
- "ssl_verify" => ssl_verify
651
- }
652
- end
653
-
654
- context "and mode is server" do
655
- let(:config) { super().merge("mode" => 'server') }
656
- [true, false].each do |verify|
657
- context "and ssl_verify is #{verify}" do
658
- let(:ssl_verify) { verify }
659
-
660
- it "should set new configs params" do
661
- subject.register
662
- expect(subject.params).to match hash_including(
663
- "ssl_enabled" => true,
664
- "ssl_certificate" => certificate_path,
665
- "ssl_client_authentication" => verify ? 'required' : 'none')
666
- end
667
-
668
- it "should set new configs variables" do
669
- subject.register
670
- expect(subject.instance_variable_get(:@ssl_enabled)).to eql(true)
671
- expect(subject.instance_variable_get(:@ssl_client_authentication)).to eql(verify ? 'required' : 'none')
672
- expect(subject.instance_variable_get(:@ssl_certificate)).to eql(certificate_path)
673
- end
674
- end
675
- end
676
- end
677
-
678
- context "and mode is client" do
679
- let(:config) { super().merge("mode" => 'client') }
680
- [true, false].each do |verify|
681
- context "and ssl_verify is #{verify}" do
682
- let(:ssl_verify) { verify }
683
-
684
- it "should set new configs params" do
685
- subject.register
686
- expect(subject.params).to match hash_including(
687
- "ssl_enabled" => true,
688
- "ssl_certificate" => certificate_path,
689
- "ssl_verification_mode" => verify ? 'full' : 'none'
690
- )
691
- end
692
-
693
- it "should set new configs variables" do
694
- subject.register
695
- expect(subject.instance_variable_get(:@ssl_enabled)).to eql(true)
696
- expect(subject.instance_variable_get(:@ssl_verification_mode)).to eql(verify ? 'full' : 'none')
697
- expect(subject.instance_variable_get(:@ssl_certificate)).to eql(certificate_path)
698
- end
699
- end
700
- end
701
- end
702
- end
703
647
  end
704
648
  end
705
649
 
@@ -747,7 +691,7 @@ describe LogStash::Inputs::Tcp, :ecs_compatibility_support do
747
691
 
748
692
  context "with a non encrypted private key" do
749
693
  let(:config) do
750
- base_config.merge "ssl_verify" => true
694
+ base_config.merge "ssl_client_authentication" => "required"
751
695
  end
752
696
  it "should be able to connect and write data" do
753
697
  result = TcpHelpers.pipelineless_input(subject, 1) do
data/version CHANGED
@@ -1 +1 @@
1
- 6.4.8
1
+ 7.0.0
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-tcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.8
4
+ version: 7.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-12-17 00:00:00.000000000 Z
11
+ date: 2025-01-10 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
- name: logstash-core-plugin-api
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - ">="
@@ -19,6 +19,7 @@ dependencies:
19
19
  - - "<="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '2.99'
22
+ name: logstash-core-plugin-api
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,12 +31,12 @@ dependencies:
30
31
  - !ruby/object:Gem::Version
31
32
  version: '2.99'
32
33
  - !ruby/object:Gem::Dependency
33
- name: logstash-mixin-ecs_compatibility_support
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
38
  version: '1.2'
39
+ name: logstash-mixin-ecs_compatibility_support
39
40
  type: :runtime
40
41
  prerelease: false
41
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,26 +45,12 @@ dependencies:
44
45
  - !ruby/object:Gem::Version
45
46
  version: '1.2'
46
47
  - !ruby/object:Gem::Dependency
47
- name: logstash-mixin-normalize_config_support
48
- requirement: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - "~>"
51
- - !ruby/object:Gem::Version
52
- version: '1.0'
53
- type: :runtime
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.0'
60
- - !ruby/object:Gem::Dependency
61
- name: logstash-core
62
48
  requirement: !ruby/object:Gem::Requirement
63
49
  requirements:
64
50
  - - ">="
65
51
  - !ruby/object:Gem::Version
66
52
  version: 8.1.0
53
+ name: logstash-core
67
54
  type: :runtime
68
55
  prerelease: false
69
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,12 +59,12 @@ dependencies:
72
59
  - !ruby/object:Gem::Version
73
60
  version: 8.1.0
74
61
  - !ruby/object:Gem::Dependency
75
- name: jruby-openssl
76
62
  requirement: !ruby/object:Gem::Requirement
77
63
  requirements:
78
64
  - - ">="
79
65
  - !ruby/object:Gem::Version
80
66
  version: 0.12.2
67
+ name: jruby-openssl
81
68
  type: :runtime
82
69
  prerelease: false
83
70
  version_requirements: !ruby/object:Gem::Requirement
@@ -86,12 +73,12 @@ dependencies:
86
73
  - !ruby/object:Gem::Version
87
74
  version: 0.12.2
88
75
  - !ruby/object:Gem::Dependency
89
- name: logstash-codec-plain
90
76
  requirement: !ruby/object:Gem::Requirement
91
77
  requirements:
92
78
  - - ">="
93
79
  - !ruby/object:Gem::Version
94
80
  version: '0'
81
+ name: logstash-codec-plain
95
82
  type: :runtime
96
83
  prerelease: false
97
84
  version_requirements: !ruby/object:Gem::Requirement
@@ -100,12 +87,12 @@ dependencies:
100
87
  - !ruby/object:Gem::Version
101
88
  version: '0'
102
89
  - !ruby/object:Gem::Dependency
103
- name: logstash-codec-line
104
90
  requirement: !ruby/object:Gem::Requirement
105
91
  requirements:
106
92
  - - ">="
107
93
  - !ruby/object:Gem::Version
108
94
  version: '0'
95
+ name: logstash-codec-line
109
96
  type: :runtime
110
97
  prerelease: false
111
98
  version_requirements: !ruby/object:Gem::Requirement
@@ -114,12 +101,12 @@ dependencies:
114
101
  - !ruby/object:Gem::Version
115
102
  version: '0'
116
103
  - !ruby/object:Gem::Dependency
117
- name: logstash-codec-json
118
104
  requirement: !ruby/object:Gem::Requirement
119
105
  requirements:
120
106
  - - ">="
121
107
  - !ruby/object:Gem::Version
122
108
  version: '0'
109
+ name: logstash-codec-json
123
110
  type: :runtime
124
111
  prerelease: false
125
112
  version_requirements: !ruby/object:Gem::Requirement
@@ -128,12 +115,12 @@ dependencies:
128
115
  - !ruby/object:Gem::Version
129
116
  version: '0'
130
117
  - !ruby/object:Gem::Dependency
131
- name: logstash-codec-json_lines
132
118
  requirement: !ruby/object:Gem::Requirement
133
119
  requirements:
134
120
  - - ">="
135
121
  - !ruby/object:Gem::Version
136
122
  version: '0'
123
+ name: logstash-codec-json_lines
137
124
  type: :runtime
138
125
  prerelease: false
139
126
  version_requirements: !ruby/object:Gem::Requirement
@@ -142,12 +129,12 @@ dependencies:
142
129
  - !ruby/object:Gem::Version
143
130
  version: '0'
144
131
  - !ruby/object:Gem::Dependency
145
- name: logstash-codec-multiline
146
132
  requirement: !ruby/object:Gem::Requirement
147
133
  requirements:
148
134
  - - ">="
149
135
  - !ruby/object:Gem::Version
150
136
  version: '0'
137
+ name: logstash-codec-multiline
151
138
  type: :runtime
152
139
  prerelease: false
153
140
  version_requirements: !ruby/object:Gem::Requirement
@@ -156,12 +143,12 @@ dependencies:
156
143
  - !ruby/object:Gem::Version
157
144
  version: '0'
158
145
  - !ruby/object:Gem::Dependency
159
- name: logstash-devutils
160
146
  requirement: !ruby/object:Gem::Requirement
161
147
  requirements:
162
148
  - - ">="
163
149
  - !ruby/object:Gem::Version
164
150
  version: '0'
151
+ name: logstash-devutils
165
152
  type: :development
166
153
  prerelease: false
167
154
  version_requirements: !ruby/object:Gem::Requirement
@@ -170,12 +157,12 @@ dependencies:
170
157
  - !ruby/object:Gem::Version
171
158
  version: '0'
172
159
  - !ruby/object:Gem::Dependency
173
- name: insist
174
160
  requirement: !ruby/object:Gem::Requirement
175
161
  requirements:
176
162
  - - ">="
177
163
  - !ruby/object:Gem::Version
178
164
  version: '0'
165
+ name: insist
179
166
  type: :development
180
167
  prerelease: false
181
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -184,12 +171,12 @@ dependencies:
184
171
  - !ruby/object:Gem::Version
185
172
  version: '0'
186
173
  - !ruby/object:Gem::Dependency
187
- name: flores
188
174
  requirement: !ruby/object:Gem::Requirement
189
175
  requirements:
190
176
  - - "~>"
191
177
  - !ruby/object:Gem::Version
192
178
  version: 0.0.6
179
+ name: flores
193
180
  type: :development
194
181
  prerelease: false
195
182
  version_requirements: !ruby/object:Gem::Requirement
@@ -198,12 +185,12 @@ dependencies:
198
185
  - !ruby/object:Gem::Version
199
186
  version: 0.0.6
200
187
  - !ruby/object:Gem::Dependency
201
- name: stud
202
188
  requirement: !ruby/object:Gem::Requirement
203
189
  requirements:
204
190
  - - "~>"
205
191
  - !ruby/object:Gem::Version
206
192
  version: 0.0.22
193
+ name: stud
207
194
  type: :development
208
195
  prerelease: false
209
196
  version_requirements: !ruby/object:Gem::Requirement
@@ -245,20 +232,21 @@ files:
245
232
  - spec/inputs/tcp_spec.rb
246
233
  - spec/spec_helper.rb
247
234
  - vendor/jar-dependencies/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar
248
- - vendor/jar-dependencies/io/netty/netty-buffer/4.1.129.Final/netty-buffer-4.1.129.Final.jar
249
- - vendor/jar-dependencies/io/netty/netty-codec/4.1.129.Final/netty-codec-4.1.129.Final.jar
250
- - vendor/jar-dependencies/io/netty/netty-common/4.1.129.Final/netty-common-4.1.129.Final.jar
251
- - vendor/jar-dependencies/io/netty/netty-handler/4.1.129.Final/netty-handler-4.1.129.Final.jar
252
- - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.129.Final/netty-transport-native-unix-common-4.1.129.Final.jar
253
- - vendor/jar-dependencies/io/netty/netty-transport/4.1.129.Final/netty-transport-4.1.129.Final.jar
254
- - vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.4.8/logstash-input-tcp-6.4.8.jar
235
+ - vendor/jar-dependencies/io/netty/netty-buffer/4.1.115.Final/netty-buffer-4.1.115.Final.jar
236
+ - vendor/jar-dependencies/io/netty/netty-codec/4.1.115.Final/netty-codec-4.1.115.Final.jar
237
+ - vendor/jar-dependencies/io/netty/netty-common/4.1.115.Final/netty-common-4.1.115.Final.jar
238
+ - vendor/jar-dependencies/io/netty/netty-handler/4.1.115.Final/netty-handler-4.1.115.Final.jar
239
+ - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.115.Final/netty-transport-native-unix-common-4.1.115.Final.jar
240
+ - vendor/jar-dependencies/io/netty/netty-transport/4.1.115.Final/netty-transport-4.1.115.Final.jar
241
+ - vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/7.0.0/logstash-input-tcp-7.0.0.jar
255
242
  - version
256
- homepage: https://elastic.co/logstash
243
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
257
244
  licenses:
258
245
  - Apache License (2.0)
259
246
  metadata:
260
247
  logstash_plugin: 'true'
261
248
  logstash_group: input
249
+ post_install_message:
262
250
  rdoc_options: []
263
251
  require_paths:
264
252
  - lib
@@ -274,7 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
262
  - !ruby/object:Gem::Version
275
263
  version: '0'
276
264
  requirements: []
277
- rubygems_version: 3.6.3
265
+ rubygems_version: 3.3.26
266
+ signing_key:
278
267
  specification_version: 4
279
268
  summary: Reads events from a TCP socket
280
269
  test_files: