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_cacert`, which should be replaced by `ssl_certificate_authorities`
`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]>
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
@@ -97,24 +97,6 @@ When mode is `client`, the port to connect to.
97
97
98
98
When connect failed,retry interval in sec.
99
99
100
-
[id="plugins-{type}s-{plugin}-ssl_cacert"]
101
-
===== `ssl_cacert`
102
-
deprecated[6.2.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate_authorities>>]
103
-
104
-
* Value type is <<path,path>>
105
-
* There is no default value for this setting.
106
-
107
-
The SSL CA certificate, chainfile or CA path. The system CA path is automatically included.
108
-
109
-
[id="plugins-{type}s-{plugin}-ssl_cert"]
110
-
===== `ssl_cert`
111
-
deprecated[6.2.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate>>]
112
-
113
-
* Value type is <<path,path>>
114
-
* There is no default value for this setting.
115
-
116
-
SSL certificate path
117
-
118
100
[id="plugins-{type}s-{plugin}-ssl_certificate"]
119
101
===== `ssl_certificate`
120
102
@@ -160,15 +142,6 @@ Please note that the server does not validate the client certificate CN (Common
160
142
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.
161
143
162
144
163
-
[id="plugins-{type}s-{plugin}-ssl_enable"]
164
-
===== `ssl_enable`
165
-
deprecated[6.2.0, Replaced by <<plugins-{type}s-{plugin}-ssl_enabled>>]
166
-
167
-
* Value type is <<boolean,boolean>>
168
-
* Default value is `false`
169
-
170
-
Enable SSL (must be set for other `ssl_` options to take effect).
171
-
172
145
[id="plugins-{type}s-{plugin}-ssl_enabled"]
173
146
===== `ssl_enabled`
174
147
@@ -223,15 +196,21 @@ has a hostname or IP address that matches the names within the certificate.
223
196
224
197
NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-mode>> is `client`.
225
198
226
-
[id="plugins-{type}s-{plugin}-ssl_verify"]
227
-
===== `ssl_verify`
228
-
deprecated[6.2.0, Replaced by <<plugins-{type}s-{plugin}-ssl_client_authentication>> and <<plugins-{type}s-{plugin}-ssl_verification_mode>>]
199
+
[id="plugins-{type}s-{plugin}-obsolete-options"]
200
+
==== TCP Output Obsolete Configuration Options
201
+
202
+
WARNING: As of version `6.0.0` of this plugin, some configuration options have been replaced.
203
+
The plugin will fail to start if it contains any of these obsolete options.
229
204
230
-
* Value type is <<boolean,boolean>>
231
-
* Default value is `false`
232
205
233
-
Verify the identity of the other end of the SSL connection against the CA.
234
-
For input, sets the field `sslsubject` to that of the client certificate.
| 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.
52
-
# For input, sets the field `sslsubject` to that of the client certificate.
53
-
config:ssl_verify,:validate=>:boolean,:default=>false,:deprecated=>"Use 'ssl_client_authentication' when `mode` is 'server' or 'ssl_verification_mode' when mode is `client`"
54
-
55
45
# Options to verify the server's certificate.
56
46
# "full": validates that the provided certificate has an issue date that’s within the not_before and not_after dates;
57
47
# chains to a trusted Certificate Authority (CA); has a hostname or IP address that matches the names within the certificate.
58
48
# "certificate": Validates the provided certificate and verifies that it’s signed by a trusted authority (CA), but does’t check the certificate hostname.
59
49
# "none": performs no certificate validation. Disabling this severely compromises security (https://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf)
Copy file name to clipboardExpand all lines: logstash-output-tcp.gemspec
+1-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Gem::Specification.newdo |s|
2
2
3
3
s.name='logstash-output-tcp'
4
-
s.version='6.2.1'
4
+
s.version='7.0.0'
5
5
s.licenses=['Apache License (2.0)']
6
6
s.summary="Writes events over a TCP socket"
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"
it"should raise a config error with the appropriate message"do
39
+
expect{LogStash::Outputs::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