You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Mark deprecated SSL settings as obsolete
This commit marks the following SSL settings as obsolete:
`ssl_cert`, which should be replaced by `ssl_certificate`
`ssl_enable`, which should be replaced by `ssl_enabled`
`ssl_verify`, which should be replaced by `ssl_client_authentication` when `mode` is `server` or `ssl_verification_mode`when mode is `client`
---------
Co-authored-by: Cas Donoghue <[email protected]>
Co-authored-by: Karen Metts <[email protected]>
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.
| ssl_verify |<<plugins-{type}s-{plugin}-ssl_client_authentication>> in `server` mode and <<plugins-{type}s-{plugin}-ssl_verification_mode>> in `client` mode
# 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
it"should raise a config error with the appropriate message"do
69
+
expect{LogStash::Inputs::Tcp.new(deprecated_config).register}.toraise_errorLogStash::ConfigurationError,/The setting `#{obsolete_setting[:name]}` in plugin `tcp` is obsolete and is no longer available. Use '#{obsolete_setting[:replacement]}'/i
0 commit comments