Skip to content

Commit fd0dbee

Browse files
authored
Feat: added ssl_supported_protocols option (#38)
1 parent 08228a0 commit fd0dbee

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.4.0
2+
- Feat: added ssl_supported_protocols option [#38](https://github.com/logstash-plugins/logstash-filter-http/pull/38)
3+
14
## 1.3.0
25
- Feat: support ssl_verification_mode option [#37](https://github.com/logstash-plugins/logstash-filter-http/pull/37)
36

docs/index.asciidoc

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ There are also multiple configuration options related to the HTTP connectivity:
7272
| <<plugins-{type}s-{plugin}-request_timeout>> |<<number,number>>|No
7373
| <<plugins-{type}s-{plugin}-retry_non_idempotent>> |<<boolean,boolean>>|No
7474
| <<plugins-{type}s-{plugin}-socket_timeout>> |<<number,number>>|No
75+
| <<plugins-{type}s-{plugin}-ssl_supported_protocols>> |<<string,string>>|No
7576
| <<plugins-{type}s-{plugin}-ssl_verification_mode>> |<<string,string>>|No
7677
| <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|No
7778
| <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|No
@@ -326,12 +327,29 @@ If `automatic_retries` is enabled this will cause non-idempotent HTTP verbs (suc
326327

327328
Timeout (in seconds) to wait for data on the socket. Default is `10s`
328329

330+
[id="plugins-{type}s-{plugin}-ssl_supported_protocols"]
331+
===== `ssl_supported_protocols`
332+
333+
* Value type is <<string,string>>
334+
* Allowed values are: `'TLSv1.1'`, `'TLSv1.2'`, `'TLSv1.3'`
335+
* Default depends on the JDK being used. With up-to-date Logstash, the default is `['TLSv1.2', 'TLSv1.3']`.
336+
`'TLSv1.1'` is not considered secure and is only provided for legacy applications.
337+
338+
List of allowed SSL/TLS versions to use when establishing a connection to the HTTP endpoint.
339+
340+
For Java 8 `'TLSv1.3'` is supported only since **8u262** (AdoptOpenJDK), but requires that you set the
341+
`LS_JAVA_OPTS="-Djdk.tls.client.protocols=TLSv1.3"` system property in Logstash.
342+
343+
NOTE: If you configure the plugin to use `'TLSv1.1'` on any recent JVM, such as the one packaged with Logstash,
344+
the protocol is disabled by default and needs to be enabled manually by changing `jdk.tls.disabledAlgorithms` in
345+
the *$JDK_HOME/conf/security/java.security* configuration file. That is, `TLSv1.1` needs to be removed from the list.
346+
329347
[id="plugins-{type}s-{plugin}-ssl_verification_mode"]
330348
===== `ssl_verification_mode`
331349

332-
* Value type is <<string,string>>
333-
* Supported values are: `full`, `none`
334-
* Default value is `full`
350+
* Value type is <<string,string>>
351+
* Supported values are: `full`, `none`
352+
* Default value is `full`
335353

336354
Controls the verification of server certificates.
337355
The `full` option verifies that the provided certificate is signed by a trusted authority (CA)

logstash-filter-http.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-filter-http'
3-
s.version = '1.3.0'
3+
s.version = '1.4.0'
44
s.licenses = ['Apache License (2.0)']
55
s.summary = 'This filter requests data from a RESTful Web Service.'
66
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 logstash-filter-http. This gem is not a stand-alone program'
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
2828
# Gem dependencies
2929
s.add_runtime_dependency 'logstash-core-plugin-api', '>= 1.60', '<= 2.99'
3030
s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.2'
31-
s.add_runtime_dependency "logstash-mixin-http_client", ">= 7.1.0", '< 9.0.0'
31+
s.add_runtime_dependency "logstash-mixin-http_client", ">= 7.2.0", '< 9.0.0'
3232
s.add_runtime_dependency 'logstash-mixin-validator_support', '~> 1.0'
3333

3434
s.add_development_dependency 'logstash-devutils'

0 commit comments

Comments
 (0)